0

I'm trying to use the CryptoJS AES module in my php project but I have the following error:

Fatal error: Call to undefined function openssl_random_pseudo_bytes() enter image description here

Checking the configuration of PHP I noticed that both OpenSSL and Mcrypt are enabled

enter image description here

Anyone know more about this error? could be some restrinction to my user? (I'm on a shared-hosting). The PHP version is 5.2.1.7 on Apache2. Thanks

I've also checked if PHP has been compiled with the correct --openssl and so it is

enter image description here

Ras
  • 628
  • 1
  • 11
  • 29
  • 1
    Possible duplicate of [Fatal error: Call to undefined function openssl\_random\_pseudo\_bytes()](http://stackoverflow.com/questions/11212808/fatal-error-call-to-undefined-function-openssl-random-pseudo-bytes) – Turdaliev Nursultan Jan 25 '16 at 08:36
  • You should move away from a host who thinks that running PHP 5.2 is acceptable. – Repox Jan 25 '16 at 08:58

1 Answers1

1

You need to upgrade PHP to version >= 5.3.

  • Thanks for reply. I may check with my host if is possible to upgrade to PHP 5.3. – Ras Jan 25 '16 at 08:42