AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SourceBans / SourceBans++ (https://forums.alliedmods.net/forumdisplay.php?f=152)
-   -   New Error (https://forums.alliedmods.net/showthread.php?t=334453)

RavensBro 09-25-2021 11:06

New Error
 
Error: the XML response that was returned from the server is invalid. Received:
Deprecated: Function get_magic_quotes_gpc() is deprecated in /usr/www/rbc/public/sourcebans/includes/xajax.inc.php on line 705

Deprecated: Function get_magic_quotes_gpc() is deprecated in /usr/www/rbc/public/sourcebans/includes/xajax.inc.php on line 705

ok nvm i fix it

Svv4T 10-07-2021 02:01

Re: New Error
 
Hey, I have the same issue since my webhost upgraded to PHP 7.4, and now I have this error.

How did you fix it?
Thanks

Svv4T 10-07-2021 02:16

Re: New Error
 
Ah nvm fixed it too, I think.

Basically, commented out this function at line 705.
The errors are gone, and I can use SourceBans again. Hopefully it doesn't break anything else :p

Dr_Knuckles 10-08-2021 17:24

Re: New Error
 
How exactly did you fix this error? I am not sure which part of line 705 to comment.

Svv4T 10-08-2021 20:01

Re: New Error
 
that's what I did at ln 705
added the ///
Again I dont know if it breaks anything else, but it works for me so far.


PHP Code:

            for ($i 0$i sizeof($aArgs); $i++)
            {
                
// If magic quotes is on, then we need to strip the slashes from the args
                ///if (get_magic_quotes_gpc() == 1 && is_string($aArgs[$i])) {
                ///
                ///    $aArgs[$i] = stripslashes($aArgs[$i]);
                ///}
                
if (stristr($aArgs[$i],"<xjxobj>") != false


Dr_Knuckles 10-08-2021 20:59

Re: New Error
 
Oh duh I missed that last one, thanks I dont know if its working right now but the errors are gone!

Svv4T 10-08-2021 21:08

Re: New Error
 
Yea, I haven't noticed any errors, everything seems to be working, but I'm not 100% sure.


All times are GMT -4. The time now is 17:37.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.