my web site is https://antilicense.com/
and I give a white page
PHP Fatal error: require(): Failed opening required '.../vendor/composer/../symfony/polyfill-mbstring/bootstrap.php' (include_path='.:/opt/alt/php72/usr/share/pear') in .../vendor/composer/autoload_real.php on line 66
my error log:
[06-Mar-2018 10:31:34 UTC] PHP Warning: require(/home/antilic1/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in /home/antilic1/public_html/vendor/composer/autoload_real.php on line 66
[06-Mar-2018 10:31:34 UTC] PHP Fatal error: require(): Failed opening required '/home/antilic1/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php' (include_path='.:/opt/alt/php72/usr/share/pear') in /home/antilic1/public_html/vendor/composer/autoload_real.php on line 66
[06-Mar-2018 10:31:53 UTC] PHP Warning: require(/home/antilic1/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in /home/antilic1/public_html/vendor/composer/autoload_real.php on line 66
[06-Mar-2018 10:31:53 UTC] PHP Fatal error: require(): Failed opening required '/home/antilic1/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php' (include_path='.:/opt/alt/php72/usr/share/pear') in /home/antilic1/public_html/vendor/composer/autoload_real.php on line 66
[06-Mar-2018 10:35:49 UTC] PHP Warning: include(/home/antilic1/public_html/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php): failed to open stream: No such file or directory in /home/antilic1/public_html/vendor/composer/ClassLoader.php on line 444
[06-Mar-2018 10:35:49 UTC] PHP Warning: include(): Failed opening '/home/antilic1/public_html/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php' for inclusion (include_path='.:/opt/alt/php72/usr/share/pear') in /home/antilic1/public_html/vendor/composer/ClassLoader.php on line 444
[06-Mar-2018 10:35:49 UTC] PHP Fatal error: Uncaught Error: Class 'Illuminate\Filesystem\Filesystem' not found in /home/antilic1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:175
Stack trace:
#0 /home/antilic1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(144): Illuminate\Foundation\Application->registerBaseBindings()
#1 /home/antilic1/public_html/bootstrap/app.php(15): Illuminate\Foundation\Application->__construct('/home/antilic1/...')
#2 /home/antilic1/public_html/public/index.php(38): require_once('/home/antilic1/...')
#3 {main}
thrown in /home/antilic1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php on line 175
[06-Mar-2018 10:35:50 UTC] PHP Warning: include(/home/antilic1/public_html/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php): failed to open stream: No such file or directory in /home/antilic1/public_html/vendor/composer/ClassLoader.php on line 444
[06-Mar-2018 10:35:50 UTC] PHP Warning: include(): Failed opening '/home/antilic1/public_html/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php' for inclusion (include_path='.:/opt/alt/php72/usr/share/pear') in /home/antilic1/public_html/vendor/composer/ClassLoader.php on line 444
[06-Mar-2018 10:35:50 UTC] PHP Fatal error: Uncaught Error: Class 'Illuminate\Filesystem\Filesystem' not found in /home/antilic1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:175
Stack trace:
when I unzip files all things is fine
but after few minutes I see white page...
I try:
php artisan key:generate
composer update --no-scripts
composer update
composer install
composer dump-autoload
but I still have problem
please help me. tnx.
note1: I upgraded my laravel 5.5 to 5.6
note2: It works on local host fine... but when I move it to server I see error log
this is my php info https://antilicense.com/info.php
It seems the vendor files are not in the system. Can you do composer update and see ?
Also make sure to set the file folder permission properly. Change all the directories to 755 and all the files to 644.
To change all the directories to 755 (drwxr-xr-x):
find /home/antilic1/public_html -type d -exec chmod 755 {} \;
To change all the files to 644 (-rw-r--r--):
find /home/antilic1/public_html -type f -exec chmod 644 {} \;
You must remove vendor directory in your shared host and run below code in your local project:
composer dumpautoload
and copy vendor directory from local project to shared host.
Related
I just downloaded a Laravel script
then I used from it in my local host (wamp) without any problem but now when I want to use from it in my host, it shows: 500 error
error_log file
[12-Feb-2019 16:59:48 Asia/Tehran] PHP Warning: include(/home/grammer/public_html/test/core/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php):
failed to open stream: No such file or directory in
/home/grammer/public_html/test/core/vendor/composer/ClassLoader.php on
line 444 [12-Feb-2019 16:59:48 Asia/Tehran] PHP Warning: include():
Failed opening
'/home/grammer/public_html/test/core/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php'
for inclusion
(include_path='.:/opt/cpanel/ea-php72/root/usr/share/pear') in
/home/grammer/public_html/test/core/vendor/composer/ClassLoader.php on
line 444 [12-Feb-2019 16:59:48 Asia/Tehran] PHP Fatal error: Uncaught
Error: Class 'Illuminate\Filesystem\Filesystem' not found in
/home/grammer/public_html/test/core/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:175
Stack trace:
0 /home/grammer/public_html/test/core/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(144):
Illuminate\Foundation\Application->registerBaseBindings()
1 /home/grammer/public_html/test/core/bootstrap/app.php(15): Illuminate\Foundation\Application->__construct('/home/grammer/p...')
2 /home/grammer/public_html/test/index.php(38): require_once('/home/grammer/p...')
3 {main} thrown in /home/grammer/public_html/test/core/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
on line 175
composer install
The error is telling you clearly, missing basically not find vendor which is the base larvel and run the command in the folder of your laravel project and do not forget to configure your .env file eventually
I deployed small app in symfony 2.8 on host without ssh. Copied all files without cache and log, cloned DB.
When i go to address: address.com/web/app.php, app show errors:
Warning: SessionHandler::read(): open(/web/clients/www/3/a/8/8/address.com/tmp/sess_9ff0c94b9bd261554814764d051524e0, O_RDWR) failed: No such file or directory (2) in /app/cache/prod/classes.php on line 431
Warning: include(/web/clients/www/3/a/8/8/address.com/vendor/composer/../twig/twig/lib/Twig/Cache/Filesystem.php): failed to open stream: No such file or directory in /vendor/composer/ClassLoader.php on line 444
Warning: include(): Failed opening '/web/clients/www/3/a/8/8/address.com/vendor/composer/../twig/twig/lib/Twig/Cache/Filesystem.php' for inclusion (include_path='.:/opt/httpd-clients/php-7.2.10/lib/php') in /vendor/composer/ClassLoader.php on line 444
Warning: include(/web/clients/www/3/a/8/8/address.com/vendor/composer/../twig/twig/lib/Twig/Cache/Filesystem.php): failed to open stream: No such file or directory in /vendor/composer/ClassLoader.php on line 444
Warning: include(): Failed opening '/web/clients/www/3/a/8/8/address.com/vendor/composer/../twig/twig/lib/Twig/Cache/Filesystem.php' for inclusion (include_path='.:/opt/httpd-clients/php-7.2.10/lib/php') in /vendor/composer/ClassLoader.php on line 444
Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "Twig_Cache_Filesystem" from the global namespace. Did you forget a "use" statement? in /web/clients/www/3/a/8/8/address.com/app/cache/prod/classes.php:3212
Stack trace: #0 /web/clients/www/3/a/8/8/address.com/app/cache/prod/classes.php(3149): Twig_Environment->setCache('/web/clients/ww...')
#1 /web/clients/www/3/a/8/8/address.com/app/cache/prod/appProdProjectContainer.php(2476): Twig_Environment->__construct(Object(Symfony\Bundle\TwigBundle\Loader\FilesystemLoader), Array)
#2 /web/clients/www/3/a/8/8/address.com/app/bootstrap.php.cache(2271): appProdProjectContainer->getTwigService()
#3 /web/clients/www/3/a/8/8/address.com/app/cache/prod/appProdProjectContainer.php(2505): Symfony\Component\DependencyInjection\Container->get('twig')
#4 /web/clients/www/3/a/8/8/address.com/app/bootstrap.php.cache(2271): appProdProjectContainer->getTwig_Controller_ExceptionService()
#5 /web/clients/www/3/a/8/8/address.com/app/cache in /app/cache/prod/classes.php on line 3212
Warning: SessionHandler::write(): open(/web/clients/www/3/a/8/8/address.com/tmp/sess_9ff0c94b9bd261554814764d051524e0, O_RDWR) failed: No such file or directory (2) in /app/cache/prod/classes.php on line 435
Warning: session_write_close(): Failed to write session data using user defined save handler. (session.save_path: /web/clients/www/3/a/8/8/address.com/tmp) in %s%02d on line 0
I add chmod 777 to cache and log dir.
Any ideas?
It's a typical permissions issue. You should clear you cache, then add recursively the appropriate permissions like this:
chmod -R 775 /cache
I have installed wordpress for cpanel via Softaculous app installer' that i installed theme. Theme is working properly after one day my font page not working.
This is error long.
[29-Apr-2018 07:56:23 UTC] PHP Warning: require(/home/eco/public_html/wp-includes/post.php): failed to open stream: Permission denied in /home/eco/public_html/wp-settings.php on line 166
[29-Apr-2018 07:56:23 UTC] PHP Fatal error: require(): Failed opening required '/home/eco/public_html/wp-includes/post.php' (include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php') in /home/eco/public_html/wp-settings.php on line 166
[29-Apr-2018 07:57:00 UTC] PHP Warning: require(/home/eco/public_html/wp-includes/post.php): failed to open stream: Permission denied in /home/eco/public_html/wp-settings.php on line 166
[29-Apr-2018 07:57:00 UTC] PHP Fatal error: require(): Failed opening required '/home/eco/public_html/wp-includes/post.php' (include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php') in /home/eco/public_html/wp-settings.php on line 166
[30-Apr-2018 02:09:27 UTC] PHP Warning: include(/home/eco/public_html/wp-content/themes/Vangard/functions.php): failed to open stream: Permission denied in /home/eco/public_html/wp-settings.php on line 426
[30-Apr-2018 02:09:27 UTC] PHP Warning: include(): Failed opening '/home/eco/public_html/wp-content/themes/Vangard/functions.php' for inclusion (include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php') in /home/eco/public_html/wp-settings.php on line 426
[30-Apr-2018 02:09:27 UTC] PHP Warning: include(/home/eco/public_html/wp-content/themes/Vangard/functions.php): failed to open stream: Permission denied in /home/eco/public_html/wp-settings.php on line 426
[30-Apr-2018 02:09:27 UTC] PHP Warning: include(): Failed opening '/home/eco/public_html/wp-content/themes/Vangard/functions.php' for inclusion (include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php') in /home/eco/public_html/wp-settings.php on line 426
[30-Apr-2018 02:09:28 UTC] PHP Fatal error: Class 'FT_scope' not found in /home/eco/public_html/wp-content/themes/Vangard/header.php on line 28
Would you tell me how to fix it. thanks
It seems to me the error is because of a file permission issue.
If this is a local setup on your own system then simply right click on the wordpress installation (root project folder) and set them to 755
or set owner with all permissions and the rest with only access files
apply this recursively to all folders
you have incorrect permissions / file ownership on your project.
the best and easiest way to do it by using the following:
$ sudo find /path/to/site -type f -exec chmod 644 {} \;
$ sudo find /path/to/site -type d -exec chmod 755 {} \;
this will find everything in site root that is a file and set permissions to 644, then it will find everything that a directory and set it to 755.
if the permissions error returns after that, check root isn't the owner (by running ls -la on your directory to bring up the files in list view with file permissions and owners). If this is the case, set it to your home user or apache:
$ sudo chown -R /path/to/site my-user:www-data
I had laravel all set up on my computer and everything was working great, then they released version 5.5 and things didn't work for me anymore. When I type laravel in my terminal I get:
PHP Warning: require(/Users/logan/.composer/vendor/composer/../guzzlehttp/psr7/src/functions_include.php): failed to open stream: No such file or directory in /Users/logan/.composer/vendor/composer/autoload_real.php on line 66
Warning: require(/Users/logan/.composer/vendor/composer/../guzzlehttp/psr7/src/functions_include.php): failed to open stream: No such file or directory in /Users/logan/.composer/vendor/composer/autoload_real.php on line 66
PHP Fatal error: require(): Failed opening required '/Users/logan/.composer/vendor/composer/../guzzlehttp/psr7/src/functions_include.php' (include_path='.:') in /Users/logan/.composer/vendor/composer/autoload_real.php on line 66
I am trying to run quickstart-basic-master but got this error please give me solution
Warning: require(D:\xamp\htdocs\quickstart-basic-master\bootstrap/../vendor/autoload.php):
failed to open stream: No such file or directory in D:\xamp\htdocs\quickstart-basic-master\bootstrap\autoload.php on line 17
Fatal error: require():
Failed opening required 'D:\xamp\htdocs\quickstart-basic-master\bootstrap/../vendor/autoload.php' (include_path='.;D:\xamp\php\PEAR') in D:\xamp\htdocs\quickstart-basic-master\bootstrap\autoload.php on line 17
You have to run
composer install
so it creates your vendordirectory with all dependencies.