Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Linkstack installation fails on shared hosting & subdomain

Abierto
#934 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
laravel, php
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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:

Image

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
  1. Download ZIP
  2. Upload to shared hosting in a subfolder
  3. Open subfolder in Browser
  4. Create subdomain + HTTPS for it
  5. 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

Lenguaje dominante
PHP
Estrellas
3.9k
Forks
440
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de LinkStackOrg/LinkStack

Todos los issues de LinkStackOrg/LinkStack

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.