Scripturl

Started by TheListener, August 16, 2010, 01:12:00 PM

Previous topic - Next topic

TheListener


Apply Filter: Only show the error messages of this URL
http://xxxxxxxxxxxxxxx/index.php?action=printpage;topic=233.0
Apply Filter: Only show the errors with the same message
8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: xxxxxxxxxxxxxxxxxxx/Sources/Security.php
Line: 217

I have recently had many of these errors appearing in the error log.

// Apparently we're not in a position to handle this now. Let's go to a safer location for now.
215:    
elseif (empty($context['template_layers']))
216:    
{
==>217:    
$_SESSION['login_url'] = $scripturl . '?' . $_SERVER['QUERY_STRING'];

218:    
redirectexit('action=login');
219:    
}
220:    
else
221:    
{
222:    
loadTemplate('Login');
223:    
$context['sub_template'] = 'kick_guest';
224:    
$context['robot_no_index'] = true;
225:    
}
226:    
227:    
// Use the kick_guest sub template...

Is only when guests (spiders) are in the forum.

mirahalo

on your file  find this:


// Require a user who is logged in. (not a guest.)
function is_not_guest($message = '')
{
global $user_info, $txt, $context;



and replace with this: 


// Require a user who is logged in. (not a guest.)
function is_not_guest($message = '')
{
global $user_info, $txt, $context, $scripturl;



and see if the error disappear ;)

TheListener

Thanks stranger.

;)

Will reopen topic if it happens again.

( If I remember where I put the topic).

mirahalo

lol, well I will marked as solved, fell free to unmarked it ;)

TheListener

See I even forgot where the mark topic icon was left.

Advertisement: