-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Laravel 5.6 in Windows 7 php 7.2.6 file_exists(): open_basedir error #24630
Comments
What's the error's stacktrace? |
thankyou for your reply do you means this on the error screen left side ? 68 ErrorException |
This looks like an issue with PHP and Windows 7 (it works on Windows 10). Windows doesn't allow filenames with question marks and apparently, just checking the file existence is enough to cause an error. It works with Laravel 5.5 because 5.6 replaced the hardcoded English strings with translations (#23342). In your case, the best solution is probably to replace |
i don't know if this help, i captured the error screen left side bar work on Windows 10 ?? and in the php.ini enable restart server and create a new database for test. also edit the .env and do the steps browser the host of blogx , click login, Windows 10 works ?? |
When using the |
but in Laravel 5.5 with enabled open_basedir is running very well but this is no sense actually is not the open_basedir problem, is Laraver to guess the path
|
This seems more like a config issue than an actual problem with Laravel tbh. Can you first please try one of the following support channels? If you can actually identify this as a bug, feel free to report back. |
Description:
i was using Laravel 5.5 in Windows 7 with php 7.1.1 before
but Server Requirements of Laravel 5.6 is PHP >= 7.1.3
so i fresh install php 7.2.6
follow the document : https://laravel.com/docs/5.6/authentication#introduction
i use command to install Laravel
composer create-project --prefer-dist laravel/laravel blog_a "5.5.*"
composer create-project --prefer-dist laravel/laravel blog_b
then create the database tables
php artisan migrate
on each of blog_a and blog_b use this command
php artisan make:auth
open browser visit localhost.blog_a AND localhost.blog_b
in both host register a new user then logout
if i click Login on each host:
[Laravel 5.5] blog_a (no error)
[Laravel 5.6] blog_b (show an error)
"file_exists(): open_basedir restriction in effect. File(...\blog_b\resources\lang/en/Forgot Your Password?.php)
if i disable open_basedir in php.ini OR
remove the "?" {{ __('Forgot Your Password?') }} in resources\views\auth\login.blade.php
all worked fine
so why in the same OS and same server settings, 5.5 is no error but 5.6 has error ?
i also tried use php 7.1.18 instead of php 7.2.6
[Laravel 5.5] blog_a (no error)
[Laravel 5.6] blog_b (same error file_exists(): open_basedir restriction)
may be i missing something ? thanks
The text was updated successfully, but these errors were encountered: