Author |
Message |
ghostgeek
Regular


Joined: Jan 14, 2005
Posts: 93
|
Posted:
Sat Nov 19, 2005 4:11 pm |
|
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? |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sat Nov 19, 2005 7:57 pm |
|
That usually means a MySQL connection problem. Set $display_errors = TRUE; in your config.php file and try again. |
|
|
|
 |
ghostgeek

|
Posted:
Sun Nov 20, 2005 3:02 pm |
|
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

|
Posted:
Sun Nov 20, 2005 3:20 pm |
|
|
|
 |
ghostgeek

|
Posted:
Sun Nov 20, 2005 4:00 pm |
|
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

|
Posted:
Sun Nov 20, 2005 4:02 pm |
|
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

|
Posted:
Sun Nov 20, 2005 4:05 pm |
|
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

|
Posted:
Sun Nov 20, 2005 4:21 pm |
|
OK yea - I forgot to stop and restart apache
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 |
|
|
|
 |
|