Moodle
  1. Moodle
  2. MDL-14965

Moodle fresh install fails with error on admin/index.php 532, in PHP 5

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.9.2
    • Fix Version/s: 1.9.2
    • Component/s: General
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE
    • Rank:
      24441

      Description

      Error is because blocks_execute_action second parameter is a reference one, but this line of code tries to call it with the result of a function - can't do that, it has to be a variable.

        Activity

        Hide
        Sam Marshall added a comment -

        I checked in a fix to MOODLE_19+MOODLE_19_MERGED,HEAD. The fix is the obvious one (assign the function call return to a variable, pass that to the function that complained).

        In addition to the line mentioned there was another bug (same bug different function) in accesslib. I fixed it the same way.

        I have now been able to install my MOODLE_19! (php 5.2, mysql).

        Show
        Sam Marshall added a comment - I checked in a fix to MOODLE_19+MOODLE_19_MERGED,HEAD. The fix is the obvious one (assign the function call return to a variable, pass that to the function that complained). In addition to the line mentioned there was another bug (same bug different function) in accesslib. I fixed it the same way. I have now been able to install my MOODLE_19! (php 5.2, mysql).
        Hide
        Sam Marshall added a comment -

        Within this same area (pass-by-reference with something that isn't a reference causing php5 failures) I found another bug in lib/form/format.php, which prevented you from making a forum post., possibly among other things. (The error occurred when you click 'Add new post', before actually making it.) I checked the same fix in there.

        Show
        Sam Marshall added a comment - Within this same area (pass-by-reference with something that isn't a reference causing php5 failures) I found another bug in lib/form/format.php, which prevented you from making a forum post., possibly among other things. (The error occurred when you click 'Add new post', before actually making it.) I checked the same fix in there.
        Hide
        Petr Škoda added a comment -

        thanks

        Show
        Petr Škoda added a comment - thanks

          People

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

            Dates

            • Created:
              Updated:
              Resolved: