PeeHaa / OpCacheGUI

GUI for PHP's OpCache
1.46k stars 170 forks source link

Call to undefined function OpCacheGUI\Security\random_bytes() #95

Closed krnan9525 closed 6 years ago

krnan9525 commented 6 years ago

I have both php5 and 7 installed. Run php -v , shows: PHP 7.1.10-1+ubuntu14.04.1+deb.sury.org+1 (cli) (built: Sep 29 2017 17:33:22) ( NTS )

This is the error I got:

PeeHaa commented 6 years ago

I think you dropped part of your issue somehow at the end :-)

krnan9525 commented 6 years ago
krnan9525 commented 6 years ago

Call to undefined function OpCacheGUI\Security\random_bytes() in /var/www/html/OpCacheGUI/src/OpCacheGUI/Security/CsrfToken.php on line 82

krnan9525 commented 6 years ago

Github wrapped the HTML code...

PeeHaa commented 6 years ago

Just to double check. You only get that error on a 5.4 PHP build right?

krnan9525 commented 6 years ago

I pulled it from master

krnan9525 commented 6 years ago

OK. I pulled it from v2.0.0 branch and the error is gone.

Grand

PeeHaa commented 6 years ago

What version of PHP are you running the web interface on?

krnan9525 commented 6 years ago

Suppose to be 7.1. It solved for the moment.

Cheers

krnan9525 commented 6 years ago

I can't log in from the homepage. Even if I leave the username and password as blank. It will always take me back to login page again

PeeHaa commented 6 years ago

There has been several fixes for this. For PHP 7+ use the master branch. For PHP < 7 use the 5.4 branch.

Also confirm the whitelist is set up correctly.