WAMP and Deprecated errors

Requests, feedback, and general discussion about WoWRoster
DO NOT post topics about WoWRoster AddOns here!

WAMP and Deprecated errors

Postby dublea » Tue Aug 24, 2010 4:30 pm

So I've read that you can use WAMP to test wowroster. I've installed wamp 2.0i (PHP 5.3.0 & MySQL 5.1.36) on a machine on my network and was even able to install phpbb with no issues. I then attempted to installed wowroster and noticed these issues:

Code: Select all
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\roster\settings.php on line 179

Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\wamp\www\roster\settings.php on line 62

Deprecated: Function ereg() is deprecated in C:\wamp\www\roster\settings.php on line 77

Deprecated: Function ereg_replace() is deprecated in C:\wamp\www\roster\lib\template.php on line 180


all over the webpage. What can I do to make those go away?
dublea
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Sat May 15, 2010 11:41 pm

Re: WAMP and Deprecated errors

Postby Nefuh » Tue Aug 24, 2010 6:43 pm

You can edit the php.ini file.

Search for "error_reporting" and add "~E_DEPRECATED"
Save the file
Restart Apache

alternative search for "display_errors" and set it to 0 instead of 1.

The first method is the better, because all PHP error still appears, in the second method, all errors messages disappear. On error, the second method results in which one sees only a blank page and no error message why this is so.
Administrator of the german User2User Community for WoWRoster.
Guild Master from Scum from Hell - Horde @ EU-Anetheron.
User avatar
Nefuh
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 213
Joined: Fri Sep 15, 2006 8:34 pm
Location: Krefeld Germany

Re: WAMP and Deprecated errors

Postby dublea » Tue Aug 24, 2010 8:18 pm

Ok, so with WAMP I found I had two php.ini files.
One was found in x:\wamp\bin\php\php5.3.0\ and the other was in x:\wamp\bin\apache\Apache2.2.11\bin\
They are both identical and both had the 'error_reporting = E_ALL'

I changed both believing that it wouldn't display deprecation or notices to
Code: Select all
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED

restarted apache and I still have the same issues.

I must have made a mistake. After install I see:
Code: Select all
Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\wamp\www\roster\settings.php on line 62

Deprecated: Function ereg() is deprecated in C:\wamp\www\roster\settings.php on line 77

Notice: Undefined offset: 8192 in C:\wamp\www\roster\lib\roster_error.php on line 132


That damn notice about line 132 is all over everything.

should I have added & ~E_NOTICE & ~E_DEPRECATED at the end to block notices and deprecation errors or did I do it wrong?

P.S. I change On to Off for display_error but I still have that damn notice line 132 showing everywhere.

~Edit~ Ok, so to fix the notice issue I had to edit roster_error.php and modify:

Code: Select all
                E_STRICT          => 'Runtime Notice'


to:

Code: Select all
                E_STRICT          => 'Runtime Notice',
                E_DEPRECATED      => 'Core Warning, Depreciated'


No more errors displaying.
dublea
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Sat May 15, 2010 11:41 pm


Return to General Support & Feedback

Who is online

Users browsing this forum: No registered users and 1 guest

cron