Moodle
  1. Moodle
  2. MDL-29423

Deprecated: Assigning the return value of new by reference is deprecated

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.9.13
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
    • Database:
      MySQL
    • Workaround:
      Hide

      in \moodle\course\modedit.php on line 187
      remove the "&"

      Show
      in \moodle\course\modedit.php on line 187 remove the "&"
    • Affected Branches:
      MOODLE_19_STABLE
    • Rank:
      18932

      Description

      When creating a new Activity in moodle 1.9 with debug mode ON, we are getting this error warning:
      Deprecated: Assigning the return value of new by reference is deprecated in \moodle\course\modedit.php on line 187

        Activity

        Joseph Rézeau created issue -
        Hide
        Ray Lawrence added a comment -

        Same here Moodle 1.9.13+ (Build: 20111007)

        PHP 5.3.6

        Show
        Ray Lawrence added a comment - Same here Moodle 1.9.13+ (Build: 20111007) PHP 5.3.6
        Ray Lawrence made changes -
        Field Original Value New Value
        Priority Minor [ 4 ] Major [ 3 ]
        Database [MySQL]
        Ray Lawrence made changes -
        Labels partner
        Martin Dougiamas made changes -
        Assignee Martin Dougiamas [ dougiamas ] moodle.com [ moodle.com ]
        Petr Škoda made changes -
        Assignee moodle.com [ moodle.com ] Petr Škoda (skodak) [ skodak ]
        Hide
        Petr Škoda added a comment -

        Hello, Moodle 1.9.x was not designed to be compatible with PHP 5.3, we fixed only critical issues that were breaking it. Please disable all notices and warnings in your installation and try to consider upgrading to Moodle 2.2.

        Petr

        Show
        Petr Škoda added a comment - Hello, Moodle 1.9.x was not designed to be compatible with PHP 5.3, we fixed only critical issues that were breaking it. Please disable all notices and warnings in your installation and try to consider upgrading to Moodle 2.2. Petr
        Petr Škoda made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Won't Fix [ 2 ]
        Hide
        Joseph Rézeau added a comment -

        OK, thanks for the info, Petr
        Joseph

        Show
        Joseph Rézeau added a comment - OK, thanks for the info, Petr Joseph

          People

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

            Dates

            • Created:
              Updated:
              Resolved: