Server : Shared Host
the package well wore in locally but myserver is return folling error
(1/1) ErrorException
readlink(): Invalid argument
at readlink('/home/u122893056/public_html/public/storage')in VoyagerServiceProvider.php (line 170)
my file manager path is staring from u122893056/public_html/public/storage
but '/home/u122893056/public_html/public/storage' is start from home
You have to provide a bit more information, like the version fields from the issue templates.
How did you upload everything to your server?
I'm having the same issue.
Description:
This only happens on the server, locally everything is working.
Here is my error screen

Steps To Reproduce:
Updated code on server, while updating voyager on server from 1.0.10 => 1.0.16
Would it work to use realpath() instead of readlink()?
I had the same issue. Changing readlink to realpath fixed the problem.
Thanks ikanc it works!!!! Buth I donth understand why this happends???? I`m working with a team and is the first time it happens, I change de readpath to realpath as you say, buth this will affect my team mates???
@Garymarena if you change it locally, it will only affect you. However, next time that composer will pull a new version, it would be overwritten.
Changing it to realpath does not really fix the problem, it just passes the condition.
You could basically put every function which returns a bool there.
I submitted a fix for this
Closed by #2891
I had the same issue and the way I fixed it was to delete the storage folder from the public folder and used php artisan storage:link to remake the symlink and I could visit the Admin dashboard without the same issue again. Changing the code to realpath to make it work now, you will still be affected after an update since that is not the real cause. My public folder is still as default as laravel has it, just that I used .htaccess to link it to my domain so I used storage:link without any issues.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.
Most helpful comment
I had the same issue and the way I fixed it was to delete the storage folder from the public folder and used
php artisan storage:linkto remake the symlink and I could visit the Admin dashboard without the same issue again. Changing the code to realpath to make it work now, you will still be affected after an update since that is not the real cause. My public folder is still as default as laravel has it, just that I used .htaccess to link it to my domain so I usedstorage:linkwithout any issues.