Moodle: Notice: Only variable references should be returned by reference

Notice: Only variable references should be returned by reference

The issue is with Moodle using an old adodb set that uses "references" which resulted in memory curruption which was addressed in PHP 4.4.0.

To correct perform the following:

Open up the adodb.inc.php file.

The error is around line 2660 of the 4.64 version of the adodb system. Look for the following section:

Change this line:

function &GetAssoc($force_array = false $first2cols = false)

To this:

function GetAssoc($force_array = false $first2cols = false )


Once complete upload this update over the existing adodb.inc.php in your account.



You can also download the latest available version of adodb here.
  • 509 Users Found This Useful

Was this answer helpful?

Related Articles

How do I reset SMF administrator password?

Reset your SMF admin password First login to your control panel, click on "MySQL" then click on...

osCommerce - This is a potential security risk - please set the right user permissions on this file

This error is caused when the /includes/configure.php is world writable. To correct this, log...

Strict Standards Error in Joomla

You are running an out-dated install of Joomla and we highly recommend updating it to avoid your...

Joomla Strict Standards: Declaration of JParameter::loadSetupFile() should be compatible with that of JRegistry::loadSetupFile()

For this particular error we have found a work around which works until Joomla corrects their...

Turn off PHP error messages via htaccess

From time to time you may encounter a script which has error messages you do not wish to see....