Failed to require random.php in the Laravel project

Issue #20 resolved
Sergey Sevrugin created an issue

If thinbus required in the Laravel project we have an error "Failed opening required 'vendor/paragonie/random_compat/lib/random.php' (include_path='.:/usr/local/lib/php')"

The problem is string "require_once 'vendor/paragonie/random_compat/lib/random.php';" When we run tests in the project the path is "/var/www/project" and all works When we open the project page througth browser, path is "/var/www/project/public" and require_once doesn't working =(

The solution is replace this strings in the thinbus-srp and thinbus-srp-client to: require_once DIR.'../../../../paragonie/random_compat/lib/random.php';

Comments (2)

  1. simon repo owner

    sounds great can you please fork the repo, edit the file, and send me a pull request? that way your name will appear as a contributor to the project for your bug fix (and you will save me a few minutes work)

  2. Log in to comment