Solvedbagisto Impossible to create the root directory "".
✔️Accepted Answer
The following fixed it for me:
- shutdown artisan
- cd storage/app/
- unlink public
- startup artisan
When running php artisan storage:link
, it recreates the public directory as a symlink, which is pointing to itself.
Not running php artisan storage:link
won't create a symlink and fixes it (at least for me)
Other Answers:
First delete the PUBLIC folder/file from root/storage/app/ then delete STORAGE folder under root/publc, then first create PUBLIC folder in root/storage/app and then hit php artisan storage:link
. All done. enjoy
Problem is, the "storage/app/public" directory is a symlink to the directory that does not exist anymore. That's why you are getting this error. Please follow the following points to resolve this issue:
1: Remove existing symlink:
cd storage/app/public
unlink public
2: From the project's root directory run the following command:
php artisan storage:link
First remove these folders
/public/storage
/storage/app/public
Then run the following command
php artisan storage:link
This error message appeared for me two times,
First after adding the product category, the second one after adding a product and hit save on this route (/admin/catalog/products/edit/1), however the category and the product seem to be added successfully even after this error.
I'm working on Ubuntu 18.04 for the last version of composer and Bagisto, not sure if it's a bug or there is something wrong with my basic installation of the packages.
Already update the composer dependencies.
Update: it seems to be a problem whenever I try to upload an image to the application whether it is a product or a category.
Environment & details:
`
This is a short sleevs tshirt with rounded neck.
"A men t-shrit most suitable for medern youth style.
"`