Skip to content
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

Call to undefined function random_bytes() #127

Closed
SamKTaylor opened this issue Apr 18, 2019 · 3 comments
Closed

Call to undefined function random_bytes() #127

SamKTaylor opened this issue Apr 18, 2019 · 3 comments

Comments

@SamKTaylor
Copy link

Fatal error: Call to undefined function random_bytes() in app/code/community/FireGento/Logger/Helper/Data.php on line 50

I cant see any information about what PHP version you are targeting but random_bytes() was only introduced in PHP7, Magento isnt php 7 compatible without changes.

@colinmollenhour
Copy link
Collaborator

Thanks for the report. While I strongly advise just upgrading to PHP 7 (is anyone still supporting 5.x?), if you want to add a version_compare and an alternative to fix support for older versions I think we would happily accept a PR.

@SamKTaylor
Copy link
Author

You could at least list PHP 7 as your targeted version in your readme

@speedupmate
Copy link

paragonie/random_compat is a polyfill for this method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants