- OpenX Community Forums
![]() ![]() |
Apr 23 2012, 10:46 PM
Post
#1
|
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 39 Joined: 25-December 06 Member No.: 15,051 |
Hello,
Once I have upgraded to PHP 5.4 I have started getting these errors [error] [client IP here] PHP Strict Standards: Non-static method Net_IPv4::ip2double() should not be called statically in /usr/home/domains/domain.com/public_html/adm/lib/pear/Net/IPv4.php on line 442, referer: http://www.domain.com/ |
|
|
|
Apr 24 2012, 07:39 PM
Post
#2
|
|
|
Member ![]() ![]() Group: Members Posts: 26 Joined: 2-May 09 Member No.: 27,818 |
Under php 5.4 deprecated functions in php 5.3 are completely removed making the script totally inoperable. There must be a major update of OpenX to be able to run under php 5.4.
|
|
|
|
Jun 5 2012, 11:01 PM
Post
#3
|
|
|
Beginner ![]() Group: Members Posts: 6 Joined: 25-May 12 Member No.: 172,490 |
Hello, Once I have upgraded to PHP 5.4 I have started getting these errors [error] [client IP here] PHP Strict Standards: Non-static method Net_IPv4::ip2double() should not be called statically in /usr/home/domains/domain.com/public_html/adm/lib/pear/Net/IPv4.php on line 442, referer: http://www.domain.com/ Same problem ((((((((((( |
|
|
|
Oct 4 2012, 07:49 AM
Post
#4
|
|
|
Beginner ![]() Group: Members Posts: 3 Joined: 3-October 12 Member No.: 176,014 |
Okay, I'm just run out of PHP 5.4 problems:
Non-static method Net_IPv4::ip2double() should not be called statically. What does it mean? Simple you're using class Net_IPv4 { function ip2double(){} } insted of class Net_IPv4 { public static function ip2double(){} } while calling it. Got it? /openx/lib/pear/Net/IPv4.php :414 function ip2double($ip) change to public static function ip2double($ip) And all methods that are calling statically should starts with "public static" definition. (But it may cause some problems in future - just log what and where you do and it helps resolve if some happens.) Another common problem with PHP 5.4 is: Creating default object from empty value in /home/www/script.php on line 2 1: <?php 2: $object->property = "value"; That's because $object object have't initialized. You should init it first by $object = new stdClass(); 1: <?php 2: $object = new stdClass(); 3: $object->property = "value"; After upgrading problem with plugins described here http://blog.netflowdevelopments.com/2011/0...ading-to-2-8-7/ and the last problem with openx on PHP 5.4 (500 on statistics page) described here http://forum.openx.org/index.php?showtopic...st&p=315334 |
|
|
|
![]() ![]() |