Closed (fixed)
Project:
Pageroute
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 May 2009 at 12:34 UTC
Updated:
29 Sep 2009 at 14:10 UTC
Right after installing pageroute 6.x-1.0-beta1 on Drupal 6.10, I get the following warnings from PHP on the top of every page:
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/.mingus/ddthomps/testbed.danielthompson.info/drupal-stable/modules/pageroute/pageroute.module on line 133
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of module_invoke_all(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/.mingus/ddthomps/testbed.danielthompson.info/drupal-stable/modules/pageroute/pageroute.module on line 135
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of call_user_func(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/.mingus/ddthomps/testbed.danielthompson.info/drupal-stable/modules/pageroute/pageroute.module on line 258
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of call_user_func(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/.mingus/ddthomps/testbed.danielthompson.info/drupal-stable/modules/pageroute/pageroute.module on line 433
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of call_user_func(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/.mingus/ddthomps/testbed.danielthompson.info/drupal-stable/modules/pageroute/pageroute.module on line 433
I'm using PHP 5.2.6/Apache 2.0.63/MySQL 5.0.16 and my host is Dreamhost.
Dreamhost does allow me to use a custom php.ini file, so I may be able to get around the problem like the error says, but I thought I would let you know about this bug in case people who can't change their php.ini files come across it.
Thanks.
Comments
Comment #1
dan.thompson commentedManaged to work around this at Dreamhost by setting up a custom php.ini file. Figured I'd document it here in case it is of use to somebody.
allow_call_time_pass_reference = Off. Change the wordOfftoOn.Your site should now be able to use the pageroute module without any warnings.
Comment #2
dan.thompson commentedSeems to be one possible cavet after working around the PHP warning: saving any changes to a pageroute will save the changes, but will just redirect your front page. I say possible because I don't know if this is intended behavior, or even due to my workaround.
Comment #3
sepgil commentedShould be fixed in the newest version...