Linkstack installation fails on shared hosting & subdomain
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- PHP
- スター
- 3.9k
- フォーク
- 440
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
LinkStackOrg/LinkStack のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
LinkStackOrg/LinkStack#1014 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
LinkStackOrg/LinkStack#1011 ·
-
難易度 3/5 半日 初心者へのやさしさ 55/100
LinkStackOrg/LinkStack#1008 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
LinkStackOrg/LinkStack#1007 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 44/100
LinkStackOrg/LinkStack#1003 · コメント 1 件 ·
LinkStackOrg/LinkStack の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 3 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
PHP SDK drops the API path prefix when a custom base URL has no trailing slash対応中かも @Winoren が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
langgenius/dify#44568 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信