Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes
Author Message
HauntedWebby
Involved
Involved


Joined: May 19, 2004
Posts: 363
Location: Ogden, UT

PostPosted: Thu Nov 11, 2004 3:17 pm Reply with quote

On my genealogy script I noticed this error:

Warning: get_lang(modules/public_html/language/lang-English.php): failed to open stream: No such file or directory in /path/public_html/mainfile.php on line 185

Warning: get_lang(): Failed opening 'modules/public_html/language/lang-English.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /path/public_html/mainfile.php on line 185

The file is there .. in both uper and lower case.

Line 185 is ... include_once("modules/$module/language/lang-".$language.".php");

Now if I replace the $module with Genealogy then it works fine. Does this mean the script is not calling out the $module value correctly? If so how would I change that? Smile
Only registered users can see links on this board! Get registered or login!

_________________
--Webby-- 
View user's profile Send private message Send e-mail
HauntedWebby
PostPosted: Thu Nov 11, 2004 3:31 pm Reply with quote

Well I worked out a band-aid. Not a solutions

I created a folder /path/public_html/modules/public_html/language

Then made a copy of my lang-english.php in that folder. Seems to work, but how should I really fix?
 
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Thu Nov 11, 2004 4:57 pm Reply with quote

HauntedWebby wrote:
On my genealogy script I noticed this error:

Warning: get_lang(modules/public_html/language/lang-English.php): failed to open stream: No such file or directory in /path/public_html/mainfile.php on line 185

Warning: get_lang(): Failed opening 'modules/public_html/language/lang-English.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /path/public_html/mainfile.php on line 185

The file is there .. in both uper and lower case.

Line 185 is ... include_once("modules/$module/language/lang-".$language.".php");

Now if I replace the $module with Genealogy then it works fine. Does this mean the script is not calling out the $module value correctly? If so how would I change that? Smile
Only registered users can see links on this board! Get registered or login!
This is wrong: 'modules/public_html/language/lang-English.php'

It should be: 'public_html/language/lang-english.php'
or
'public_html/modules/module_name/language/lang-english.php'
 
View user's profile Send private message
HauntedWebby
PostPosted: Thu Nov 11, 2004 5:03 pm Reply with quote

But that's the weird part I don't see where it's pulling that info from Smile

Code:
<? include($cms[tngpath] . "version.php"); ?>

<? echo "$cms[credits]\n"; ?>
<? include($cms[tngpath] . "meta.html"); ?>

<h1>Home Page</h1>

<h2>Search for Names</h2>
<!-- Do not change the form action or field names! -->
<? echo "<form action=\"$cms[url]=" . "search\" method=\"POST\">\n"; ?>
<table border="0" cellspacing="5" cellpadding="0">
   <tr><td><span class="normal">Last Name: </span><br><input type="text" name="mylastname" size="14"></td></tr>
   <tr><td><span class="normal">First Name: </span><br><input type="text" name="myfirstname" size="14"></td></tr>
   <tr><td><input type="hidden" name="mybool" value="AND"><input type="submit" name="search" value="Search"> <input type="reset" value="Start Over"></td></tr>
</table>
</form>

<h2>Other Features</h2>

<ul>
<?
        if( $cms[cloaklogin] == "both" || !$cms[cloaklogin] ) {
      if( !$currentuser )
         echo "<li><a href=\"$cms[url]=" . "login\">Log In</a></li>\n";
      if( $currentuser )
         echo "<li><a href=\"$cms[url]=" . "logout\">Logout: " . $currentuser . "</a></li>\n";
   }
?>
   <? echo "<li><a href=\"$cms[url]=" . "newacctform\">Register for a User Account</a> (This is only for those that wish to see living person information. Not granted to all applicants)</li>\n"; ?>
   <? echo "<li><a href=\"$cms[url]=" . "searchform\">Advanced Search</a></li>\n"; ?>
   <? echo "<li><a href=\"$cms[url]=" . "surnames\">Surnames</a></li>\n"; ?>
   <? echo "<li><a href=\"$cms[url]=" . "browsetrees\">Statistics</a></li>\n"; ?>
   <? echo "<li><a href=\"$cms[url]=" . "browsephotos\">Photos</a></li>\n"; ?>
   <? echo "<li><a href=\"$cms[url]=" . "browsedocs\">Histories & Documents</a></li>\n"; ?>
   <!-- In the following line, you must add the personID and tree ID of the person after the respective equal signs (=).
      For example: "extrastree&personID=I123&tree=smith" -->
   <? echo "<li><a href=\"$cms[url]=" . "extrastree&personID=&tree=\">Photos & Histories for Ancestors of [Person]</a></li>\n"; ?>
   <? echo "<li><a href=\"$cms[url]=" . "cemeteries\">Cemeteries</a></li>\n"; ?>
   <? echo "<li><a href=\"$cms[url]=" . "browseheadstones\">Headstones</a></li>\n"; ?>
   <? echo "<li><a href=\"$cms[url]=" . "reports\">Reports</a></li>\n"; ?>
   <? echo "<li><a href=\"$cms[url]=" . "browsesources\">Sources</a></li>\n"; ?>
   <? echo "<li><a href=\"$cms[url]=" . "whatsnew\">What's New</a></li>\n"; ?>
   <? echo "<li><a href=\"$cms[url]=" . "showlog\">Access Log</a></li>\n"; ?>
   <? echo "<li><a href=\"$cms[url]=" . "changelanguage\">Change Language</a></li>\n"; ?>
   <? echo "<li><a href=\"$cms[tngpath]" . "admin/index.php\">Administration</a></li>\n"; ?>
</ul>


This is the whole page code. I don't even see where it's looking for the mainfile.php
 
HauntedWebby
PostPosted: Thu Nov 11, 2004 5:06 pm Reply with quote

Maybe it's somewhere in the main script. This script wasn't written for phpNuke ... just kinda made it work in it Very Happy I'll dig deeper in the main script instead of the nuke parts.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes

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 ©