We are getting this error on activating version 7.x-2.3:

Deprecated function: Call-time pass-by-reference has been deprecated in drupal_load() (line 1128 of .../includes/bootstrap.inc).

Thanks for your help!

Comments

Putr’s picture

I'm getting this same error, but we DO NOT use this module. (it's probably a core issue)

Putr’s picture

Nevermind, it's not a core issue, but a problem in "on of you're installed modules".
If you cant track it down to a module, or it's not getting fixed.. you can suppress the message with this:
http://www.php.net/manual/en/ini.core.php#ini.allow-call-time-pass-refer...

bartl’s picture

I've had the same issue. It looks to me like there's a bug in PHP, that it reports the error in the wrong place.

The line the message points to contains an "include_once" statement. That line is fine, and the most logical conclusion is that the error is in the PHP file that gets loaded in that line.

The actual error is most likely use of "&$" somewhere, but it doesn't even have to be in a file loaded by that last include_once! Like, I logged the uses of drupal_load on my site, and it logged three calls on that line 1128: "i18n_block", "i18n_sync" and "standard.profile". It turns out actual error was in a totally unrelated module.

PHP just seems to remember the last time include_once was called, and reports the error in that line.

So how do you hunt down the error? Disable your modules one by one, leaving the other enabled if possible, until it goes away. That module will most likely contain the error.

Bizio’s picture

I have this prolem too with a Drupal installation running with PHP 5.3.8... In another Drupal installation, running with PHP 5.2.14 all works fine... In this 2nd installation i can read PHP about Directive "allow_call_time_pass_reference": Local Value On | Master Value On.

Bizio’s picture

Well, I heave set ON Directive "allow_call_time_pass_reference" and now fine works also with PHP 5.3.8. This directive is deprecated so the better solution maybe is follow this topic with patchs: http://drupal.org/node/1132290

Ciao
Fabrizio

ultimateboy’s picture

Status: Active » Closed (duplicate)

This is almost definitely the same issue reported http://drupal.org/node/1166504 which has been fixed in the latest -dev. Please update to the latest dev to make sure, feel free to re-open if the issue is still present.

Snakehead’s picture

I reported this Warning after activating Subform and Relation Edit Widget module. After deactivating the Subform module the warning disappeared.
With the statement allow_call_time_pass_reference in the php.ini-File it seems to be OK. Thanks!

AlanO’s picture

I can confirm Snakehead #7. I recieved the error on a clean 7.14 install with the relation edit widget and subform enabled.

dilari’s picture

I can also confirm Snakehead #7:
The error disappeared after disabling Relation select.

EDIT: However, today on a clean D7.14 install (no contrib mods) had the same warning...crazy

mhd999’s picture

I got the same problem and it's gone by stopping the beta modules for my case it was "Publish button modules"