Linkstack installation fails on shared hosting & subdomain
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 25/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- PHP
- Estrelas
- 3.9k
- Forks
- 440
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de LinkStackOrg/LinkStack
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
LinkStackOrg/LinkStack#1014 · 2 comentários ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 20/100
LinkStackOrg/LinkStack#1011 ·
-
Dificuldade 3/5 Meio dia Facilidade para iniciantes 55/100
LinkStackOrg/LinkStack#1008 ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 62/100
LinkStackOrg/LinkStack#1007 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 44/100
LinkStackOrg/LinkStack#1003 · 1 comentário ·
Todas as issues de LinkStackOrg/LinkStack
Issues semelhantes
-
needs-triage Technical TODO
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
Piwigo/piwigo-docker#19 · 1 reação ·
-
[Store][SurrealDb] add(), query() and remove() fail with 403 on a fresh store instanceTalvez já em andamento @lazerg assumiu hoje. AbertaBug Status: Needs Review Store
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
请升级一下 docker 相关镜像到 CVE 修复版本Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 63/100
-
sync-en
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 86/100
Mantenedores costumam responder em até 1 dia