SimplePortal
Support => English Support => Topic started 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.
-
No answer? I still have that errors. :(
-
Please attach Subs.php.
Do you have other mods installed?
-
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!
-
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
// 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
<?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.
-
REQUEST_URI is /check_uri.php
REQUEST_URL is empty
-
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.
-
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
// 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?
-
The file QueryString.php
-
Thank`s for your help, I talk whyt smf romania admin an he told me is a problem from the server.
-
I'm happy to see the checkmark -- I'm glad you were able to get the problem fixed!
-
No errors since today from 10:00. Problem solved. Thank you for your help!