PDA

View Full Version : How can I fix these Webpost fsock problems


Nemhain
24-06-2004, 18:56
Using Webpost 4.1.7 with PHP 4.3.1 and MySQL 3.23.56 I get the errors posted below when running both admin and the serverlist. Since I got it working on a test server with PHP 4.3.4 and even older MySQL database. It must have to do with the PHP version.
How can I fix it? Upgrading PHP on the server where we want it is not possible since it's a rented server.

The errors:

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). 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. However, future versions may not support this any longer. in /home/.sites/1/site119/web/tstest/admin/db_inc.php on line 304

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). 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. However, future versions may not support this any longer. in /home/.sites/1/site119/web/tstest/admin/db_inc.php on line 304

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). 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. However, future versions may not support this any longer. in /home/.sites/1/site119/web/tstest/admin/db_inc.php on line 359

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). 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. However, future versions may not support this any longer. in /home/.sites/1/site119/web/tstest/admin/db_inc.php on line 359

Warning: Cannot modify header information - headers already sent by (output started at /home/.sites/1/site119/web/tstest/admin/db_inc.php:304) in /home/.sites/1/site119/web/tstest/admin/index.php on line 40

McAfee
24-06-2004, 20:28
you could modify the db_inc.php file
Go to line 304 and remove the ampersand (&)
from the variables: &$errno and &$errstr
so they look like: $errno and $errstr

Do the same for line 359

Nemhain
24-06-2004, 20:49
It's working thank you :)