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

Author: Nemesis2456PostPosted: Thu Dec 16, 2004 11:49 am    Post subject: Re: same error for every theme i try

Edit: Nvm i thought there was a theme.php file but there isnt and i dont have one in my codgrunge file i donwloaded. were is the file supposed to go?

Nuke Cops -> Bug Reports

All times are GMT - 8 Hours

Page 1 of 1

Powered by phpBB © 2001,2002 phpBB Group
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 

Author: madmanPostPosted: Thu Dec 16, 2004 9:54 am    Post subject: Re: same error for every theme i try

Confirm if this file exist: themes/codgrunge/theme.php

  1. The file must be theme.php (all lowercase). Solution: rename the file.
  2. The file must be uploaded with ASCII mode. Solution: Re-upload.
  3. The file must be accessible by PHP (at least with read permission). Solution: CHMOD it to 644.
  4. The current directory must be in PHP-Nuke root. Solution: There are some workarounds, but the following code will ensure current theme loaded with full qualified path. Edit header.php and fine the following line:
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
· Home
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 269 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 - same error for every theme i try same error for every theme i try

Nuke Cops -> Bug Reports

Author: Nemesis2456 PostPosted: Wed Dec 15, 2004 9:01 pm    Post subject: same error for every theme i try

For some reason on every them except for one (that my friend just fixed and got working) is getting this error:

Warning: head(themes/codgrunge/theme.php): failed to open stream: No such file or directory in /home/www/ on line 31

Warning: head(): Failed opening 'themes/codgrunge/theme.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/ on line 31

Fatal error: Call to undefined function: themeheader() in /home/www/ on line 47

I dont really know what this means or how to fix it. I have seen this 3 errors in other posts but those have also more things wrong with them not jsut the 3 and i havent found one that says how to fix. i may be looking in the wrong place i dont know but any help would be great.

Replace with:
if (file_exists(dirname($_SERVER['SCRIPT_FILENAME']) . "/themes/$ThemeSel/theme.php"))
  include(dirname($_SERVER['SCRIPT_FILENAME']) . "/themes/$ThemeSel/theme.php");
  die("Cannot loading theme file: " . dirname($_SERVER['SCRIPT_FILENAME']) . "/themes/$ThemeSel/theme.php");

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.327 Seconds - 406 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
added by Evaders - DO NOT REMOVE
:: FI Theme :: PHP-Nuke theme by coldblooded ( ::