Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: blunted on October 17, 2016, 07:02:12 PM

Title: Hack Attempt error
Post by: blunted on October 17, 2016, 07:02:12 PM
I had a mod made for pms and I CONSTANTLY get this error

Where can I look to fix?
Title: Re: Hack Attempt error
Post by: vbgamer45 on October 17, 2016, 07:25:15 PM
Sounds like an issue with SQL make sur eno ; no sub select in queries.
If you need to. You need to disable query check.
Title: Re: Hack Attempt error
Post by: blunted on October 17, 2016, 10:03:31 PM
can you explain a lil better can i do a search for that?
How do i do the second thing and is their a risk?
Title: Re: Hack Attempt error
Post by: vbgamer45 on October 17, 2016, 10:17:35 PM
Call this before query
global $modSettings;
$modSettings['disableQueryCheck'] = true;

Then set to false after query
Title: Re: Hack Attempt error
Post by: Arantor on October 18, 2016, 02:36:43 AM
Or, you know, fixing the code rather than turning off the security checks.