Linkstack installation fails on shared hosting & subdomain
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- PHP
- Star
- 3.9k
- Fork
- 440
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của LinkStackOrg/LinkStack
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
LinkStackOrg/LinkStack#1011 ·
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 55/100
LinkStackOrg/LinkStack#1008 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
LinkStackOrg/LinkStack#1007 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 44/100
LinkStackOrg/LinkStack#1003 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 56/100
LinkStackOrg/LinkStack#1002 ·
Tất cả issue của LinkStackOrg/LinkStack
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
MagnaCapax/PMSS#1142 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug 🐛
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
netalertx/NetAlertX#1856 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug Status: Needs Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
feature good first issue html mcv php
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
lorisleiva/laravel-docker#166 ·