Thanks, but PHP error
-
Thanks @apasionados for this plugin!
I tried several of the more popular versions but couldn’t make them work, because the wordpress-comment-blacklist by Grant Hutchinson would block every comment, even extremely simple ones. Do you know why that might be?
Your plugin gives me the option to use a different blacklist. So I de-selected Grant Hutchison’s Github list, and instead used this one:
https://perishablepress.com/wp/wp-content/online/code/wordpress-ultimate-comment-blacklist.txt
(see: https://perishablepress.com/wordpress-ultimate-comment-blacklist/ )With a few tweaks, just excluding a few of his terms that don’t make sense to block for our site, I got it working.
Having the option to choose a different blacklist is a great feature which sets your plugin apart from the others. However…
When I de-select the Github Grant Hutchison blacklist, your plugin then throws PHP errors:
[02-Oct-2020 18:48:44 America/New_York] PHP Warning: Use of undefined constant _transient_timeout_blacklist_github_update_check - assumed '_transient_timeout_blacklist_github_update_check' (this will throw an Error in a future version of PHP) in /home/[path_to_our_theme]/wp-content/plugins/comment-blacklist-updater/comment-blacklist-updater.php on line 208
Perhaps you need to use some logic to see if the user has deselected the Github list before you define
$transient_timeout_blacklist_update_process
?Note: it throws this error message every time I load the admin > Settings > Discussion page
Anyway, thanks again for this plugin, and hopefully you can fix that error!
- The topic ‘Thanks, but PHP error’ is closed to new replies.