NukeXchange Network

          

Nuke Sites Link Directory
Nuke Fixes · NukeForums · NukeZone Hosting · NukeUnited · Nuke Sites · Nuke Skins · NukeLance
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· CMS Focus
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· NukeLance
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·right blocks appear only to admins
·Special characters
·Header not working....
·No banner - Sunset-Theme (but $banner exists)
·Banners not showing on Sunset
·Installation Issues
·Looking for content warning/age verification system.
·Babebox Module Block Image Script
·Upload-Download
·Download Module error

read more...
Top10 Links
· 1: Nuke Forums
· 2: PHPNukeFiles
· 3: NukeSkins
· 4: Nuke Templates
· 5: EcomJunk
· 6: MDesign
· 7: Windows Installation: PHP
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: majsta
Today: 0
Yesterday: 5
Overall: 15015

Visitation:
Guests: 605
Members: 0
Total: 605


You are Anonymous user. You can register for free by clicking here
Sponsor Links
php-Nuke Themes and Templates
php-Nuke Themes and Templates

NukeResources :: View topic - Error in Nuke7.9+Patched3.1
NukeResources Forum Index

NukeResources Forum Index -> Bug Reports -> Error in Nuke7.9+Patched3.1 Goto page 1, 2  Next
Post new topic  Reply to topic    View previous topic :: View next topic 
Error in Nuke7.9+Patched3.1
PostPosted: Fri Sep 23, 2005 2:23 am Reply with quote
Gideao
Resource Seeker
Resource Seeker
 
Joined: Apr 02, 2004
Posts: 20
Location: Maceió/AL - Brasil




Hello to all!

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.

Thanks!

Gideão.
View user's profile Send private message Visit poster's website
PostPosted: Fri Sep 23, 2005 10:39 am Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




Mmm is there a default language selected in your config table?

_________________
- Star Wars Rebellion Network - Evaders Squadron Coding -

Need help? Nuke Patched Core, Coding Services, Webmaster Services
View user's profile Send private message Visit poster's website AIM Address
PostPosted: Fri Sep 23, 2005 12:20 pm Reply with quote
Gideao
Resource Seeker
Resource Seeker
 
Joined: Apr 02, 2004
Posts: 20
Location: Maceió/AL - Brasil




Yes, it is! And it is configured correctly!

The problem is of the same phpnuke.
I use the phpnuke since the version 6. 9 and I perfectly know how to install him.


I also found another error:
When I post a news and I click in "Read more..." the page doesn't open.

Help me please!

Thanks!

Gideão.
View user's profile Send private message Visit poster's website
PostPosted: Fri Sep 23, 2005 4:23 pm Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




I will check it out

_________________
- Star Wars Rebellion Network - Evaders Squadron Coding -

Need help? Nuke Patched Core, Coding Services, Webmaster Services
View user's profile Send private message Visit poster's website AIM Address
language selection
PostPosted: Sat Sep 24, 2005 3:29 pm Reply with quote
arnoldkrg
Resource Newbie
Resource Newbie
 
Joined: Sep 18, 2004
Posts: 21




In mainfile.php $language is being called before it has been defined.

lines 259-278:
Code:
if (!defined('FORUM_ADMIN')) {
   if (isset($newlang) AND !stripos_clone($newlang,".")) {
      if (file_exists("language/lang-".$newlang.".php")) {
         setcookie("lang",$newlang,time()+31536000);
         include_once("language/lang-".$newlang.".php");
         $currentlang = $newlang;
      } else {
         setcookie("lang",$language,time()+31536000);
         include_once("language/lang-".$language.".php");
         $currentlang = $language;
      }
   } elseif (isset($lang)) {
      include_once("language/lang-".$lang.".php");
      $currentlang = $lang;
   } else {
      setcookie("lang",$language,time()+31536000);
      include_once("language/lang-".$language.".php");
      $currentlang = $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:
Code:
$language = filter($row['language'], "nohtml");


Cutting the following code from lines 295 - 345
Code:
$result = $db->sql_query("SELECT * FROM ".$prefix."_config");
$row = $db->sql_fetchrow($result);
$sitename = filter($row['sitename'], "nohtml");
$nukeurl = filter($row['nukeurl'], "nohtml");
$site_logo = filter($row['site_logo'], "nohtml");
$slogan = filter($row['slogan'], "nohtml");
$startdate = filter($row['startdate'], "nohtml");
$adminmail = filter($row['adminmail'], "nohtml");
$anonpost = intval($row['anonpost']);
$Default_Theme = filter($row['Default_Theme'], "nohtml");
$foot1 = filter($row['foot1']);
$foot2 = filter($row['foot2']);
$foot3 = filteR($row['foot3']);
$commentlimit = intval($row['commentlimit']);
$anonymous = filter($row['anonymous'], "nohtml");
$minpass = intval($row['minpass']);
$pollcomm = intval($row['pollcomm']);
$articlecomm = intval($row['articlecomm']);
$broadcast_msg = intval($row['broadcast_msg']);
$my_headlines = intval($row['my_headlines']);
$top = intval($row['top']);
$storyhome = intval($row['storyhome']);
$user_news = intval($row['user_news']);
$oldnum = intval($row['oldnum']);
$ultramode = intval($row['ultramode']);
$banners = intval($row['banners']);
$backend_title = filter($row['backend_title'], "nohtml");
$backend_language = filter($row['backend_language'], "nohtml");
$language = filter($row['language'], "nohtml");
$locale = filter($row['locale'], "nohtml");
$multilingual = intval($row['multilingual']);
$useflags = intval($row['useflags']);
$notify = intval($row['notify']);
$notify_email = filter($row['notify_email'], "nohtml");
$notify_subject = filter($row['notify_subject'], "nohtml");
$notify_message = filter($row['notify_message'], "nohtml");
$notify_from = filter($row['notify_from'], "nohtml");
$moderate = intval($row['moderate']);
$admingraphic = intval($row['admingraphic']);
$httpref = intval($row['httpref']);
$httprefmax = intval($row['httprefmax']);
$CensorMode = intval($row['CensorMode']);
$CensorReplace = filter($row['CensorReplace'], "nohtml");
$copyright = filter($row['copyright']);
$Version_Num = filter($row['Version_Num'], "nohtml");
$domain = eregi_replace("http://", "", $nukeurl);
$tipath = "images/topics/";
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$start_time = $mtime;


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.
View user's profile Send private message
PostPosted: Sat Sep 24, 2005 8:24 pm Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




Thanxs for the fix!

_________________
- Star Wars Rebellion Network - Evaders Squadron Coding -

Need help? Nuke Patched Core, Coding Services, Webmaster Services
View user's profile Send private message Visit poster's website AIM Address
PostPosted: Sun Sep 25, 2005 7:54 am Reply with quote
Gideao
Resource Seeker
Resource Seeker
 
Joined: Apr 02, 2004
Posts: 20
Location: Maceió/AL - Brasil




Thank you, Arnoldkrg!

Now still lack the subject on the news when we clicked in "reads more..."

The page doesn't open, it is only loading in the status bar and after this gives a error.

Wink Thanks for the fix!!
View user's profile Send private message Visit poster's website
mainfile.php
PostPosted: Sun Sep 25, 2005 1:57 pm Reply with quote
arnoldkrg
Resource Newbie
Resource Newbie
 
Joined: Sep 18, 2004
Posts: 21




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
View user's profile Send private message
Topic image
PostPosted: Sun Sep 25, 2005 4:00 pm Reply with quote
arnoldkrg
Resource Newbie
Resource Newbie
 
Joined: Sep 18, 2004
Posts: 21




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.
View user's profile Send private message
PostPosted: Mon Oct 03, 2005 7:10 am Reply with quote
BomberMagazine
Resource Seeker
Resource Seeker
 
Joined: Oct 03, 2005
Posts: 2




thanks, this worked like a charm
View user's profile Send private message
PostPosted: Mon Oct 03, 2005 2:31 pm Reply with quote
chatserv
Site Admin
Site Admin
 
Joined: Apr 21, 2002
Posts: 1732
Location: Puerto Rico




But that takes the function back to two queries, shouldn't that be:
Code:
function getTopics($s_sid) {
   global $topicid, $topicname, $topicimage, $topictext, $prefix, $db;
   $sid = intval($s_sid);
   $result = $db->sql_query("SELECT t.topicid, 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);
   $topicid = filter($row['topicid'], "nohtml");
   $topicname = filter($row['topicname'], "nohtml");
   $topicimage = filter($row['topicimage'], "nohtml");
   $topictext = filter($row['topictext'], "nohtml");
}

_________________
NukeResources | ScriptHeaven
View user's profile Send private message Visit poster's website
PostPosted: Tue Oct 04, 2005 7:58 am Reply with quote
Nuker
Resource Seeker
Resource Seeker
 
Joined: Oct 04, 2005
Posts: 4