Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Installation Help
Author Message
ghostgeek
Regular
Regular



Joined: Jan 14, 2005
Posts: 93

PostPosted: Sat Nov 19, 2005 4:11 pm Reply with quote

I've backed up my database using mysql dump, moved it to my new server, created a blank database with mysqladmin and populated it with the data from my old servers database.

However when i go to the main page of the nuke site on the new server, it has my site name in the browser bar, but the page comes up blank.

I'm running PHPnuke 7.5 on both servers.

Any ideas?
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Nov 19, 2005 7:57 pm Reply with quote

That usually means a MySQL connection problem. Set $display_errors = TRUE; in your config.php file and try again.
 
View user's profile Send private message
ghostgeek







PostPosted: Sun Nov 20, 2005 3:02 pm Reply with quote

Hi Raven... Thanks for the help as always.

Turns out the problem was the default theme I was using wasn't installed on the new box. I copied it over, and I can now see the site, albeit I'm getting a number of errors (yes - I turned on error reporting as you instructed).

Most critcial is that I cannot login via admin.php I'm prompted for username and password, and taken to the admin control panel, but then when I attempt to click on any icon, I'm returned to the admin login screen again.

Here are the errors I'm getting when I access admin.php -

At the top of the page, above the header, the following errors are displayed...

Code:


Notice: Use of undefined constant admin - assumed 'admin' in /home/DOMAIN/public_html/admin.php on line 35

Notice: Use of undefined constant admin - assumed 'admin' in /home/DOMAIN/public_html/mainfile.php on line 211

Notice: Undefined variable: aid in /home/DOMAIN/public_html/admin.php on line 84

Notice: Undefined variable: aid in /home/DOMAIN/public_html/admin.php on line 87

Notice: Undefined variable: pwd in /home/DOMAIN/public_html/admin.php on line 88

Notice: Undefined variable: op in /home/DOMAIN/public_html/admin.php on line 89


Once I "login", I see these errors above the header...

Code:


Notice: Use of undefined constant admin - assumed 'admin' in /home/DOMAIN/public_html/admin.php on line 35

Notice: Use of undefined constant admin - assumed 'admin' in /home/DOMAIN/public_html/mainfile.php on line 211

Notice: Use of undefined constant HTTP_USER_AGENT - assumed 'HTTP_USER_AGENT' in /home/DOMAIN/public_html/admin.php on line 91

Notice: Use of undefined constant random_num - assumed 'random_num' in /home/DOMAIN/public_html/admin.php on line 91

Notice: Use of undefined constant gfx_check - assumed 'gfx_check' in /home/DOMAIN/public_html/admin.php on line 93

Notice: Undefined index: gfx_check in /home/DOMAIN/public_html/admin.php on line 93


The last two lines of the above error message are repeated maybe 100 times or more over and over.

Thanks again for any advice you all can offer up.
 
Raven







PostPosted: Sun Nov 20, 2005 3:20 pm Reply with quote

http://www.ravenphpscripts.com/faq-2-Nuke+.html-+Troubleshooting#18
 
ghostgeek







PostPosted: Sun Nov 20, 2005 4:00 pm Reply with quote

Per that document, I've set php.ini to:
error_reporting = E_ALL & ~E_NOTICE

I still get the errors. And I still am returned to the admin login page every time I try to access one of the admin modules.
 
ghostgeek







PostPosted: Sun Nov 20, 2005 4:02 pm Reply with quote

Oh and again, i turned on error reporting in config.php. I could turn that off, but thats not going to fix the errors, is it?
 
Raven







PostPosted: Sun Nov 20, 2005 4:05 pm Reply with quote

Make sure that you removed the ; that is usually before the error_reporting = E_ALL & ~E_NOTICE line. Also, you must restart your Web Server for the changes to take effect.
 
ghostgeek







PostPosted: Sun Nov 20, 2005 4:21 pm Reply with quote

OK yea - I forgot to stop and restart apache Rolling Eyes

The errors are "gone" but I still am asked to relogin to the admin interface every time I try to go to any area within the admin panel
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Installation Help

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©