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
meanskin
New Member
New Member



Joined: Mar 23, 2004
Posts: 12
Location: Fort Myers, Fl

PostPosted: Fri May 29, 2009 9:08 am Reply with quote

On my site, for reasons that probably only Murphy would understand I am getting the following two errors in IE.

"Unterminated String Constant"
Line 34
Char 93

No matter what page you go to, it shows up. Here is that general area in the index.php

Code:
$modpath = '';

define('MODULE_FILE', true);
$_SERVER['PHP_SELF'] = "modules.php";
$row = $db->sql_fetchrow($db->sql_query("SELECT main_module from ".$prefix."_main"));
$name = $row['main_module'];
define('HOME_FILE', true);



Line 34 is the second to last line.


There is also a bunch of errors referencing line 53 char 3 in the index.php which is this: OBJECT REQUIRED
Code:
}

    $numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_referer"));
    if($numrows>=$httprefmax) {
        $result2 = $db->sql_query("DELETE FROM ".$prefix."_referer");
    }


That one starts on line 53 with the }

So I presume something is referencing to these areas. Like Shout Box or Scrolling Forums or something?

The only problem though with that is that when I disable those two things, the error still shows up.

Is there any easy way to fix this problem without having to edit those lines in every file on my server?

_________________
~Art is a lie that makes us realize the truth~ 
View user's profile Send private message Yahoo Messenger
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Fri May 29, 2009 1:02 pm Reply with quote

It might help if we knew what software you are using as that code doesn't look familiar at all.
For the first one, try replacing it with this
Code:


$modpath = '';
define('MODULE_FILE', 'true');
$_SERVER['PHP_SELF'] = 'modules.php';
$row = $db->sql_fetchrow($db->sql_query("SELECT main_module from ".$prefix."_main"));
$name = $row['main_module'];
define('HOME_FILE', 'true');


As for the second one, you shouldn't be using the referer module as it has known security issues up to and including phpNuke 8.0.
 
View user's profile Send private message Send e-mail
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Fri May 29, 2009 1:57 pm Reply with quote

The error you refer to from IE does not relate to index.php. It is referring to the generating html. You need to view the source of the page to try and figure it out. It sounds like it may be theme related. Try switching themes and see if the error goes away. When switching themes the line number of the error may change.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sat May 30, 2009 12:33 pm Reply with quote

I agree with Palbin, but it would be good to know for sure. Is this showing up as a javascript error? i suspect that it is.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
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 ©