• Resolved Mike Matenkosky

    (@hikinmike)


    I’m using WP 5.9 and TwentyTwenty-two. When I click on the ‘Appearance > Editor (beta)’ I see this briefly:

    Warning: Use of undefined constant NONCE_SALT - assumed 'NONCE_SALT' (this will throw an Error in a future version of PHP) in /xxx/wordpress/wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Platform/WordPress/Shortcode/Shortcode.php on line 248

    I’m using SS3 on two other sites and this is the only site that shows the warning. I have disabled all plugins, but still see it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Laszlo

    (@laszloszalvak)

    Hi @hikinmike

    Your problem is caused by your /wp-config.php file, as it has some constants missing although they should be defined by default.
    The NONCE_SALT constant – that your warning mentions – should be already defined in the /wp-config.php file. If you inspect the contents of the “wp-config-sample.php” file, that is shipped with WordPress:

    you can see this constant is already defined in it.

    In your case this constant is not defined, and that is what causes this warning.

    To fix the problem, you should open your /wp-config.php file and define the NONCE_SALT constant, like you saw in the sample file that I linked above. Just instead of the “put your unique phrase here” string, you should put a salt that you could generate e.g. with the WordPress API here:

    and that will most likely fix the problem!

    Best regards,
    Laszlo.

    Thread Starter Mike Matenkosky

    (@hikinmike)

    Well that took care of that. I looked at all of the other sites I maintain, some don’t use a slider and a few didn’t have that so I added that.

    Thanks!

    Plugin Support Laszlo

    (@laszloszalvak)

    Hi @hikinmike

    I am glad it solved the problem!

    If you have any other questions or problems, just let us know!

    Have a nice weekend!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning: Use of undefined constant NONCE_SALT…’ is closed to new replies.