Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
ghostgeek
Regular
Regular



Joined: Jan 14, 2005
Posts: 93

PostPosted: Tue Aug 15, 2006 8:37 am Reply with quote

I'm running Nuke 7.6 core. I've recently had to reinstall everything on a new server. Just about everything seems to be back to normal, but my donat-o-meter block for the Nuke Treasury module displays the following error...

Code:


Warning: get_lang(modules/public_html/language/lang-english.php) [function.get-lang]: failed to open stream: No such file or directory in /home/MYSITE/public_html/mainfile.php on line 328

Warning: get_lang() [function.include]: Failed opening 'modules/public_html/language/lang-english.php' for inclusion (include_path='.:/usr/share/pear') in /home/MYSITE/public_html/mainfile.php on line 328


I note the path - modules/public_html/language/lang-english.php is incorrect. "public_html" is not a module - its my webroot where Nuke is installed.

Here is the "get_lang" function from my mainfile.php

Code:
function get_lang($module) {

    global $currentlang, $language;
    if (file_exists("modules/$module/language/lang-english.php")) {
                if ($module == "admin") {
                    include_once("admin/language/lang-english.php");
                } else {
                    include_once("modules/$module/language/lang-english.php");
                }
        } else {
                if ($module != "Forums") {
                        if ($module == "admin") {
                            include_once("admin/language/lang-english.php");
                        } else {
                            include_once("modules/$module/language/lang-english.php");
                        }
                }
    }
}


So I can see that its confused - it thinks the web root "public_html" is a module name and is interpreting it as such with the $module variable. But I'm unsure how to remedy this.

Any advice is greatly appreciated - as always! Smile
 
View user's profile Send private message
gregexp
The Mouse Is Extension Of Arm



Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Tue Aug 15, 2006 9:40 am Reply with quote

I believe your donate meter is not upto date, search for a more upto date version.

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
finalheaven
Regular
Regular



Joined: Jul 15, 2006
Posts: 64

PostPosted: Tue Aug 15, 2006 11:12 am Reply with quote

Download 1.1 from the downloads section here. Then keep in mind to make the appropriate changes for the config.inc.php file. Some files reference config.inc.php, others reference config.php.
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©