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

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 48 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Error at top of admin.php page [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
jerryrika
Nuke Cadet
Nuke Cadet


Joined: Aug 04, 2003
Posts: 4


PostPosted: Sun Aug 03, 2003 10:58 pm Reply with quoteBack to top

I know this question has been asked before, and I have searched several variations on how to solve it. Nothing has worked so far. I have tried loading up several different versions of PHP-Nuke to see if that would solve the problem, but 6.0, 6.5, and 6.7 all give me the same error at the top of the page. The error says:

<i>Warning: Unable to access modules/admin/language/lang-english.php in /export/apache/htdocs/html/mainfile.php on line 81</i>



After you enter the superuser information, and log into the admin.php, it is full of the same types of errors:

<i>Warning: Unable to access themes/DeepBlue/images/admin/stories.gif in /export/apache/htdocs/html/admin.php on line 107


Warning: Unable to access themes/DeepBlue/images/admin/backup.gif in /export/apache/htdocs/html/admin.php on line 107


Warning: Unable to access themes/DeepBlue/images/admin/banners.gif in /export/apache/htdocs/html/admin.php on line 107


Warning: Unable to access themes/DeepBlue/images/admin/blocks.gif in /export/apache/htdocs/html/admin.php on line 107</i>

...etc... But all of the images that it says it can't access, are available below all of the errors.


Any and all help will be greatly appreciated. I have been racking my brain on this for over a week now and I'll bet it is a simple fix. Thank you.

Jerry
Find all posts by jerryrikaView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Tue Aug 05, 2003 6:11 pm Reply with quoteBack to top

Would you please post line 81 and 107 from mainfile.php? Also, is this server on Windows?

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
jerryrika
Nuke Cadet
Nuke Cadet


Joined: Aug 04, 2003
Posts: 4


PostPosted: Thu Aug 07, 2003 6:10 pm Reply with quoteBack to top

Thank you for helping Raven.

Below is the function in mainfile.php that contains line 81. Line 81 is in bold text.

<i>function get_lang($module) {
global $currentlang, $language;
<b>if (file_exists("modules/$module/language/lang-$currentlang.php")) {</b>
if ($module == admin) {
include_once("admin/language/lang-$currentlang.php");
} else {
include_once("modules/$module/language/lang-$currentlang.php");
}
} else {
if ($module == admin) {
include_once("admin/language/lang-$currentlang.php");
} else {
include_once("modules/$module/language/lang-$language.php");
}
}
}</i>



Line 107: <i>if ($aid != "" AND $pwd != "") {</i>


The website is running on a Solaris 9 server. Right now it is running PHP-Nuke 6.0, but I get the same type of errors with 6.5 and 6.7, just on different lines.

Thanks again for helping.

Jerry
Find all posts by jerryrikaView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Thu Aug 07, 2003 6:14 pm Reply with quoteBack to top

Try putting the '@' in front of the file_exists function. So it becomes @file_exists

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
jerryrika
Nuke Cadet
Nuke Cadet


Joined: Aug 04, 2003
Posts: 4


PostPosted: Thu Aug 07, 2003 6:54 pm Reply with quoteBack to top

Raven,

That was it! Do you know why the errors have to be suppressed (@) when that function is called? It's funny because inside of the administration window, it would throw all those errors about unable to access the various gif's, but they would all be shown below the errors. Thank you very much for your help....now I can move on with the rest of this to get the site back up.


Jerry
Find all posts by jerryrikaView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Thu Aug 07, 2003 7:09 pm Reply with quoteBack to top

Yes, but I can't rememebr why! Laughing Old age again. I just know that certain sites experience it and we don't know why, as far as I know.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
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.168 Seconds - 162 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::