I'll try the honeypot. Why would it be temporary and if so, what do I do for the long term?
I added the honeypot to the forms. Once I figured out what you were doing, I thought this was very clever. So a bot can't auto-fill the field cause it's hidden, so it can't spam the forms on the site, right?
I have 4 forms and changed them all. We'll see what happens!
Thanks!
Site still breaks every 30 days or so
Re: Site still breaks every 30 days or so
https://www.cmscanbesimple.org/blog/hon ... ormbuilder
So a spambot *will* fill in this field, a human visitor will not because it is not visible.The idea is that automated web bots only look for the form fields and can't resist to add some information. As the specific field is hidden from real, human visitors you know it should never contain anything.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Site still breaks every 30 days or so
Thanks Rolf, for the clever honeypot solution.
I have used captcha for many years without any problems, but recently I`ve been bombarded with spam from bots that somehow overrides the captcha security code.
After adding a new hidden field like you describe in your article, the spam has completely disappeared. So now I use both the hidden field and the captcha.
Bought you a cup of coffee. Enjoy!
Tom
I have used captcha for many years without any problems, but recently I`ve been bombarded with spam from bots that somehow overrides the captcha security code.
After adding a new hidden field like you describe in your article, the spam has completely disappeared. So now I use both the hidden field and the captcha.
Bought you a cup of coffee. Enjoy!
Tom
Re: Site still breaks every 30 days or so
I disabled the captcha on my 4 forms. I don't want to take a chance of the site breaking again until we are able to fix it.
So far now, the site has not broken since the captcha was disabled.
So far now, the site has not broken since the captcha was disabled.
Re: Site still breaks every 30 days or so
Thank you, Tom!Trenia wrote:Bought you a cup of coffee. Enjoy!
@Webguru You can also try to disable the core automatic Clear Cache function and see what happens.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Site still breaks every 30 days or so
Oh, interesting... good to know, thanks for the report.JamesT wrote:The Captcha error disappeared completely after the site cache was cleared and the "broken site" issue was fixed, so it appears to have been a symptom of the "broken site" issue rather than anything else.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Re: Site still breaks every 30 days or so
Rolf wrote:In general this is a harmless warning.[02-Jan-2017 08:46:37 America/Los_Angeles] PHP Notice: Undefined index: captcha_error in /var/www/vhtdocs/userweb64006/html/tmp/templates_c/FormBuilder^fc009201d2659a3a4e1fa925d0b0bde50ccb31e4.module_db_tpl.FormBuilder;fb_7.php on line 113
But what *might* happen here... You have the form in the footer of the website and not only on a contact page. So each page view will generate this warning! Having a rather busy website this *might* have an effect on the server process...
It is simple to fix, check your form template for:and change it in something likeCode: Select all
{if $captcha_error}
If it is not the cause the error log is cleaned of these warnings and it is simpler to see other errors/warnings. Worth a try!Code: Select all
{if isset($captcha_error) && $captcha_error}
I made these changes on all the forms and will update if anything happens.
I am also going to uninstall and reinstall the captcha. I am using CMSMS on many sites on the same hosting company and this is the only site I'm having the crashes. I have to agree that it might be because I have the form in the footer and thus has 2 forms on all the pages with a main form.
And yes, clearing the tmp files through the Cpanel does clear the problem and gets the site back up.
Re: Site still breaks every 30 days or so
There's a task inside CMSMS he can do it for you - everytime .webguru wrote:clearing the tmp files through the Cpanel does clear the problem and gets the site back up.
Please look at website admin in backend ... there you can define a /tmp lifetime
Re: Site still breaks every 30 days or so
Is that here?
Settings - Global Settings > Server Cache Settings:
Remove cache files that are older than the specified number of days:
I have it set at 1.
Settings - Global Settings > Server Cache Settings:
Remove cache files that are older than the specified number of days:
I have it set at 1.
Re: Site still breaks every 30 days or so
Just letting everyone know, the site hasn't crashed since I removed the second form (and it's accompanying captcha) from the footer area.
I believe Rolf's diagnosis was correct.
Thank you for hanging in there with me!
I believe Rolf's diagnosis was correct.
Thank you for hanging in there with me!