Autoload error on uploading laravel project on github - laravel

I created basic app on laravel with composer create-project laravel/laravel example-app and move .htaccess and index.php to the correct path.
When I send the zipped project to my friend, the project works (he host this project only on mamp). When he receives this project via github, he gets an error:
Warning: require(/Applications/MAMP/htdocs/test1/testmain/vendor/autoload.php): Failed to open stream: No such file or directory in /Applications/MAMP/htdocs/test1/testmain/index.php on line 34
Fatal error: Uncaught Error: Failed opening required '/Applications/MAMP/htdocs/test1/testmain/vendor/autoload.php' (include_path='.:/Applications/MAMP/bin/php/php8.2.0/lib/php') in /Applications/MAMP/htdocs/test1/testmain/index.php:34 Stack trace: #0 {main} thrown in /Applications/MAMP/htdocs/test1/testmain/index.php on line 34
I tried to move the project on folder. I mean .gitignore is near folder of laravel app, but it didn't help.

Related

Laravel file put contents failed to open stream operation not supported

This project run well in xampp but when move it to ubuntu apache2, I get this error message. Is not a permission problem. If I put the dd helper at end blade file, it load the page correctly.
ErrorException
file_put_contents(/run/user/1000/gvfs/smb-share:server=cabrita-virtualbox.local,share=site/galeria/storage/framework/sessions/3RXOohAHEL8WhCloIrnEzP9VsAgjRF2CFtwVcDKA): failed to open stream: Operation not supported
http://127.0.0.1:8000/
image_error

laravel uploading project on cpanel is not running

I am deploying laravel project on cpanel but i get error i am uploading folder in root and public folder content move into public_html/demo4 folder. I get error 500 error but when i am moves public folder content to public_html folder it run. is any changes in filesystem.php. I am getting error as
[27-Jan-2021 10:04:20 Etc/GMT] PHP Warning: require(/home/indextechno/public_html/demo4/../real/vendor/autoload.php): failed to open stream: No such file or directory in /home/indextechno/public_html/demo4/index.php on line 24
[27-Jan-2021 10:04:20 Etc/GMT] PHP Fatal error: require(): Failed opening required '/home/indextechno/public_html/demo4/../real/vendor/autoload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/indextechno/public_html/demo4/index.php on line 24

Fatal error: Uncaught Error: Call to undefined function wp_unregister_GLOBALS() when upgrading to 5.5

I have WordPress running on Windows 10 with IIS.
While upgrading WordPress to 5.5 this morning I received the following error:
PHP Fatal error: Uncaught Error: Call to undefined function wp_unregister_GLOBALS() in C:\inetpub\wwwroot\wordpress\wp-settings.php:70 Stack trace: #0 C:\inetpub\wwwroot\wordpress\wp-config.php(92): require_once() #1 C:\inetpub\wwwroot\wordpress\wp-load.php(37): require_once('C:\inetpub\wwwr...') #2 C:\inetpub\wwwroot\wordpress\wp-admin\admin.php(34): require_once('C:\inetpub\wwwr...') #3 C:\inetpub\wwwroot\wordpress\wp-admin\index.php(10): require_once('C:\inetpub\wwwr...') #4 {main} thrown in C:\inetpub\wwwroot\wordpress\wp-settings.php on line 70
This was a very easy fix. Since my installation was local I just copied all the files and directories located in the WordPress 5.5 upgrade folder (in my case it was C:\inetpub\wwwroot\wordpress\wp-content\upgrade\wordpress-5.5-no-content-cIBdh3\wordpress) to the root of the site (in my case C:\inetpub\wwwroot\wordpress) overwriting the file already there.
Very simple fix. I guess the installation hit something while it was copying or timedout, who knows. I'm sure you can do the same thing by FTPing to your site if you are hosting your site remotely.
i am updating to 5.5 in my hostiing and i got this problem, the solution is You should upload all and folder file update except wp-content but it depends

How to fix " No such file or directory"error when I access to the home page

I downloaded a laravel project from a shared hosting and I want to edit him in my localhost but when I type out the home adress:
localhost:8000/
it shows me those two errors :
Warning: require_once(C:\Users\Rafaa\Downloads\Compressed.idea/public/index.php): failed to open stream: No such file or directory in C:\Users\Rafaa\Downloads\Compressed.idea\server.php on line 21
Fatal error: require_once(): Failed opening required 'C:\Users\Rafaa\Downloads\Compressed.idea/public/index.php' (include_path='C:\xampp\php\PEAR') in C:\Users\Rafaa\Downloads\Compressed.idea\server.php on line 21
When you clone or download a project from somewhere, there may be a case that many dependencies like codes or library files are missing. To solve this
Open the terminal
Go to the directory where the project folder is situated.
RUN composer install
If it still does not work,
RUN composer update
That should do the trick.

Connection problems in Laravel 5.7

Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
Fatal error: Unknown: Failed opening required 'C:\xampp\htdocs\Laravel\Blog\server.php' (include_path='C:\xampp\php\PEAR') in Unknown on line 0
Someone knows, why did this happen?
In your project folder, the server.php file is missing so you got this error
The solution will to create another project then copy the newly created server.php this will solve it.
Another Solution is:
Open the link: https://github.com/laravel/laravel/blob/master/server.php
Copy all code
Open Notepad and paste your copy code
save Notepad file and set name server.php
Copy the server.php file and paste it inside your Laravel project
Run your project again in browser Now you will not get an error and the Laravel project will work properly.

Resources