This tips will help you to solve theme problem. Be sure to leave at least one theme exists in "themes/" directory in order this hack to work (used when no specified user themes has found). This will solve common problem when you get the following error message:
Warning: main(themes//theme.php): failed to open stream: No such file or directory... Warning: main(themes/NOT_EXISTS/theme.php): failed to open stream: No such file or directory...
Note:
This tips has been posted by me in NukeCop's "Post Installation Help" forum.
if (($theme_file == '') || !file_exists($theme_file))
{
$theme_found = false;
$hdir = @opendir($ThemePath . "themes");
if ($hdir)
{
while ($file = @readdir($hdir))
{
if ($file == '.') continue;
if ($file == '..') continue;
if (!is_dir($ThemePath . "themes/" . $file)) continue;
if (!preg_match('/^[a-zA-Z0-9_-]+$/', $file)) continue;
if (!file_exists($ThemePath . "themes/" . $file . "/theme.php")) continue;
$theme_found = true;
$ThemeSel = $file;
break(1);
}
@closedir($hdir);
}
if ($theme_found == false) die('<center><br /><br /><img border="0" src="images/logo.gif" /><br /><br /><b>Site Theme Error</b><br />Sorry we have problem with theme for this site. Please come back later.</center>');
}
One of the most common problems is downloading an AutoTheme theme but not having the AutoTheme module installed.
So either download AutoTheme (best method) or delete the non-working theme and rename a working theme to the non-working theme name.
-Shawn
_________________ Get the AutoTheme HTML Theme System HERE!
epidion Nuke Cadet
Joined: Feb 13, 2005
Posts: 1
Posted:
Sun Feb 13, 2005 4:01 pm
i put in your code and it got rid of the warnings and enabled the page to load. but now i cannot change the theme from the default anagram theme. any ideas?
senad Nuke Cadet
Joined: Apr 24, 2005
Posts: 1
Location: USA
Posted:
Sat Apr 23, 2005 11:58 pm
Hi i have same problem can somebody Help me.
i got this Masage
Warning: themeheader(banners.php): failed to open stream: No such file or directory in /home/xxxxxxx/public_html/PHP/html/themes/DeepBlue/theme.php on line 59
Warning: themeheader(): Failed opening 'banners.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/xxxxxxx/public_html/PHP/html/themes/DeepBlue/theme.php on line 59
and in admin page in right seite this two Warning
Warning: Missing argument 3 for themesidebox() in /home/xxxxxx/public_html/PHP/html/themes/DeepBlue/theme.php on line 158
Fatal error: Call to undefined function: adminblock() in /home/xxxxxx/public_html/PHP/html/mainfile.php on line 467
Can somebody HELP me Please i have Fresh copy of Nuke Platinium but in Themes i dont se this " banners.php " where i can geret this page.
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