A error happens when an user makes logout. This happens if the user has selected a theme opposite of the default. Because when the user makes logout the phpnuke to try to return to the default theme, and it is where the error happens.
Code:
Fatal error: Cannot redeclare opentable() (previously declared in c:\AppServ\www\nuke\themes\Odyssey\tables.php:15) in c:\AppServ\www\nuke\themes\DeepBlue\theme.php on line 14
Default theme configured in the database: DeepBlue
Theme selected by the user in your account: Odyssey
Reminding that both themes are originals of the nuke7.9
Chatserv, this didn't work. I already discovered the mistake and I already repaired with the same original code.
it is enough to increase, $op in the end of the global line
In mainfile.php
Change:
Code:
function get_theme() {
global $user, $userinfo, $Default_Theme, $name;
To:
Code:
function get_theme() {
global $user, $userinfo, $Default_Theme, $name, $op;
Remember that this works in the original code, and not in the code shown by the chatserv.
chatserv, you can edit this message for a perfect English.
The first line makes sure $userinfo['theme'] is not empty by setting it to $Default_Theme if the user doesn't have a theme set in his profile so the part that reads:
Chatserv, that is necessary yes! Because if the administrator excludes the theme that the user used, when this user makes login a error will happen.
I proved and I saw this error:
Code:
Warning: main(themes//theme.php) [function.main]: failed to open stream: No such file or directory in c:\AppServ\www\nuke\mainfile.php on line 1012
Warning: main() [function.include]: Failed opening 'themes//theme.php' for inclusion (include_path='.;C:\php5\pear') in c:\AppServ\www\nuke\mainfile.php on line 1012
Warning: main(themes//theme.php) [function.main]: failed to open stream: No such file or directory in c:\AppServ\www\nuke\mainfile.php on line 1249
Warning: main() [function.include]: Failed opening 'themes//theme.php' for inclusion (include_path='.;C:\php5\pear') in c:\AppServ\www\nuke\mainfile.php on line 1249
Warning: head(themes//theme.php) [function.head]: failed to open stream: No such file or directory in c:\AppServ\www\nuke\header.php on line 31
Warning: head() [function.include]: Failed opening 'themes//theme.php' for inclusion (include_path='.;C:\php5\pear') in c:\AppServ\www\nuke\header.php on line 31
Fatal error: Call to undefined function: themeheader() in c:\AppServ\www\nuke\header.php on line 50
For this I say that it is better to maintain the code:
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