• Resolved FR_lucien

    (@fr_lucien)


    Hi dear support,

    I get error notifications every time I log in as an administrator.

    An error of type E_ERROR has been caused in line 44 of the file /*/*/*/* /wp-content/plugins/ninjafirewall/lib/email_sodium.php. Error message : Uncaught Error: Undefined constant “AUTH_KEY” in /wp-content/plugins/ninjafirewall/lib/email_sodium.php:44

    On the other hand, the plugin is working without any problem.

    I don’t know how to interpret this error, if it is one.

    Thanks for any help on this matter.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author nintechnet

    (@nintechnet)

    AUTH_KEY is a constant defined in your wp-config.php.
    Can you check if you see it? It should look like that in wp-config.php:

    define('AUTH_KEY',         'some-random-characters-here');
    define('SECURE_AUTH_KEY',  'some-random-characters-here');
    define('LOGGED_IN_KEY',    'some-random-characters-here');
    define('NONCE_KEY',        'some-random-characters-here');
    define('AUTH_SALT',        'some-random-characters-here');
    define('SECURE_AUTH_SALT', 'some-random-characters-here');
    define('LOGGED_IN_SALT',   'some-random-characters-here');
    define('NONCE_SALT',       'some-random-characters-here');
    
    Thread Starter FR_lucien

    (@fr_lucien)

    Hello,
    Thank you for your answer.
    The keys have been in the file for a long time. I renewed them, the error is no longer displayed.
    The regenerated keys have their names in upper case, whereas they were previously in lower case.
    Is this the reason?

    Do these keys have to be renewed periodically?

    Plugin Author nintechnet

    (@nintechnet)

    Yes it is, because constants and variables are case-sensitive.

    Keys are secret, hence they must be renewed if someone you don’t trust accessed them (hacked site etc).

    Thread Starter FR_lucien

    (@fr_lucien)

    Hello
    thank you very much, the problem is solved now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Recurring error’ is closed to new replies.