Moodle
  1. Moodle
  2. MDL-2925

Home page Main Menu Block does not show 'Add' drop down boxes

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: None
    • Component/s: Blocks
    • Labels:
      None
    • Environment:
      Linux
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_15_STABLE
    • Rank:
      7508

      Description

      In the last nightly build 2005041101, when turning editing on in th esite front page, teh Menu Block does not show the two 'Add Resource and 'Add Activity' drop down boxes.

      Also the Site news forum is not displaye din the Main Menu Block.

        Activity

        Hide
        Martin Dougiamas added a comment -

        From Jon Papaioannou (pj at moodle.org) Friday, 15 April 2005, 05:30 AM:

        It works for me at home... are you sure it's not something with your install?

        From (a.bicciolo at mtouch.it) Friday, 15 April 2005, 09:26 PM:

        Hello Jhon, jus made a completely fresh install (under debian) with a completely void database. The problem firstly appeard to be the very same, but i found in my config.php the line

        $CFG->directorypermissions = 0777; slightly different from the one in config-dist.php, which is

        $CFG->directorypermissions = 02777;

        Chaging my directorypermissions from 0777 to 02777 solved the problem.

        Coul this change to directorypermissions lead to probelms when people shall upgrade from 1.4 to 1.5?

        From James Phillips (james-p at pf7.so-net.ne.jp) Monday, 30 May 2005, 08:49 AM:

        I have been having the same problems but unfortunately changing

        $CFG->directorypermissions = 0777;

        to

        $CFG->directorypermissions = 02777;

        Hasn't changed anything.

        I simply changed this on an install that had already been made though. Should I re-install then change this just before running all the scripts?

        From Martin Dougiamas (martin at moodle.com) Tuesday, 31 May 2005, 12:15 PM:

        I can't see how such a permission change would be relevant to the code that produces the menus ... I think that might have been a coincidence

        From Jon Papaioannou (pj at moodle.org) Tuesday, 7 June 2005, 09:34 AM:

        Copying in Martin for assistance.

        Audun Hauge hit the nail on the head in the forums. After fiddling a bit with his site settings, he got the menu back to normal.

        Translation: There was no section 0 in the course and the code hit the return in line 38.

        I vaguely remember some voodoo going on in the code to auto-reconstruct the site's section 0 in some cases. I did delete my section 0 (the menu dutifully disappeared) and got it created again by changing stuff in admin/site.php (menu reappeared). However, looking at site.php didn't help me remember where and how the section is re-created.

        Is there some policy on this that you know of or should I improvise?

        From James Phillips (james-p at pf7.so-net.ne.jp) Tuesday, 7 June 2005, 10:08 PM:

        I just did a fresh install (moodle, moodledata, mysql), changed my permissions, and the fault was identical. I am becoming VERY stuck on this.

        From James Phillips (james-p at pf7.so-net.ne.jp) Wednesday, 8 June 2005, 09:26 AM:

        Just got a temporary fix from the boards. FYI, when I install I always choose List courses as the default for the front page. One of those automatic things that I almost forget that I do. If I change the frontpage to show the news forum, then access the forum, the menu's suddenly pop up. Hope this is of some help.

        From Jon Papaioannou (pj at moodle.org) Monday, 13 June 2005, 09:59 AM:

        I finally got this backed into a corner and fixed.

        If you have version 2005061300 or later of this block, you should now always see the drop downs when editing is on.

        Show
        Martin Dougiamas added a comment - From Jon Papaioannou (pj at moodle.org) Friday, 15 April 2005, 05:30 AM: It works for me at home... are you sure it's not something with your install? From (a.bicciolo at mtouch.it) Friday, 15 April 2005, 09:26 PM: Hello Jhon, jus made a completely fresh install (under debian) with a completely void database. The problem firstly appeard to be the very same, but i found in my config.php the line $CFG->directorypermissions = 0777; slightly different from the one in config-dist.php, which is $CFG->directorypermissions = 02777; Chaging my directorypermissions from 0777 to 02777 solved the problem. Coul this change to directorypermissions lead to probelms when people shall upgrade from 1.4 to 1.5? From James Phillips (james-p at pf7.so-net.ne.jp) Monday, 30 May 2005, 08:49 AM: I have been having the same problems but unfortunately changing $CFG->directorypermissions = 0777; to $CFG->directorypermissions = 02777; Hasn't changed anything. I simply changed this on an install that had already been made though. Should I re-install then change this just before running all the scripts? From Martin Dougiamas (martin at moodle.com) Tuesday, 31 May 2005, 12:15 PM: I can't see how such a permission change would be relevant to the code that produces the menus ... I think that might have been a coincidence From Jon Papaioannou (pj at moodle.org) Tuesday, 7 June 2005, 09:34 AM: Copying in Martin for assistance. Audun Hauge hit the nail on the head in the forums. After fiddling a bit with his site settings, he got the menu back to normal. Translation: There was no section 0 in the course and the code hit the return in line 38. I vaguely remember some voodoo going on in the code to auto-reconstruct the site's section 0 in some cases. I did delete my section 0 (the menu dutifully disappeared) and got it created again by changing stuff in admin/site.php (menu reappeared). However, looking at site.php didn't help me remember where and how the section is re-created. Is there some policy on this that you know of or should I improvise? From James Phillips (james-p at pf7.so-net.ne.jp) Tuesday, 7 June 2005, 10:08 PM: I just did a fresh install (moodle, moodledata, mysql), changed my permissions, and the fault was identical. I am becoming VERY stuck on this. From James Phillips (james-p at pf7.so-net.ne.jp) Wednesday, 8 June 2005, 09:26 AM: Just got a temporary fix from the boards. FYI, when I install I always choose List courses as the default for the front page. One of those automatic things that I almost forget that I do. If I change the frontpage to show the news forum, then access the forum, the menu's suddenly pop up. Hope this is of some help. From Jon Papaioannou (pj at moodle.org) Monday, 13 June 2005, 09:59 AM: I finally got this backed into a corner and fixed. If you have version 2005061300 or later of this block, you should now always see the drop downs when editing is on.
        Hide
        Michael Blake added a comment -

        Temporary transition to reassign bug to "pj".

        Show
        Michael Blake added a comment - Temporary transition to reassign bug to "pj".
        Hide
        Michael Blake added a comment -

        Re-closing bugs after re-assigning to "pj".

        Show
        Michael Blake added a comment - Re-closing bugs after re-assigning to "pj".

          People

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

            Dates

            • Created:
              Updated:
              Resolved: