Hi there!

I moved my working drupal 5.7 installation from my localhost (wamp) to my webspace
and received the following error from the webserver:

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of preg_match(). 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 MY_WEBSITE/sites/all/modules/link_views_rss/link_views_rss.module on line 77

I found out that Call-time pass-by-reference is disabled by default for php5 because it will not be support in futher releases.
My host supports changing skipt settings, so i got it working, but i think this should be fixed.

I like your module: It's simple but effective...

regards
alex

Comments

abnergopher’s picture

good day to you,

If you get the following error message in your server there are a couple of methods to try and fix it. Hope these will work for you,
because it helped me a lot.

ERROR:
Warning: Call-time pass-by-reference has been deprecated - argument passed by value;

Solution 1:

Open the ini.inc.php file and add the following line after the open php tag
ini_set("allow_call_time_pass_reference",true);

Solution 2:

Create an .htaccess file in the root folder in your server with the content below:

php_flag allow_call_time_pass_reference on

If you already have an .htaccess in the root file then just added this to the top.

---hope it will fix your problem--

Shane Birley’s picture

Assigned: Unassigned » Shane Birley
Status: Active » Fixed

Tested and fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.