Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Error during Cron run #6

Open
wilburec opened this issue Nov 28, 2024 · 2 comments
Open

PHP Error during Cron run #6

wilburec opened this issue Nov 28, 2024 · 2 comments
Labels
invalid This doesn't seem right

Comments

@wilburec
Copy link

wilburec commented Nov 28, 2024

My site is not completing other cron tasks, so I looked in the error log and found these errors:
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'uid' in 'where clause': DELETE FROM {blocked_ips} WHERE (uid = :db_condition_placeholder_0) AND (time < :db_condition_placeholder_1) ; Array ( [:db_condition_placeholder_0] => 10001 [:db_condition_placeholder_1] => 1730237348 ) in antiscan_unblock() (line 345 of /home/teachinginwiscon/tbd/docroot/modules/antiscan/antiscan.module).

I'm using the following:
backdrop 1.29.2
antiscan 1.x-1.0.12
php 8.3.13

I've installed the module with default settings, and have not changed any of the config.

I disabled, then uninstalled the module, then reinstalled. When I run cron, I an getting the same error.

After looking through the logs, I am also seeing that same error when the module is triggered and it should be blocking an IP address:
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'reason' in 'field list': INSERT INTO {blocked_ips} (ip, reason, time, uid) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array ( [:db_insert_placeholder_0] => 189.176.44.17 [:db_insert_placeholder_1] => Request: /wp-login.php [:db_insert_placeholder_2] => 1732827737 [:db_insert_placeholder_3] => 10001 ) in antiscan_block_ip() (line 257 of /home/teachinginwiscon/tbd/docroot/modules/antiscan/antiscan.module).

When I completely uninstall the module, cron completes without errors.

@findlabnet
Copy link
Member

findlabnet commented Nov 29, 2024

Please make sure that you have installed actual version of "IP Address Blocking" module.

@findlabnet
Copy link
Member

Hello @wilburec, any progress in your investigation after a week?

@findlabnet findlabnet added the invalid This doesn't seem right label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants