• 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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author apasionados

    (@apasionados)

    Hi @hommealone.

    Thanks for reporting this error. We will have a look during the week to see if we can fix it.

    Best regards from Spain.

    Plugin Author apasionados

    (@apasionados)

    Hi @hommealone,

    We tried to reproduce this PHP warning but were not successful. Could you please provide us some more information.

    Which PHP version is your server running?

    What exact settings are you using?

    • You have unchecked the black list from Grant Hutchinson.
    • Have you uploaded a blacklist to the uploads folder?
    • Are you using an external blacklist link?
    • Are you using the filter “cblm_sources” in the functions.php of your child theme?

    Hope that with this information we can reproduce it.

    Best regards from Spain.

    Thread Starter hommealone

    (@hommealone)

    Hi, I hope this helps!
    Please note, we only get the error message when we visit the Admin > Discussions settings page. Just visiting the page immediately throws the error, even if we make no changes.

    PHP version:
    7.3 FastCGI

    You have unchecked the black list from Grant Hutchinson?
    Yes, we have unchecked the black list from Grant Hutchinson.

    Have you uploaded a blacklist to the uploads folder?
    No.

    Are you using an external blacklist link?
    Yes. Here is the link:
    https://perishablepress.com/wp/wp-content/online/code/wordpress-ultimate-comment-blacklist.txt

    Are you using the filter “cblm_sources” in the functions.php of your child theme?
    No. We have not added any filters to our functions.php file.

    (Are we supposed to add a filter there?)

    Thanks for your responses in English! (It has been more than 40 years since my last Spanish class!)

    • This reply was modified 4 years, 5 months ago by hommealone.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Thanks, but PHP error’ is closed to new replies.