sodium_compat: Undefined constant 'CRYPTO_AEAD_XCHACHA20POLY1305_IETF_KEYBYTES'
Hey there,
after updating to php7.3 I get these stragne errors in error.log maybe you could help me…
PHP Fatal error: Uncaught Error: Undefined constant 'CRYPTO_AEAD_XCHACHA20POLY1305_IETF_KEYBYTES' in /home/homepages/myhomepage/httpdocs/libraries/vendor/paragonie/sodium_compat/lib/constants.php:22\nStack trace:\n#0 /home/homepages/myhomepage/httpdocs/libraries/vendor/paragonie/sodium_compat/lib/sodium_compat.php(834): require_once()\n#1 /home/homepages/myhomepage/httpdocs/libraries/vendor/paragonie/sodium_compat/autoload.php(45): require_once('/home/homepages...')\n#2 /home/homepages/myhomepage/httpdocs/libraries/vendor/composer/autoload_real.php(66): require('/home/homepages...')\n#3 /home/homepages/myhomepage/httpdocs/libraries/vendor/composer/autoload_real.php(56): composerRequire205c915b9c7d3e718e7c95793ee67ffe('3109cb1a231dcd0...', '/home/homepages...')\n#4 /home/homepages/myhomepage/httpdocs/libraries/vendor/autoload.php(7): ComposerAutoloaderInit205c915b9c7d3e718e7c95793ee67ffe::getLoader()\n#5 /home/homepages/myhomepage/httpdocs/libraries/cms.php(36): require('/home/homepages...')\n in /home/homepages/myhomepage/httpdocs/libraries/vendor/paragonie/sodium_compat/lib/constants.php on line 22, referer: https://myhomepage/groups?start=108
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (8 by maintainers)
Commits related to this issue
- Possible fix for #122 by coercing the autoloader to always load the `ParagonIE_Sodium_Compat` class before the remaining polyfills (constants, etc.). — committed to paragonie/sodium_compat by paragonie-security 3 years ago
- Upgrade/Install: Update sodium_compat to v1.16.1. The latest version of sodium_compat includes polyfills for new features slated to land in PHP 8.1: https://paragonie.com/blog/2021/05/ristretto255-fo... — committed to WordPress/wordpress-develop by SergeyBiryukov 3 years ago
- Upgrade/Install: Update sodium_compat to v1.16.1. The latest version of sodium_compat includes polyfills for new features slated to land in PHP 8.1: https://paragonie.com/blog/2021/05/ristretto255-fo... — committed to nylen/wordpress-develop-svn by deleted user 3 years ago
- Upgrade/Install: Update sodium_compat to v1.16.1. The latest version of sodium_compat includes polyfills for new features slated to land in PHP 8.1: https://paragonie.com/blog/2021/05/ristretto255-fo... — committed to markjaquith/WordPress by SergeyBiryukov 3 years ago
- Upgrade/Install: Update sodium_compat to v1.16.1. The latest version of sodium_compat includes polyfills for new features slated to land in PHP 8.1: https://paragonie.com/blog/2021/05/ristretto255-fo... — committed to gMagicScott/core.wordpress-mirror by SergeyBiryukov 3 years ago
- Upgrade/Install: Update sodium_compat to v1.16.1. The latest version of sodium_compat includes polyfills for new features slated to land in PHP 8.1: https://paragonie.com/blog/2021/05/ristretto255-fo... — committed to WordPress/wordpress-develop by SergeyBiryukov 3 years ago
- Upgrade/Install: Update sodium_compat to v1.16.1. The latest version of sodium_compat includes polyfills for new features slated to land in PHP 8.1: https://paragonie.com/blog/2021/05/ristretto255-fo... — committed to markjaquith/WordPress by SergeyBiryukov 3 years ago
- Upgrade/Install: Update sodium_compat to v1.16.1. The latest version of sodium_compat includes polyfills for new features slated to land in PHP 8.1: https://paragonie.com/blog/2021/05/ristretto255-fo... — committed to gMagicScott/core.wordpress-mirror by SergeyBiryukov 3 years ago
- Upgrade/Install: Update sodium_compat to v1.16.1. The latest version of sodium_compat includes polyfills for new features slated to land in PHP 8.1: https://paragonie.com/blog/2021/05/ristretto255-fo... — committed to FiliagoDev/WordPress by SergeyBiryukov 3 years ago
- Upgrade/Install: Update sodium_compat to v1.16.1. The latest version of sodium_compat includes polyfills for new features slated to land in PHP 8.1: https://paragonie.com/blog/2021/05/ristretto255-fo... — committed to VenusPR/Wordpress_Richard by VenusPR 3 years ago
WordPress ticket: https://core.trac.wordpress.org/ticket/53274
Great!
v1.16.1
is out. We’ll follow up with the WordPress dev team to get sodium_compat updated.Outside the pwhash API, if a function is not covered by the polyfill, we consider that a bug to be fixed.
Same problem with 1.16.0 and fresh installed composer package.
\Sodium\CRYPTO_PWHASH_SCRIPTSALSA208SHA256_OPSLIMIT_INTERACTIVE undefined constant.