Linkstack installation fails on shared hosting & subdomain
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 25/100
Piste de recherche
Start with line 6 of app/Functions/functions.php, which the issue identifies as a possible source of the path handling, and trace how the assets/linkstack/images/ directory path is formed for a subfolder or subdomain installation. Reproduce the ZIP installation steps on shared hosting if possible; done means the image directory is found at the correct location in both setups.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
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
- Langage dominant
- PHP
- Étoiles
- 3.9k
- Forks
- 440
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de LinkStackOrg/LinkStack
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
LinkStackOrg/LinkStack#1011 ·
-
Difficulté 3/5 Une demi-journée Accessibilité débutants 55/100
LinkStackOrg/LinkStack#1008 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 62/100
LinkStackOrg/LinkStack#1007 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 44/100
LinkStackOrg/LinkStack#1003 · 1 commentaire ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 56/100
LinkStackOrg/LinkStack#1002 ·
Toutes les issues de LinkStackOrg/LinkStack
Issues similaires
-
0.kind: enhancement 9.needs: package (update)
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
NixOS/nixpkgs#577156 · 3 réactions ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
MagnaCapax/PMSS#1142 · 1 commentaire ·
Les mainteneurs répondent en général sous 3 jours
-
Native-arrow select renders a second Jetpack chevronPeut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Automattic/static-site-importer#2294 ·
Les mainteneurs répondent en général sous 1 jour
-
bug 🐛
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
netalertx/NetAlertX#1856 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Bug Status: Needs Triage
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour