• Resolved culturaymundodigital

    (@culturaymundodigital)


    Hi all

    I have tried to update the IThemes Security plugin to version 8.1.3 in order to check its behaviour. However, the plugin is installed but I cannot activate. WordPress raised me the following error:

    Fatal error: Uncaught Error: Call to undefined function iThemesSecurity\Encryption\sodium_crypto_aead_xchacha20poly1305_ietf_encrypt() in **wp-content/plugins/better-wp-security/core/lib/encryption/User_Encryption_Sodium.php:54 Stack trace: #0 **wp-content/plugins/better-wp-security/core/lib/class-itsec-lib-encryption.php(346): iThemesSecurity\Encryption\User_Encryption_Sodium->encrypt(‘test-string’, 0) #1 **wp-content/plugins/better-wp-security/core/lib/class-itsec-lib-encryption.php(130): ITSEC_Lib_Encryption::set_test_string(‘MSluO2YpfDQ/e0E…’) #2 **wp-content/plugins/better-wp-security/core/setup.php(148): ITSEC_Lib_Encryption::save_secret_key(‘MSluO2YpfDQ/e0E…’) #3 **wp-content/plugins/better-wp-security/core/setup.php(21): ITSEC_Setup::setup_plugin_data() #4 **wp-content/plugins/better-wp-security/core/core.php(592): ITSEC_Setup::handle_activation() #5 **wp-includes/class-wp-hook.php(307): ITSEC_Core::handle_activation(”) #6 **wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array) #7 **wp-includes/plugin.php(476): WP_Hook->do_action(Array) #8 **wp-admin/plugins.php(194): do_action(‘activate_better…’) #9 {main} thrown in **wp-content/plugins/better-wp-security/core/lib/encryption/User_Encryption_Sodium.php on line 54`

    Has anyone had the same issue?? Have you been able to resolve it?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • nlpro

    (@nlpro)

    Hi @culturaymundodigital,

    This looks identical to this topic.

    But you are attempting to update from the iTSec 8.1.2 to the 8.1.3 release …
    (This is not a new clean install of the iTSec 8.1.3 plugin?)

    You should not run into this known issue when updating from the iTSec 8.1.2 to the 8.1.3 release.

    Did you have any issues with the 8.1.2 release?

    If the iTSec 8.1.2 plugin is still installed/active follow the steps below.

    Add the line below to the wp-config.php file:

    define('ITSEC_DEBUG', true);

    This will add a new Debug (sub)menu option to the Security menu option. Navigate to:

    Security > Debug

    In the Settings section of the Debug page select global from the dropdown list. Then click on the Load button.

    Look for the “build” setting and it’s value on line 21. It should be 4124.

    +++++ To prevent any confusion, I’m not iThemes +++++

    Thread Starter culturaymundodigital

    (@culturaymundodigital)

    Hi @nlpro

    I have got the same error yet. However, in this case, the error happens in a new website where I’m making a new and empty wordpress installation. The entire error I get when try the update is the following one:

    Fatal error: Uncaught Error: Call to undefined function iThemesSecurity\Encryption\sodium_crypto_aead_xchacha20poly1305_ietf_encrypt() in /home/culturaymundodigital/www/dentalaguilar/wp-content/plugins/better-wp-security/core/lib/encryption/User_Encryption_Sodium.php:54 Stack trace: #0 /home/culturaymundodigital/www/dentalaguilar/wp-content/plugins/better-wp-security/core/lib/class-itsec-lib-encryption.php(346): iThemesSecurity\Encryption\User_Encryption_Sodium->encrypt('test-string', 0) #1 /home/culturaymundodigital/www/dentalaguilar/wp-content/plugins/better-wp-security/core/lib/class-itsec-lib-encryption.php(130): ITSEC_Lib_Encryption::set_test_string('XSB8JVA3JWpOOWs...') #2 /home/culturaymundodigital/www/dentalaguilar/wp-content/plugins/better-wp-security/core/setup.php(148): ITSEC_Lib_Encryption::save_secret_key('XSB8JVA3JWpOOWs...') #3 /home/culturaymundodigital/www/dentalaguilar/wp-content/plugins/better-wp-security/core/setup.php(21): ITSEC_Setup::setup_plugin_data() #4 /home/culturaymundodigital/www/dentalaguila in /home/culturaymundodigital/www/dentalaguilar/wp-content/plugins/better-wp-security/core/lib/encryption/User_Encryption_Sodium.php on line 54

    So, the issue is that we cannot make a new install of the plugin and we cannot make an update of the plugin. Any idea to solve this?

    Thread Starter culturaymundodigital

    (@culturaymundodigital)

    I have make the test you request in your first message. I have installed the version 8.1.2 in this new site, I have activated the debug process and we have checked the value you request. This value is the following one:

    “build”: 4124,

    So, it seems that this part is also correct.

    We can work with version 8.1.2, but I don’t want that this plugin was not updated when we finish the web and gives control to my customer.

    Thanks in advance

    nlpro

    (@nlpro)

    Hi @culturaymundodigital,

    Hmmm, the stack trace seems to be shorter now. Perhaps accidentally truncated ?

    Anyway. Last week iThemes released iTSec PRO 7.2.3 which includes a fix for this issue. According to the iTSec PRO 7.2.3 Changelog:

    Bug Fix: Manually load Sodium Polyfill for servers that have an older version of libsodium installed.

    Unfortunately we are still waiting for iThemes to make this fix available in the free plugin. Until then you could implement the fix yourself in the iTSec 8.1.3 release.
    You can also decide to wait for the new free plugin release.

    In case iThemes provides a new release before me sharing how to apply/implement the fix, installing or updating to the new release is the preferred way.

    Just let me know how you want to proceed.

    (Implementing the fix is nothing more than replacing a few lines of code in a single plugin file).

    Update: I forgot to mention that the best solution is to fix the root cause of this issue (if possible). So contact your hosting provider and ask them which version of the PHP libsodium library is being used. If it’s < 1.0.12 ask them to update to the latest version (v1.0.17 or v1.0.18).

    • This reply was modified 2 years ago by nlpro.
    • This reply was modified 2 years ago by nlpro.
    • This reply was modified 2 years ago by nlpro.

    Hi @culturaymundodigital,

    According to the iTSec plugin 8.1.4 Changelog:

    Bug Fix: Manually load Sodium Polyfill for servers that have an older version of libsodium installed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘I cannot update to version 8.1.3’ is closed to new replies.