-
-
Notifications
You must be signed in to change notification settings - Fork 336
Description
LinkStack version
4.8.4
Description
After uploading the ZIP folder to my shared hosting webspace, I encounter the following error:
scandir(/usr/www/users/.../.../p/linkstack//assets/linkstack/images/): Failed to open directory: No such file or directory
I assumed this is because my linkstack instance does not run on the domain "root" but in a subfolder. I tried to work around that issue by creating a subdomain, making the linkstack instance accessible "like a domain root". However, also this did not change the behavior:
It looks like scandir
is searching in the wrong directory:
- Incorrect: /usr/www/users/{webspace_user}/{webspace_name}/p/linkstack//assets/linkstack/images/
- correct: {subdomain.domain.de}/assets/linkstack/images/
Am I overlooking something?
Thanks for your help in advance!
Best,
Felix
Details about your system
PHP 8.4.11
Laravel 9.52.18
How to reproduce
- Download ZIP
- Upload to shared hosting in a subfolder
- Open subfolder in Browser
- Create subdomain + HTTPS for it
- Open subdomain in Browser
Possible Solution
I tried setting APP_URL
in .env
but also this did not help.
I also tried to change line 6 in app/Functions/functions.php to $_SERVER['REQUEST_URI']
or similar, but no success.
Additional Context
No response