• Resolved roam92

    (@roam92)


    I got the following error in this plugin upon an upgrade to PHP 8:

    Comment Notifier – Plugin could not be activated because it triggered a fatal error: Uncaught Error: Undefined constant “WPLANG” in …/wp-content/plugins/comment-notifier/plugin.php

    But this is easy to fix; just comment out the offending line. Example:

    // if (WPLANG != ”) @include_once(dirname(FILE) . ‘/languages/’ . WPLANG . ‘_options.php’);

    You’ll lose the ability to run the plugin in Italian instead of English, but that is all.

The topic ‘The code fix for upgrade to PHP 8’ is closed to new replies.