LinkStack icon indicating copy to clipboard operation
LinkStack copied to clipboard

custom theme doesn't work on linkstack

Open darongtt opened this issue 1 year ago • 4 comments

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

darongtt avatar Sep 25 '24 08:09 darongtt

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

Please rename the folder to just stargazer.

JulianPrieber avatar Sep 25 '24 09:09 JulianPrieber

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 avatar Sep 25 '24 09:09 xyychenchen

it really kills me to think why is that

xyychenchen avatar Sep 25 '24 09:09 xyychenchen

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.

JulianPrieber avatar Sep 25 '24 09:09 JulianPrieber

It seems that all the themes listed on linkstack.com have version numbers on the zip filenames and the folder contained within. Why is this the default format for those releases if the theme uploader is not handling this???

I have been fighting my new install trying to figure this out...

Fireant456 avatar Dec 03 '24 10:12 Fireant456