Closed (fixed)
Project:
Link Views RSS
Version:
5.x-5.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
16 Feb 2008 at 02:26 UTC
Updated:
10 Apr 2009 at 16:20 UTC
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
Comment #1
abnergopher commentedgood 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--
Comment #2
shane birley commentedTested and fixed.