Krzysztof Trzos Krzysztof Trzos - 1 year ago 152
PHP Question

Symfony 3 - There is no suitable CSPRNG

I'm getting this error on my test server with PHP 5.5 (Symfony 3.0.9):

enter image description here

Everything is all right on my local server created with XAMPP having PHP 5.6. I know that there are two workarounds:

  1. paragonie/random_compat downgrade

  2. changing

But still, I would like to use them as a last resort. Is there any other way to FIX this problem?

Answer Source

Actually, those are 2 of the 3 unique solutions.

As the problem is only in your server (that happened to me too), you could go to your domain and add /dev/urandom to your existing open_basedir configuration property in your server configuration.

Read this article which offers 3 solutions (and according to your need only the solution #3 would work).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download