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

Coppermine Gallery cannot create thumbnails

Coppermine Gallery Thumbnail Issues   If Coppermine Gallery cannot create thumbnails, the...

How do I reset Joomla administrator password?

How to reset Joomla administrative password Start by logging into your control panel. Once...

How to reset the admin password in Drupal

Resetting the Admin Password in Drupal   If you have been locked out of your Drupal admin...

How do I reset Zen Cart administrator password?

First login to your control panel with us, then click on the "phpMyAdmin" icon. Click the...

Tiki Wiki: Notice: Only variable references should be returned by reference

You can find the latest version of ADODB here. To modify the function to not return a...



Save 30% on web hosting - Use coupon code Hosting30