When we accessed for the first see the phpnuke appears this error. Because he doesn't recognize the language that is configured in DB.
And all of the files langs-xxxxxx. php are in their owed places !!!
Error:
Code:
Warning: main(language/lang-.php) [function.main]: failed to open stream: No such file or directory in c:\AppServ\www\nuke79\mainfile.php on line 269
Warning: main() [function.include]: Failed opening 'language/lang-.php' for inclusion (include_path='.;C:\php5\pear') in c:\AppServ\www\nuke\mainfile.php on line 269
Only after choosing the language manually the error disappears.
For you to see this error, first it excludes the cookies of the navigator. For him not to be with the information of the chosen language.
But the query on nuke_config, which used to be made before the above block, is not now made until line 295. Consequently $language is not now defined until line 323:
and pasting it back before the first block of code quoted fixes this problem. However I dont know whether there was some security reason for moving it in the first place.
I traced the News problem to NukeScripts version of PHP-Nuke7.9.0.3.1. It seems that they have not included the correct version of mainfile.php with their prepatched version of PHP-Nuke. Get the genuine 7.9-3.1 patches from this site and replace your existing mainfile.php with one from the patches. That fixes the problem. It is not a problem with the patches, but with the Nukescript (or possibly some other) prepatched version of PHP-Nuke7.9
One further problem if you use a patched 3.1 mainfile.php then you may find that the topic image gives the dreaded red x. You may have to find in mainfile.php:
Code:
function getTopics($s_sid) {
global $topicname, $topicimage, $topictext, $prefix, $db;
$sid = intval($s_sid);
$result = $db->sql_query("SELECT t.topicname, t.topicimage, t.topictext FROM ".$prefix."_stories s LEFT JOIN ".$prefix."_topics t ON t.topicid = s.topic WHERE s.sid = '".$sid."'");
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
$topicname = filter($topicname, "nohtml");
$topicimage = filter($topicimage, "nohtml");
$topictext = filter($topictext, "nohtml");
}
and change to:
Code:
function getTopics($s_sid) {
global $topicname, $topicimage, $topictext, $prefix, $db;
$sid = intval($s_sid);
$query = $db->sql_query("SELECT topic FROM ".$prefix."_stories WHERE sid='$sid'");
list($rtopic) = $db->sql_fetchrow($query);
$result2 = $db->sql_query("SELECT topicid, topicname, topicimage, topictext FROM ".$prefix."_topics WHERE topicid='$rtopic'");
list($topicid, $topicname, $topicimage, $topictext) = $db->sql_fetchrow($result2);
$topicid = intval($topicid);
$topicname = filter($topicname, "nohtml");
$topicimage = filter($topicimage, "nohtml");
$topictext = filter($topictext, "nohtml");
because the existing getTopics() function doesnt seem to return a value for $topicimage etc.
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
All times are GMT - 4 Hours
Page 1 of 2Goto page 1, 2Next