Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: Shades. on September 28, 2022, 06:28:45 PM

Title: New Theme/Need help with an error message
Post by: Shades. on September 28, 2022, 06:28:45 PM
So I'm working on a new theme for my own site, thought I was done with it lol but when I added to my site i get the following errors:

QuoteError
Type of error
General
Error message
The file at "/home/******/public_html/Themes/*******/scripts/minified_63b339d181fa2351002214d87bc1a91d.js" could not be created. Please make sure the parent directory has the appropriate permissions.
URL of page causing the error
https://******.com/?action=admin;area=theme;c1d050457aef=b5902161a7fb26f7c2587e814a97b399;sa=admin

Backtrace information
#0: custMinify()
Called from /home/******/public_html/Sources/Subs.php on line 4771
#1: template_javascript()
Called from /home/******/public_html/Themes/******/index.template.php on line 125
#2: template_html_above()
Called from /home/******/public_html/Sources/Load.php on line 2810
#3: loadSubTemplate()
Called from /home/******/public_html/Sources/Subs.php on line 4543
#4: template_header()
Called from /home/******/public_html/Sources/Subs.php on line 4150
#5: obExit()
Called from /home/******/public_html/index.php on line 197

Would this be because I have mods installed and need to reinstall the mods to this new theme or what?
Title: Re: New Theme/Need help with an error message
Post by: TwitchisMental on September 28, 2022, 06:34:29 PM
Yes you would need to uninstall your mods, then install the theme, and reinstall the mods.

With that said though, the first error seems to be related to a file permission issue while creating a minified javascript file.
Title: Re: New Theme/Need help with an error message
Post by: Shades. on September 28, 2022, 06:42:58 PM
Quote from: TwitchisMental on September 28, 2022, 06:34:29 PMWith that said though, the first error seems to be related to a file permission issue while creating a minified javascript file.
Thing is, it only happens when I install this particular theme on my main site. No problems or errors when I install it on my fresh SMF 2.1.2 test site!
Title: Re: New Theme/Need help with an error message
Post by: Shades. on September 28, 2022, 06:44:29 PM
Quote from: TwitchisMental on September 28, 2022, 06:34:29 PMYes you would need to uninstall your mods, then install the theme, and reinstall the mods.
I new I would eventually have to anyways, just wondering if that's what was causing the error or not before I go thru all that!?
Title: Re: New Theme/Need help with an error message
Post by: Shades. on September 28, 2022, 06:54:03 PM
I just tried installing another theme and got the same errors, so something wrong in my forum files I suppose! I'll do a fresh reinstall of forum and mods later and post back. ;)
Title: Re: New Theme/Need help with an error message
Post by: Diego Andrés on September 28, 2022, 07:05:44 PM
The error appears to be from the minimize file setting.
Did you package minified files with your theme? That might be the issue.
Title: Re: New Theme/Need help with an error message
Post by: Shades. on September 28, 2022, 07:09:52 PM
Quote from: Diego Andrés on September 28, 2022, 07:05:44 PMThe error appears to be from the minimize file setting.
Did you package minified files with your theme? That might be the issue.
No I have it turned off on the site I use to create themes. I checked the zip file anyways to make sure and there are no minified files in it.
Title: Re: New Theme/Need help with an error message
Post by: Illori on September 28, 2022, 07:11:33 PM
you dont have the correct permissions on the minified folder, you need to make sure the server can write to that folder.
Title: Re: New Theme/Need help with an error message
Post by: Shades. on September 28, 2022, 07:24:23 PM
Quote from: Illori on September 28, 2022, 07:11:33 PMyou dont have the correct permissions on the minified folder, you need to make sure the server can write to that folder.
Ok...I see the problem lol! ::) I deleted the "scripts" folder because I thought it would default to the default themes "scripts" folder. I added the folder back and no errors now.

Guess I need to go back and add it back to my other themes now too!

Marking solved 8)
Title: Re: New Theme/Need help with an error message
Post by: Shades. on September 28, 2022, 08:54:24 PM
Here is a preview if anyone was curious... O:)

(I'm hooked on black, red and yellow) ;D

home.png