Laravel-medialibrary: PHP Fatal Error Illuminate\Support\ServiceProvider::mergeConfigFrom()

Created on 7 Aug 2016  路  7Comments  路  Source: spatie/laravel-medialibrary

Hi there,

On production, I see the following error when running the phpunit tests to see where my problem is. Right now I can upload, media get's added to the database, but I do not see the file on my filesystem. The only lead that I have is the following error:

PHP Fatal error:  Illuminate\Support\ServiceProvider::mergeConfigFrom(): 
Failed opening required '/home/forge/loranto.com/vendor/spatie/laravel-medialibrary/src/src/../resources/config/laravel-medialibrary.php' (include_path='/home/forge/loranto.com/vendor/phpseclib/phpseclib/phpseclib:.:/usr/share/php') 
in /home/forge/loranto.com/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php on line 67

Most helpful comment

Looks like removing vendor dir and composer install did it for me.

All 7 comments

Ok seems to be solved. The error is gone after updating to 4.8.
But. any ideas why images do get added to the database, but the actual storing of the file does not go through. No error.

Where do you try to save the medias ?

Ok, locally it works when I have a symlink from the public folder to the storage folder:

media@ -> ../storage/media

Blegh.. I knew this was something simple like a typo. Changed it to the real folder.

media@ -> ../storage/app/public/media

Sorry for this. This webshop is taking me 12 hours a day and I might need to buy me a crate of beer and a rubberboat with a palmtree.

Palmtree

Haha, epic comment! 馃槀

How did you solve this? @xtrasmal

Looks like removing vendor dir and composer install did it for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eichgi picture eichgi  路  3Comments

swash13 picture swash13  路  3Comments

ideadx picture ideadx  路  4Comments

aaronfullerton picture aaronfullerton  路  4Comments

kickthemooon picture kickthemooon  路  4Comments