-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Fatal error : Uncaught exception 'Exception' with message 'There is no suitable CSPRNG installed on your system' #649
Comments
The problem is triggered by the call to In qTranslate this So if we look at the code there's a check on the date but... why on earth would we need a random number here?! It does not make any sense. Maybe we should simply put a constant value here.
Can you try just putting |
Also to be noted But still i'm wondering why a random day was used. Is it because it could fail some specific days? Anyway you would get an admin notice and then there's the "update now" feature. Now i'm even wondering why there is this feature in qTranslate, shouldn't it be done by WP Core? |
It looks like |
It was done in 3.4.8 pre-release (see 695fcb3). It's from June 2016 but this version was never released officially in wordpress.org so it came only when i merged this and released the first qTranslate-XT as 3.5.0. This checking period for gettext DB used to be 7 days but there is no related ticket or description in the release notes. The best is simply to revert this change, if we really need the random value we'll come back to it with |
Revert done in master, no more |
random_int uses a crypographic random generator that we don't need. The check period used to be 7 days before 3.4.8 so we revert this change.
random_int uses a crypographic random generator that we don't need. The check period used to be 7 days before 3.4.8 so we revert this change.
Hi everyone,
I just found this error after updating WP to 5.1, while trying to access wp-admin :
I'm using qtranslate-xt 3.5.3, and PHP version is 5.6.5 (which I can't change).
Any idea of a way to resolve this ?
Thanks :)
The text was updated successfully, but these errors were encountered: