Help, I'm having problem with my php-nuke 7.8 powered site now, after 1 month ago my old host got hacked by some arabian hackers, and the server went down with all the index titled files modified by the hackers, the server still dead and I switched to a new host by transferring the files from my backup before the hacking, but now my site become like this:
I know there's a way to remove those notices but I'm not able to edit the php.ini file because it is with the server, I hope the errors can be solved and I would like to know the cause of all the errors, what are those undefined stuff mean? anyway to fix it?
HalJordan Support Staff
Joined: Aug 07, 2004
Location: Somewhere around Hunan, China
Tue Sep 12, 2006 2:53 pm
Did you also transfer your database, and edit your config.php to reflect the new host settings?
Yes, my database transffered to the new host and my config.php pointed to the database correctly, and the settings are correct.
Joined: Aug 03, 2003
Location: United Kingdom
Wed Sep 13, 2006 4:41 am
In mainfile.php find:
$phpver = phpversion();
and immediately above it add:
ini_set('error_reporting','E_ALL & ~E_NOTICE');
In admin.php find:
and underneath, add the same line.
Your host has error reporting set to report notices as well as errors. These notices are not errors but report when php coding standards are not strictly adhered to. They shouldnt be shown for live sites. The above line of code will set error reporting to the required level for the duration of your PHP-Nuke script without having to alter php.ini on the server.
Tested on an unpatched Nuke 7.8 site
Now fixing your notices does not mean that there are not any real errors among that lot. But at least you will be able to eliminate the notices and see only real errors.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum