Moodle
  1. Moodle
  2. MDL-3408

Editing the site topic section shows [[namesite]] after a clean install

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_15_STABLE
    • Rank:
      14392

      Description

      With a CVS version from today, after a clean install the title of Editing section 0 has a bug in it. See the attached screenshot.

      This some times gets corrected after some changes, but it's always like this after a clean install.

        Activity

        Hide
        Martin Dougiamas added a comment -

        From Shane Elliott (shane at pukunui.com) Friday, 3 June 2005, 06:48 PM:

        Can you grab a fresh copy from CVS and check again? The string namesite doesn't appear in any file in versions 1.4, 1.5 or HEAD.

        If you're on a *nix system you could run the following command from the root moodle directory to find which file the string is located in:

        grep namesite * -R

        From Samuli Karevaara (samuli.karevaara at lamk.fi) Friday, 3 June 2005, 07:25 PM:

        Did you try to repro the bug? (A clean new install) After some point this starts to work and then the bug can't be reproed anymore. Only just after the install.

        I just verified this to happen on the latest CVS with the tag MOODLE_15_STABLE.

        You're right, the string namesite doesn't appear on the files. But look at /course/editsection.php, line 50:

        $sectionname = get_string(name$course->format);

        The course format in my case is site. Naturally this string, namesite, can't be found as it's not in the /lang/en/moodle.php, as the grep verified. I also noticed that I had Show news items and Show topic section set for the site course.

        At some point this starts to work, meaning that the course format changes to something else (social and so on). Investigating this a bit more...

        From Samuli Karevaara (samuli.karevaara at lamk.fi) Friday, 3 June 2005, 07:38 PM:

        (More detailed) steps to reproduce on Moodle 1.5 beta:

        • empty the database completely
        • go to moodle site, click through all the Upgrading database... screens
        • enter default values for everything else but change Include topic section to Yes
        • enter the required fields for admin
        • turn on editing mode
        • go to edit the topic section for the site.

        With me the [[namesite]] thing comes all the time.

        From Shane Elliott (shane at pukunui.com) Friday, 3 June 2005, 10:47 PM:

        Thanks for that. Fix now in CVS - editsection.php

        Show
        Martin Dougiamas added a comment - From Shane Elliott (shane at pukunui.com) Friday, 3 June 2005, 06:48 PM: Can you grab a fresh copy from CVS and check again? The string namesite doesn't appear in any file in versions 1.4, 1.5 or HEAD. If you're on a *nix system you could run the following command from the root moodle directory to find which file the string is located in: grep namesite * -R From Samuli Karevaara (samuli.karevaara at lamk.fi) Friday, 3 June 2005, 07:25 PM: Did you try to repro the bug? (A clean new install) After some point this starts to work and then the bug can't be reproed anymore. Only just after the install. I just verified this to happen on the latest CVS with the tag MOODLE_15_STABLE. You're right, the string namesite doesn't appear on the files. But look at /course/editsection.php, line 50: $sectionname = get_string(name$course->format); The course format in my case is site. Naturally this string, namesite, can't be found as it's not in the /lang/en/moodle.php, as the grep verified. I also noticed that I had Show news items and Show topic section set for the site course. At some point this starts to work, meaning that the course format changes to something else (social and so on). Investigating this a bit more... From Samuli Karevaara (samuli.karevaara at lamk.fi) Friday, 3 June 2005, 07:38 PM: (More detailed) steps to reproduce on Moodle 1.5 beta: empty the database completely go to moodle site, click through all the Upgrading database... screens enter default values for everything else but change Include topic section to Yes enter the required fields for admin turn on editing mode go to edit the topic section for the site. With me the [ [namesite] ] thing comes all the time. From Shane Elliott (shane at pukunui.com) Friday, 3 June 2005, 10:47 PM: Thanks for that. Fix now in CVS - editsection.php
        Hide
        Michael Blake added a comment -

        assign to a valid user

        Show
        Michael Blake added a comment - assign to a valid user

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: