admin管理员组

文章数量:1302384

This is what i become after insterting a WPForm in Wordpress

Fatal error: Uncaught exception 'Exception' with message 'There is no suitable CSPRNG installed on your system' in /var/customers/webs/harlac17/wp/wp-includes/random_compat/random.php:212 
Stack trace: 
#0 /var/customers/webs/harlac17/wp/wp-content/plugins/wpforms-lite/libs/sodium_compat/src/Compat.php(2334): random_bytes(32) 
#1 /var/customers/webs/harlac17/wp/wp-content/plugins/wpforms-lite/libs/sodium_compat/lib/php72compat.php(883): ParagonIE_Sodium_Compat::crypto_secretbox_keygen() 
#2 /var/customers/webs/harlac17/wp/wp-content/plugins/wpforms-lite/src/Helpers/Crypto.php(37): sodium_crypto_secretbox_keygen() 
#3 /var/customers/webs/harlac17/wp/wp-content/plugins/wpforms-lite/src/Forms/Token.php(59): WPForms\Helpers\Crypto::get_secret_key() 
#4 /var/customers/webs/harlac17/wp/wp-content/plugins/wpforms-lite/src/Forms/Token.php(148): WPForms\Forms\Token->get() 
#5 [internal function]: WPForms\Forms\Token->add_token_to_form_atts(Array) 
#6 /var/customers/webs/harlac17/wp/wp-includes/class-wp-hook.php(288): call_user_func_array( in /var/customers/webs/harlac17/wp/wp-includes/random_compat/random.php on line 212

This is what i become after insterting a WPForm in Wordpress

Fatal error: Uncaught exception 'Exception' with message 'There is no suitable CSPRNG installed on your system' in /var/customers/webs/harlac17/wp/wp-includes/random_compat/random.php:212 
Stack trace: 
#0 /var/customers/webs/harlac17/wp/wp-content/plugins/wpforms-lite/libs/sodium_compat/src/Compat.php(2334): random_bytes(32) 
#1 /var/customers/webs/harlac17/wp/wp-content/plugins/wpforms-lite/libs/sodium_compat/lib/php72compat.php(883): ParagonIE_Sodium_Compat::crypto_secretbox_keygen() 
#2 /var/customers/webs/harlac17/wp/wp-content/plugins/wpforms-lite/src/Helpers/Crypto.php(37): sodium_crypto_secretbox_keygen() 
#3 /var/customers/webs/harlac17/wp/wp-content/plugins/wpforms-lite/src/Forms/Token.php(59): WPForms\Helpers\Crypto::get_secret_key() 
#4 /var/customers/webs/harlac17/wp/wp-content/plugins/wpforms-lite/src/Forms/Token.php(148): WPForms\Forms\Token->get() 
#5 [internal function]: WPForms\Forms\Token->add_token_to_form_atts(Array) 
#6 /var/customers/webs/harlac17/wp/wp-includes/class-wp-hook.php(288): call_user_func_array( in /var/customers/webs/harlac17/wp/wp-includes/random_compat/random.php on line 212
Share Improve this question edited Mar 4, 2021 at 20:25 phatskat 3,1741 gold badge18 silver badges26 bronze badges asked Mar 4, 2021 at 16:45 HarliHarli 1 1
  • It looks like WordPress is failing to find a CSPRNG (cryptographically secure pseudo-random number generator) on your server. You'll need to talk to your hosting company about this. (If you are the hosting company, you'll need to look into PHP's random_bytes().) – Pat J Commented Mar 4, 2021 at 20:30
Add a comment  | 

1 Answer 1

Reset to default 0

Googling for the Exception message

There is no suitable CSPRNG installed on your system

Yielded a Stackoverflow question matching your issue.

When dealing with error messages, especially from plugins, it's usually helpful to Google the message itself - odds are someone else has already had the same problem, or the plugin maintainer may have addressed it in documentation or support forums.

本文标签: pluginsWP Forms not displayingbecomming an fatal error