News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

New Theme/Need help with an error message

Started by Shades., September 28, 2022, 06:28:45 PM

Previous topic - Next topic

Shades.

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?
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

TwitchisMental

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.

Shades.

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!
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

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!?
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

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. ;)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Diego Andrés

The error appears to be from the minimize file setting.
Did you package minified files with your theme? That might be the issue.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Shades.

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.
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Illori

you dont have the correct permissions on the minified folder, you need to make sure the server can write to that folder.

Shades.

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)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

Here is a preview if anyone was curious... O:)

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

You cannot view this attachment.
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Advertisement: