SimplePortal

Support => English Support => Topic started by: gheko on November 10, 2010, 05:33:16 AM

Title: Errors because of simple portal on RC4
Post by: gheko on November 10, 2010, 05:33:16 AM
Hello I have this error on mi smf forum:
Guest
Apply Filter: Only show the error messages of this IP address 77.92.233.198
     Reverse chronological order of list Today at 07:57:12
Apply Filter: Only show the error messages of this session bd66c25d9f83f294c0fb0bf0d696fc9e
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://www.club-206.ro/index.php?
Apply Filter: Only show the errors with the same message
8: Undefined index: REQUEST_URL
Apply Filter: Only show the errors from this file
File: /usr/home/club206/domains/club-206.ro/public_html/Sources/Subs.php
Line: 2920
   Apply Filter: Only show the error messages of this member Guest
Apply Filter: Only show the error messages of this IP address 77.92.233.198
     Reverse chronological order of list Today at 07:57:12
Apply Filter: Only show the error messages of this session bd66c25d9f83f294c0fb0bf0d696fc9e
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://www.club-206.ro/index.php?
Apply Filter: Only show the errors with the same message
8: Undefined index: REQUEST_URL
Apply Filter: Only show the errors from this file
File: /usr/home/club206/domains/club-206.ro/public_html/Sources/Subs.php
Line: 2919
Gheko
Apply Filter: Only show the error messages of this IP address 89.122.18.223
     Reverse chronological order of list Today at 10:44:09
Apply Filter: Only show the error messages of this session 0d9f3ba8b625d46ba70d7a39525d0568
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://www.club-206.ro/index.php?
Apply Filter: Only show the errors with the same message
8: Undefined index: REQUEST_URL
Apply Filter: Only show the errors from this file
File: /usr/home/club206/domains/club-206.ro/public_html/Sources/Subs.php
Line: 2920

And when I deactivated SP the errors disaperead.
Title: Re: Errors because of simple portal on RC4
Post by: gheko on November 13, 2010, 04:38:44 AM
No answer? I still have that errors.  :(
Title: Re: Errors because of simple portal on RC4
Post by: AngelinaBelle on November 16, 2010, 05:07:57 PM
Please attach Subs.php.
Do you have other mods installed?
 
Title: Re: Errors because of simple portal on RC4
Post by: gheko on November 17, 2010, 06:43:30 AM
Yes, I have aeva, ad management and global headers... but I have the errors only when SP is activated.

P.S. I atached the subs.php. Thank you!
Title: Re: Errors because of simple portal on RC4
Post by: AngelinaBelle on November 17, 2010, 09:20:03 AM
The problem seems to be that $_SERVER['REQUEST_URL'] is not supported, and SimplePortal is expecting it.
 
SMF is supposed to make sure this value is set in QueryString.php, near line 320
Code: [Select]
// Make sure we know the URL of the current request.
 if (empty($_SERVER['REQUEST_URI']))
    $_SERVER['REQUEST_URL'] = $scripturl . (!empty($_SERVER['QUERY_STRING']) ? '?' . $_SERVER['QUERY_STRING'] : '');
(etc.)
Presumably, if 'REQUEST_URI' is already set, 'REQUEST_URL' should also be set.  But who knows?  You can check this on your server.
Create a file called check_uri.php
Code: (check_uri.php) [Select]
<?php
$list 
= array ('REQUEST_URI''REQUEST_URL');
foreach ( 
$list as $i ) echo $i ' is ', (  empty($_SERVER[$i] ) ? 'empty' $_SERVER[$i] ) , "<br />\n";
?>

Then ftp it to your SMF directory and run it.
 
Title: Re: Errors because of simple portal on RC4
Post by: gheko on November 17, 2010, 09:29:18 AM
REQUEST_URI is /check_uri.php
REQUEST_URL is empty
Title: Re: Errors because of simple portal on RC4
Post by: AngelinaBelle on November 17, 2010, 09:42:18 AM
I do not think this is an error in SimplePortal.  But the error is causing a problem *FOR* SimplePortal.
 
That section of QueryString.php is supposed to set $_SERVER['REQUEST_URL'].  But it is failing.  Please attach QueryString.php.
Title: Re: Errors because of simple portal on RC4
Post by: gheko on November 17, 2010, 09:56:02 AM
The problem seems to be that $_SERVER['REQUEST_URL'] is not supported, and SimplePortal is expecting it.
 
SMF is supposed to make sure this value is set in QueryString.php, near line 320
Code: [Select]
// Make sure we know the URL of the current request.
 if (empty($_SERVER['REQUEST_URI']))
    $_SERVER['REQUEST_URL'] = $scripturl . (!empty($_SERVER['QUERY_STRING']) ? '?' . $_SERVER['QUERY_STRING'] : '');
(etc.)

"Please attach QueryString.php."       This code  in subs.php?
Title: Re: Errors because of simple portal on RC4
Post by: AngelinaBelle on November 17, 2010, 10:52:47 AM
The file QueryString.php
Title: Re: Errors because of simple portal on RC4
Post by: gheko on November 18, 2010, 01:32:57 AM
Thank`s for your help, I talk whyt smf romania admin an he told me is a problem from the server.
Title: Re: Errors because of simple portal on RC4
Post by: AngelinaBelle on November 18, 2010, 08:29:06 AM
I'm happy to see the checkmark -- I'm glad you were able to get the problem fixed!
Title: Re: Errors because of simple portal on RC4
Post by: gheko on November 18, 2010, 09:28:27 AM
No errors since today from 10:00. Problem solved. Thank you for your help!
SimplePortal 2.3.8 © 2008-2024, SimplePortal