Support

Admin Tools

#39120 Site Getting 500 Error... plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
4.3.2
PHP version
8.0.29
Admin Tools version
Admin Tools Pro

Latest post by nicholas on Monday, 26 June 2023 01:08 CDT

hotrod007

Site is sporadically Crashing.. I'm seeing this in the error logs..  I many many same sites with all the same programs  and they aren't having an issue..  I tried the Behind Load Balancer  to yes  and that did help..  site is throwing error like every 10 minutes..

Rod

 

[19-Jun-2023 00:25:10 UTC] PHP Warning:  foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725
[19-Jun-2023 03:39:40 UTC] PHP Warning:  foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725
[19-Jun-2023 03:39:42 UTC] PHP Warning:  foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725
[19-Jun-2023 03:39:47 UTC] PHP Warning:  foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725
[19-Jun-2023 03:39:48 UTC] PHP Warning:  foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725
[19-Jun-2023 03:39:53 UTC] PHP Warning:  foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725
[19-Jun-2023 03:39:55 UTC] PHP Warning:  foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725
[19-Jun-2023 08:35:21 UTC] PHP Warning:  foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725
[19-Jun-2023 08:35:22 UTC] PHP Warning:  foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725
[19-Jun-2023 10:13:11 UTC] PHP Warning:  foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725
[19-Jun-2023 10:13:12 UTC] PHP Warning:  foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725
[19-Jun-2023 12:22:37 UTC] PHP Warning:  foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725
[19-Jun-2023 12:22:38 UTC] PHP Warning:  foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725
[19-Jun-2023 12:33:59 UTC] PHP Warning:  foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725

nicholas
Akeeba Staff
Manager

Go to your site's administrator area, Components, Admin Tools for Joomla, Web Application Firewall, Configure WAF, Exceptions.

Check if the Allowed Domains has any empty records. If it does, remove them.

Regardless of the above, click the Save button in the toolbar. This will update the database information which appears to be corrupt in your case.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

hotrod007

This is all I seen?    and I hit save...   we can confirm admintools is Making this happen..   And nothing is in the error log since I took that screen shot...  

 

it's still randomly throwing a %00 for me...

 

 

hotrod007

This is in the admin error log this morning..

[20-Jun-2023 11:22:38 UTC] PHP Warning:  Undefined array key "iplookupscheme" in /home1/whitemarlininvit/public_html/administrator/components/com_admintools/src/Model/ConfigurewafModel.php on line 621


And full of these from yeserday.

[18-Apr-2023 21:33:08 UTC] PHP Warning: foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725 [18-Apr-2023 21:33:08 UTC] PHP Warning: foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725 [18-Apr-2023 21:33:09 UTC] PHP Warning: foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725 [18-Apr-2023 21:33:09 UTC] PHP Warning: foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725 [18-Apr-2023 21:33:10 UTC] PHP Warning: foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725 [18-Apr-2023 21:33:10 UTC] PHP Warning: foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725 [18-Apr-2023 21:33:10 UTC] PHP Warning: foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725 [18-Apr-2023 21:33:10 UTC] PHP Warning: foreach() argument must be of type array|object, string given in /home1/whitemarlininvit/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 725

nicholas
Akeeba Staff
Manager

So, since you are no longer seeing any errors today, after following the instructions I gave you, it's fixed.

If you did not follow my instructions, follow them.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

hotrod007

I do believe I did what you asked..  I went to the backend of the site and to that location.. I posted a screen shot of what I seen and hit save....  Still crashing..

This is the error I did find in adim section.

 

[20-Jun-2023 11:22:38 UTC] PHP Warning:  Undefined array key "iplookupscheme" in /home1/whitemarlininvit/public_html/administrator/components/com_admintools/src/Model/ConfigurewafModel.php on line 621


Do you think I should be moving onto something else that is causing this issue to the site? I don't know if these admin tools errors are causing the site to crash..

Can I uninstall Admin tools and see if the issue goes away?

nicholas
Akeeba Staff
Manager

Here's the data points you have given me so far.

  1. There was an error handling blocked requests. This came from corrupt data in your database, namely the WAF configuration in the #__admintools_storage table. What I told you to do would re-populate this data so that the error no longer occurs.
  2. You have given me a Warning (NOT error!) when saving the WAF configuration. This happens because you have not specified an IP lookup service. However, the configuration will save. If this is not the case, that's not something that has been communicated to me in a way that I can possibly understand (there are a few half-sentences there I can read in many different ways, in which case I try to read them as the most likely outcome, not one which does not make sense given the other data I have at hand).
  3. You said there are no other errors on your site, at all.
  4. You are also saying "Still crashing".

Statements 3 & 4 are mutually exclusive as they are stating that there is an error occurring, but no error is occurring — that's an impossibility. Please specify which one is true and/or whether "crash" does not refer to an error being produced in which case it's the wrong word to use in this context, causing a miscommunication which hinders further attempts to help you.

Moreover, if you are importing Admin Tools settings from a Joomla 3 site —or, generally speaking, any site running Admin Tools version 6 or earlier— please be advised that this will result in the root cause of problems 1 and 2 to recur every time you perform this import. The internal structure of the data has changed between Admin Tools 6 and 7 to accommodate the completely different way Joomla core MVC handles configuration forms than our own framework which was used in Admin Tools versions 2, 3, 4, 5, and 6.

If you are at a point where you have no idea what is going on with your Admin Tools configuration then yes, starting over is the recommended approach. Completely uninstall the Admin Tools package extension (not just the component one), then reinstall Admin Tools Professional. Remember what I said about importing configuration information: do not try to import the configuration from your presumably broken installation, or an installation of Admin Tools version 6 or earlier.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

hotrod007

I'm sorry for the confusion...   I unistalled all of admin tools.. And still having the issue..  I'm assuming  I am barking up the wrong tree here..

nicholas
Akeeba Staff
Manager

Try replacing the .htaccess content with that of the htaccess.txt shipped with Joomla. A wrong directive in the .htaccess will make the site completely inaccessible. I would assume that could also be described as a site "crash" — in fact, that would be the original “site crash”, back from the times before server-side scripting.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

hotrod007

After many days I think my host found the issues.....

The site whitemarlininvitational.com is receiving a large number of concurrent requests which exceeds the request limit for Shared/Reseller servers.

We recommend that you add a CDN like Cloudflare for your site to reduce the amount of requests that will need to be handled by the server. You can also block unwanted bots within Cloudflare so that the requests do not reach the server.

 

I did see this in the stats from "feed" Bot..   396 thousand ..hits in one day

feed 396,861+24 10.50 GB 24 Jun 2023 - 07:12

I edit the .htaccess Maker  and it  created User agents to block.. I see "feedfinder" in that list... would this be the "Feed" bot I need to block also?

 

       

hotrod007

Please See post above.. this is an update...    My host says...!!!

 

Hello Rod,
  Thank you for getting back to us. Blocking the bots using the .htaccess file will not make any difference as the requests will still be reaching the server. You need to block the requests/bots before they reach the server using a CDN/firewall like Cloudflare.

A large portion of the requests for whitemarlininvitational.com were from Bytespider/ByteDance.
I am including the user agents below.


User Agent: "Mozilla/5.0 (Linux; Android 5.0) AppleWebKit/537.36 (KHTML, like Gecko) Mobile Safari/537.36 (compatible; Bytespider; [email protected])
User Agent: "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)"

nicholas
Akeeba Staff
Manager

Ticket closed: the issue has nothing to do with our software as per your host's explicitly stated feedback on the nature of your site's problem.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!