Raised This Month: $110 Target: $400
 27% 

New Error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RavensBro
Veteran Member
Join Date: Sep 2009
Location: Wisonsin USA
Old 09-25-2021 , 12:06   New Error
Reply With Quote #1

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

Last edited by RavensBro; 09-25-2021 at 12:29. Reason: fix it
RavensBro is offline
Svv4T
Member
Join Date: Jul 2011
Old 10-07-2021 , 03:01   Re: New Error
Reply With Quote #2

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 is offline
Svv4T
Member
Join Date: Jul 2011
Old 10-07-2021 , 03:16   Re: New Error
Reply With Quote #3

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
Svv4T is offline
Dr_Knuckles
AlliedModders Donor
Join Date: Mar 2005
Location: SW Florida
Old 10-08-2021 , 18:24   Re: New Error
Reply With Quote #4

How exactly did you fix this error? I am not sure which part of line 705 to comment.
__________________
Dr_Knuckles is offline
Svv4T
Member
Join Date: Jul 2011
Old 10-08-2021 , 21:01   Re: New Error
Reply With Quote #5

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
Svv4T is offline
Dr_Knuckles
AlliedModders Donor
Join Date: Mar 2005
Location: SW Florida
Old 10-08-2021 , 21:59   Re: New Error
Reply With Quote #6

Oh duh I missed that last one, thanks I dont know if its working right now but the errors are gone!
__________________
Dr_Knuckles is offline
Svv4T
Member
Join Date: Jul 2011
Old 10-08-2021 , 22:08   Re: New Error
Reply With Quote #7

Yea, I haven't noticed any errors, everything seems to be working, but I'm not 100% sure.
Svv4T is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:30.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode