LinkStackOrg / LinkStack

LinkStack - the ultimate solution for creating a personalized & professional profile page. Showcase all your important links in one place, forget the limitation of one link on social media. Set up your personal site on your own server with just a few clicks.
https://linkstack.org
GNU Affero General Public License v3.0
2.41k stars 243 forks source link

custom theme doesn't work on linkstack #819

Open darongtt opened 1 month ago

darongtt commented 1 month ago

LinkStack version

4.8.0

Description

I wanna upload new theme, and when I wanna do it through background, it keep said "413 Request Entity Too Large", even if I modified the nginx conf file and php.ini file and enlarge the file size, so I change another way to upload it, I just directly download the theme zip file and then upload to the server to finalshell, and i upload it to /var/www/html/linkstack/theme and then I just unzip it, and I select it and it keep showing this below image it said this line @if(theme('enable_custom_code') == "true" and theme('enable_custom_head') == "true" and env('ALLOW_CUSTOM_CODE_IN_THEMES') == 'true')@include($GLOBALS['themeName'] . '.extra.custom-head')@endif occurs error

Details about your system

php 8.2 I tried debian 11 and ubuntu 22.04 this situation occurs anyway

How to reproduce

i use it like a normal user and it produce the problem

Possible Solution

No response

Additional Context

No response

JulianPrieber commented 1 month ago

Remove the version number from stargazer-1.9. Theme folders cannot contain dots.

Please rename the folder to just stargazer.

xyychenchen commented 1 month ago

Remove the version number from stargazer-1.9. Theme folders cannot contain dots.

Please rename the folder to just stargazer.

oh my god, that simple? i love you man, you reply iis so intime

xyychenchen commented 1 month ago

it really kills me to think why is that

JulianPrieber commented 1 month ago

When loading the files the dots indicate the directory structure. Directory names are separated by dots. It tried to lead your theme from the "4" directory in your theme which doesn't exist.