Solved - Livewire removed from project and using one Ajax call + View::make on controller. Same functionality, no issue.
Livewire on shared hosting: file_exists(): open_basedir restriction in effect.
Hi, maybe someone of you had a similar issue - my site on shared hosting is working well, but not any view with livewire. Each of them returns me an Error:
file_exists(): open_basedir restriction in effect. File(/tmp/storage/bootstrap/cache/livewire-components.php) is not within the allowed path(s): (/data/web/virtuals/174984/virtual) (View: /data/web/virtuals/174984/virtual/www/subdom/books/resources/views/books/index.blade.php)
If I uncover the paths:
- /data/web/virtuals/174984/virtual/ is my hosting root
- /data/web/virtuals/174984/virtual/www/subdom/books/ is root of my application with livewire
So it is really interesting, that is not within the allowed path(s): (/data/web/virtuals/174984/virtual) which means, that laravel searchs it in hosting root, not in application root?
.htaccess, .env, everything I have setted up right as anything else works fine. Question is, why it tries to find livewire-components.php on some path, which is not part of my application's filesystem tree on shared hosting?
I tried to find it on local and it is located in /bootstrap/cache/livewire-components.php of my application's root. On hosting I have /bootstrap/cache permissions set to 777, which should work, but livewire-components.php is never created there. If I copy it there from local, error message i still the same.
I just tried to delete it on local and on page refresh it is created immediatelly, so there must be some problem with livewire paths definitions when it is on shared hosting, because it is not goiing to be generated there at all.
Do you have any idea?
Please or to participate in this conversation.