WordPress.org

Forums

Nofollow Case by Case
[resolved] Undefined function when leaving comments (6 posts)

  1. kgagne
    Member
    Posted 1 year ago #

    When the NFCBC plugin is installed and myr eaders or I try to leave a comment, we get this error:

    Fatal error: Call to undefined function wp_slash() in /home/kgagne/showbits/wp-content/plugins/nofollow-case-by-case/nofollow_case_by_case.php on line 37

    I also found this plugin stopped working, though since it's more than two years old, it's hard to say what's at fault:

    http://wordpress.org/plugins/ajax-comment-preview/

    -Ken

    http://wordpress.org/plugins/nofollow-case-by-case/

  2. fob
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    wp_slash was introduced with WordPress 3.6. Did you try to deactivate the other (outdated) plugin already and see what happens? There might be issues with its pre save filter.

  3. kgagne
    Member
    Posted 1 year ago #

    Does that mean NFCBC requires WordPress 3.6 or later? The plugin description says only 2.0 or later is needed. I was running 3.5.2 at the time I submitted this thread, but having since updated to 3.6.1, the above error has gone away.

    -Ken

  4. fob
    Member
    Plugin Author

    Posted 1 year ago #

    I`m very sorry, Ken. It was my fault. Thanks for sharing the bug.

    I quickly had a look into the plugin code and found out that it currently checks if you have a version <= 3.5 or newer. So for versions between 3.5.0 and 3.6 the plugin currently delivers a wrong result as these versions are not aware of the new escape function delivered with the new core system. This must have been the reason for the error massage you have seen. I will have to correct that for other people who have not updated their core yet.

    Thanks and best regards
    Oliver

  5. kgagne
    Member
    Posted 1 year ago #

    Thanks, Oliver!

  6. fob
    Member
    Plugin Author

    Posted 1 year ago #

    You are welcome!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Nofollow Case by Case
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic