You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 358 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Undefined variable, index, offset, and etc. [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
yong1986
Nuke Cadet
Nuke Cadet


Joined: Sep 12, 2006
Posts: 3

Location: Malaysia

PostPosted: Tue Sep 12, 2006 4:58 am Reply with quoteBack to top

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:
http://gbbm.4000webs.com/nuke/
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?
thanks.

_________________
---
Find all posts by yong1986View user's profileSend private messageVisit poster's websiteICQ Number
HalJordan
Support Staff
Support Staff


Joined: Aug 07, 2004
Posts: 1117

Location: Somewhere around Hunan, China

PostPosted: Tue Sep 12, 2006 2:53 pm Reply with quoteBack to top

Did you also transfer your database, and edit your config.php to reflect the new host settings?

_________________
Obedezco, pero no cumplo.

Proprietor, www.computernewbie.info
Support staff, www.nukecops.com
Find all posts by HalJordanView user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
yong1986
Nuke Cadet
Nuke Cadet


Joined: Sep 12, 2006
Posts: 3

Location: Malaysia

PostPosted: Tue Sep 12, 2006 7:49 pm Reply with quoteBack to top

Yes, my database transffered to the new host and my config.php pointed to the database correctly, and the settings are correct.

_________________
---
Find all posts by yong1986View user's profileSend private messageVisit poster's websiteICQ Number
arnoldkrg
Major
Major


Joined: Aug 03, 2003
Posts: 936

Location: United Kingdom

PostPosted: Wed Sep 13, 2006 4:41 am Reply with quoteBack to top

In mainfile.php find:
Code:
$phpver = phpversion();


and immediately above it add:
Code:
ini_set('error_reporting','E_ALL & ~E_NOTICE');


In admin.php find:
Code:
define('ADMIN_FILE', true);


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.

_________________
Image
Find all posts by arnoldkrgView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.063 Seconds - 116 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::