New Zenner
- Join Date:
- Jun 2023
- Location:
- Randburg, South Africa
- Posts:
- 5
- Plugin Contributions:
- 0
AbuseIPDB Integration module
Done! I now have 5000 API calls per day. Thank you.
Greetings,
Kobie
New Zenner
Done! I now have 5000 API calls per day. Thank you.
Greetings,
Kobie
Zen Follower
zc 2.1.0 AbuseIPDB v4.0.15
Hi. I'm not sure if it was only me. I just tried to block my cellphone ip address under the abuseipdb console. It doesn't work and my phone can visit the site without any issues. Instead, if I add my ip address to the black list under AbuseIPDB config page, it works.
I'm using zen cart 2.1.0 which is not supported any more. But it seems to be working fine other than this issue.
Another very strange thing to mention. Recently, I noticed that my htaccess file doesn't work to block the ip addresses any more. After a few hours chatting with the host support, it turns out that my apache can only work with new htaccess format (apache 2.4+) now. I changed the format from old 2.2 style to new 2.4 style and it works. Not sure If I need to reinstall abuseipdb plug-in due to this change.
Zen Follower
zc 2.1.0 AbuseIPDB v4.0.15
Here is a follow-up. I just tried to uninstall AbuseIPDB from the plug-in manager, and it crashed my whole site. Not sure if it is due to my zen cart version is 2.1.0. Luckily I have daily database backup.
The log file I received is the following.
[13-Nov-2026 16:17:50 America/New_York] PHP Fatal error: Uncaught Error: Undefined constant "EZPAGES_STATUS_HEADER" in /admin/includes/init_includes/init_errors.php:166
Stack trace:
#0 /public_html/includes/autoload_func.php(40): require_once()
#1 /admin/includes/application_top.php(40): require('...')
#2 /admin/plugin_manager.php(26): require('...')
#3 /admin/index.php(16): require('...')
#4 {main}
thrown in /admin/includes/init_includes/init_errors.php on line 166
[13-Nov-2026 16:17:50 America/New_York] Request URI: /admin/index.php?cmd=plugin_manager&page=1&colKey=AbuseIPDB&action=uninstall, IP address:xxx
--> PHP Fatal error: Uncaught Error: Undefined constant "EZPAGES_STATUS_HEADER" in /admin/includes/init_includes/init_errors.php:166
Stack trace:
#0 /public_html/includes/autoload_func.php(40): require_once()
#1 /admin/includes/application_top.php(40): require('...')
#2 /admin/plugin_manager.php(26): require('...')
#3 /admin/index.php(16): require('...')
#4 {main}
thrown in /admin/includes/init_includes/init_errors.php on line 166.
Totally Zenned
njcyx:
zc 2.1.0 AbuseIPDB v4.0.15
Here is a follow-up. I just tried to uninstall AbuseIPDB from the plug-in manager, and it crashed my whole site. Not sure if it is due to my zen cart version is 2.1.0. Luckily I have daily database backup.
The log file I received is the following.
[13-Nov-2026 16:17:50 America/New_York] PHP Fatal error: Uncaught Error: Undefined constant "EZPAGES_STATUS_HEADER" in /admin/includes/init_includes/init_errors.php:166 Stack trace: #0 /public_html/includes/autoload_func.php(40): require_once() #1 /admin/includes/application_top.php(40): require('...') #2 /admin/plugin_manager.php(26): require('...') #3 /admin/index.php(16): require('...') #4 {main} thrown in /admin/includes/init_includes/init_errors.php on line 166 [13-Nov-2026 16:17:50 America/New_York] Request URI: /admin/index.php?cmd=plugin_manager&page=1&colKey=AbuseIPDB&action=uninstall, IP address:xxx --> PHP Fatal error: Uncaught Error: Undefined constant "EZPAGES_STATUS_HEADER" in /admin/includes/init_includes/init_errors.php:166 Stack trace: #0 /public_html/includes/autoload_func.php(40): require_once() #1 /admin/includes/application_top.php(40): require('...') #2 /admin/plugin_manager.php(26): require('...') #3 /admin/index.php(16): require('...') #4 {main} thrown in /admin/includes/init_includes/init_errors.php on line 166.
Sorry about the crash. Here is what most likely happened. When the plugin is uninstalled it removes its own settings group. On a normal store that only takes the plugin's settings with it. On your store it looks like some other settings (the EZ-Pages ones at least) were tied to the same group, so they were removed too. I cannot see your database, so that is my best guess. It is not related to you being on Zen Cart 2.1.0.
To get the site back: restore the "configuration" and "configuration_group" tables from a database backup taken before the uninstall. If you have no backup, back up the database as it is now and then import the restore-missing-settings-zc-2.1.0.sql file I am sending you by PM in phpMyAdmin. It adds back any missing stock Zen Cart 2.1.0 setting with its default value and leaves everything else untouched. I tested it on a clean Zen Cart 2.1.0 database, not on your store, so please back up first and use it at your own risk. The top of the file has the details.
I will harden the uninstaller in the next release so it only ever removes the plugin's own settings, whatever state the store is in.
For anyone else on v4.0.15: uninstalling is fine on a normal store, but to be safe please wait for v4.0.16 before uninstalling.
On the console block: that is a "Require not ip" line in .htaccess, enforced by Apache. After converting your rules to the 2.4 format by hand, make sure the file has only one <RequireAll> block, with your own "Require not ip" lines inside it, and no "Require all granted" line outside it. A second block or a stray "Require all granted" cancels the blocks. Also check the file is 644 and not still 444.
If it still does not block, post the Require lines from your .htaccess and I will take a look. You do not need to reinstall after changing the format.
marcopolo
Zen Cart 2.2.2 | PHP 8.5.13 | MariaDB 10.11.14
Zen Follower
Hi @marcopolo, thank you for your fast response and suggestion. Luckily I have daily database backup. I have restored my database to the previous version and now my site is working fine.
The database of my site was created more than 10 years ago (zc 1.3.x) and it was upgraded multiple times in the past years until 2.1.0 now. Not sure if any problems/errors in my current database but it seems to be working fine here...
Anyway, it happens, especially the Friday.
Totally Zenned
njcyx:
Hi @marcopolo, thank you for your fast response and suggestion. Luckily I have daily database backup. I have restored my database to the previous version and now my site is working fine.
The database of my site was created more than 10 years ago (zc 1.3.x) and it was upgraded multiple times in the past years until 2.1.0 now. Not sure if any problems/errors in my current database but it seems to be working fine here...
Anyway, it happens, especially the Friday.
Glad to hear the backup did the job, and thanks for the background. A database that started on 1.3.x and has been upgraded that many times is exactly where I would expect a few settings to be tied to groups they were never meant to be in. Nothing you need to fix. Zen Cart runs fine that way, it only mattered for the uninstall.
v4.0.16 is now on GitHub and in the Zen Cart plugin directory with the hardened uninstaller. Since your restore put the plugin back at v4.0.15, please upgrade to v4.0.16 from the Plugin Manager before you ever uninstall it again.
For the console block, the .htaccess notes in my earlier post still apply: one <RequireAll> block only, your own "Require not ip" lines inside it, no "Require all granted" outside it, and the file at 644. If it still does not block after that, post the Require lines from your .htaccess and I will take a look.
And yes, it is always a Friday.
marcopolo
Zen Cart 2.2.2 | PHP 8.5.13 | MariaDB 10.11.14
Zen Follower
Thanks for your updates. I just updated the plug-in to 4.0.16 and it works fine. I can remove the plug-in without any issues now.
Tell staff why this post should be reviewed.