• Resolved Stefan

    (@stefanmertin)


    Hello, I tried to identify the error but I just can’t do it with the settings. Can someone please give me a tip? The website is still under construction, so I can’t present it.
    Error message in the console: [2025-01-27 14:28:19] ERROR [Modules\Encryption:51] Argument 2 must be CRYPTO_SECRETBOX_NONCEBYTES long.

    • This topic was modified 1 year, 4 months ago by Stefan.
    • This topic was modified 1 year, 4 months ago by Stefan.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    I wonder if your secret keys in wp-config.php need to be updated. 

    Try this:

    1. Generate new secret keys by going here: https://api.ww.wp.xz.cn/secret-key/1.1/salt/
    2. Paste the results into your wp-config.php file, replacing the existing constants.

    Does that fix the problem?

    Thread Starter Stefan

    (@stefanmertin)

    Thank you for the answer. I have now renewed the key, but the problem is not solved. After the new attempt, the following error message appears in the console:

    [2025-01-27 17:11:05] ERROR [Modules\Encryption:51] Argument 2 must be CRYPTO_SECRETBOX_NONCEBYTES long.

    [2025-01-27 17:11:14] ERROR [Modules\Validator\ValidateForm:109] Validator not found [GeminiLabs\SiteReviews\Modules\Validator\FriendlycaptchaValidator]
    [2025-01-27 17:11:14] ERROR [Modules\Encryption:51] Argument 2 must be CRYPTO_SECRETBOX_NONCEBYTES long.
    [2025-01-27 17:11:14] INFO [Modules\Validator\ValidatorAbstract:43] The form signature could not be verified.
    [2025-01-27 17:11:47] ERROR [Modules\Encryption:51] Argument 2 must be CRYPTO_SECRETBOX_NONCEBYTES long.
    [2025-01-27 17:11:55] ERROR [Modules\Validator\ValidateForm:109] Validator not found [GeminiLabs\SiteReviews\Modules\Validator\FriendlycaptchaValidator]
    [2025-01-27 17:11:55] ERROR [Modules\Encryption:51] Argument 2 must be CRYPTO_SECRETBOX_NONCEBYTES long.
    [2025-01-27 17:11:55] INFO [Modules\Validator\ValidatorAbstract:43] The form signature could not be verified.

    Plugin Author Gemini Labs

    (@geminilabs)

    Can you confirm that the NONCE_SALT constant is defined and exists ONLY ONCE in your wp-config file?

    Thread Starter Stefan

    (@stefanmertin)

    Yes, NONCE_SALT is present once in the key.

    To give more insight. I use Elementor pro and Fasted Cache. I have already deactivated the cache plugin completely, but to no avail.

    • This reply was modified 1 year, 4 months ago by Stefan.
    Plugin Author Gemini Labs

    (@geminilabs)

    Okay, well at the moment my computer is getting repaired so I am limited to what I can do.

    In order to troubleshoot this later I will need to know the following:

    1. The value of your NONCE_KEY
    2. The value of your NONCE_SALT
    3. The SERVER DETAILS section of the System Info file which you can find on the Site Reviews > Tools > System Info page.

    After providing your current NONCE_KEY and NONCE_SALT values, make sure to regenerate them using the link I provided in my first reply so that the values in your wp-config file are different from the old values you provide here.

    After I get the computer back, those values will help me to run better tests.

    Finally, if you are feeling adventurous and are able to edit plugin files directly, here is something else you could try which might fix the problem.

    NOTE: Please make a backup of your website first before doing this, I am providing the code modifications from my iPhone and so have not been able to properly test it:

    1. Use the Plugin Editor in WordPress to edit the following file: /site-reviews/plugin/Modules/Encryption.php
    2. Replace the contents of that file with this: https://gist.github.com/pryley/f68267e6d732ff79caca404906a74d63
    Thread Starter Stefan

    (@stefanmertin)

    Hey, it worked. I did the following. I installed the Code Snipped plugin and inserted the PHP code from gidhub.com.
    This website also seems to be running without any errors. If necessary, I would report back here.
    Great, thank you very much

    Plugin Author Gemini Labs

    (@geminilabs)

    I’m not sure how that worked using the Code Snippet plugin as you needed to replace the contents of the Encryption.php file in the plugin directly using the directions I gave.

    Maybe your server was caching the NONCE constants and it just took a little while to refresh?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘CRYPTO_SECRETBOX_NONCEBYTES long.’ is closed to new replies.