Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom theme doesn't work on linkstack #819

Closed
darongtt opened this issue Sep 25, 2024 · 5 comments
Closed

custom theme doesn't work on linkstack #819

darongtt opened this issue Sep 25, 2024 · 5 comments

Comments

@darongtt
Copy link

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
Copy link
Member

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

Please rename the folder to just stargazer.

@xyychenchen
Copy link

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
Copy link

it really kills me to think why is that

@JulianPrieber
Copy link
Member

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.

@Fireant456
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants