Author |
Message |
CodyG
Life Cycles Becoming CPU Cycles
![](modules/Forums/images/avatars/186c8977515afcc3ed82a.jpg)
Joined: Jan 02, 2003
Posts: 714
Location: Vancouver Island
|
Posted:
Wed Jan 30, 2013 6:53 pm |
|
Hi All...
I've got a rn2.30.01 with php5.3. I've finally got some time to look into some errors. I've been using the forum search function for days... but no luck. Maybe I should give up that path and correct these depreciation errors by upgrading the site to RN2.5?
Here are the first couple.
[28-Jan-2013 08:59:44 America/Los_Angeles] PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/*****/public_html/includes/nukeSEO/nukeSEOfunctions.php on line 313
[28-Jan-2013 08:59:44 America/Los_Angeles] PHP Deprecated: Function eregi() is deprecated in /home/*****/public_html/modules.php on line 36
I'm hoping these errors are going to be a quick patch type of thing. Any help is much appreciated. |
_________________ "We want to see if life is ubiquitous." D.Goldin |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/3234de284ee21bd39eecd.jpg)
Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Wed Jan 30, 2013 7:14 pm |
|
If you don't want to upgrade to 2.5, just download 2.5 and compare the files in your site with 2.5. You should be able to see how they were fixed. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
neralex
Site Admin
![](modules/Forums/images/avatars/201442295664a46e4575d46.jpg)
Joined: Aug 22, 2007
Posts: 1775
|
Posted:
Thu Jan 31, 2013 6:23 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
CodyG
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Jan 31, 2013 8:52 am |
|
Thank you. I will be upgrading several of my smaller sites to 2.5 today and tomorrow. But the larger sites are going to take a bit more time. In the meantime, for the large sites, I've managed to correct the depreciated bits in seven files and am now working on the coppermine files. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
CodyG
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Jan 31, 2013 9:38 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
CodyG
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Jan 31, 2013 10:45 am |
|
One thing in nukeSEOfunctions.php... is throwing depreciated errors and is also in 2.5.0.0. I'm trying to get the replacement preg_match syntax, but I just don't see it.
<code>
function encodeBoxover($string) {
$string = eregi_replace('\[','(', $string);
$string = eregi_replace('\]',')', $string);
return $string;
}
}</code>
I'm trying to use bbcode.
Is there a way to turn off SEO functions in the config? I'm discovering that if I turn off RSS feeds I can reduce the errors from SimplePie, so where is the off switch for this SEO bit? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
CodyG
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Jan 31, 2013 11:21 am |
|
A few hours later ... I reduced the coppermine errors, but I'm still getting a ton of SEO and SimplePie errors. These two functions are creating a 60,000+ line error logs in less than 3 hours and it needs to stop. How do I turn it off?
One thing in nukeSEOfunctions.php... is throwing depreciated errors and is also in 2.5.0.0. I'm trying to get the replacement preg_match syntax, but I just don't see it.
<code>
function encodeBoxover($string) {
$string = eregi_replace('\[','(', $string);
$string = eregi_replace('\]',')', $string);
return $string;
}
}</code>
I'm trying to use bbcode.
Is there a way to turn off SEO functions in the config? I'm discovering that if I turn off RSS feeds I can reduce the errors from SimplePie, so where is the off switch for this SEO bit? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Jan 31, 2013 11:56 am |
|
In rnconfig.php, you could change error_reporting to this:
Code:
$error_reporting = E_ALL^E_NOTICE; // This is the default and means: All errors except Notices
if (defined('E_DEPRECATED')) $error_reporting = $error_reporting^E_DEPRECATED; // If want to see these warnings when running PHP5.3, comment out this IF statement
|
and it will remove the warnings. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
CodyG
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Jan 31, 2013 12:33 pm |
|
I've tried that and it doesn't remove the SimplePie and SE0 errors from the error log automatically created in the public_html dir. It's a busy site and every two minutes this error_log is filling up this root dir with 900 lines of simplepie.inc and nukeSE0functions.php depreciation errors.
I've set whm to not create log files more than 200KB, but that must be some other log file. ;| Andy more ideas? Thanks. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
CodyG
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Jan 31, 2013 12:43 pm |
|
Apparently I can get rid of a lot of ampersands in simplepie.inc and will hope that helps. I'll let you know. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
CodyG
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Jan 31, 2013 1:04 pm |
|
That worked! Just change all instances of =$ new to = new in simplepie.inc.
But I've still got a ton of SEO errors. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Jan 31, 2013 2:59 pm |
|
Try this:
Code:
function encodeBoxover($string) {
$string = str_replace('[','(', $string);
$string = str_replace(']',')', $string);
return $string;
}
}
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
CodyG
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Jan 31, 2013 3:46 pm |
|
That works. Thanks.
I've still got errors in a ton of stuff but picking them off one by one and learning that "/ ... /" is better than "...".
The last error_log file had only 44 lines of errors over 11 minutes, not thousands. ![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm
![](modules/Forums/images/avatars/5ed231554a8492e2e09da.gif)
Joined: Aug 13, 2009
Posts: 1123
|
Posted:
Thu Jan 31, 2013 5:45 pm |
|
Hi CodyG
This should help you as well
http://php.net/manual/en/migration53.deprecated.php
Someone write a Perl script that finds and updates the following deprecated regular expression functions in PHP 5.3
Type this word "deprecated" in the search bar
I am very sure you will get lots of answers ![Wink](modules/Forums/images/smiles/icon_wink.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
CodyG
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Jan 31, 2013 6:28 pm |
|
There are still a few places in RN2.5.0 which uses eregi and eregi_replace. Is someone keeping track of those? Are they going to be fixed? I was able to stop the errors by adding / to double quotes, but not sure if that's the best approach. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Jan 31, 2013 6:49 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|