Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Uh oh, I think I broke my site. (http://www.mysidiaadoptables.com/forum/showthread.php?t=4402)

Hwona 02-17-2014 11:52 AM

Uh oh, I think I broke my site.
 
Sorry abou this yet another issue - I think I've broke my site again. I was attempting to edit the theme, but when I reloaded my site, this popped up:
Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file /home/wallie12/public_html/templates/compile/wrt53024c1dbd2e70.20765048' in /home/wallie12/public_html/inc/smarty/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 /home/wallie12/public_html/inc/smarty/sysplugins/smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile('/home/wallie12/...', '<?php /* Smarty...', Object(Template)) #1 /home/wallie12/public_html/inc/smarty/sysplugins/smarty_internal_templatebase.php(164): Smarty_Internal_Template->compileTemplateSource() #2 /home/wallie12/public_html/inc/smarty/sysplugins/smarty_internal_templatebase.php(374): Smarty_Internal_TemplateBase->fetch('template.tpl', NULL, NULL, NULL, true) #3 /home/wallie12/public_html/classes/class_frame.php(226): Smarty_Internal_TemplateBase->display('template.tpl') #4 /home/wallie12/public_html/classes/class_mysidia.php(449): Frame->render() #5 /home/wallie12/public_html/index.php(86): Mysidia->output() #6 /home/wallie12/public_html/ in /home/wallie12/public_html/inc/smarty/sysplugins/smarty_internal_write_file.php on line 44

squiggler 02-17-2014 04:44 PM

Don't worry, I am the same way. I'm sure the amazing coders here can help you out. In the future though, you might want to save a back-up before doing anything major. That way, you can always revert it.

Kyttias 02-17-2014 05:35 PM

What was the last thing you did, exactly? What were you trying to do?

When modifying anything it should always be done one step at a time, one line at a time. Save. View. Catastrophic failure? Undo. Save. Problem averted. If you don't know what caused the problem down to the wire, you're making modifications in sweeps that are too large. Undo things as you did them, in order, until it's working. That's the best general troubleshooting advice I can give, other than to keep backups!

IntoRain 02-17-2014 05:36 PM

Pretty much, with an error like that and you don't know what you messed with to cause it, the best way is to go back a version until it works again

Hwona 02-17-2014 08:51 PM

Re
 
Quote:

Originally Posted by squiggler (Post 29109)
Don't worry, I am the same way. I'm sure the amazing coders here can help you out. In the future though, you might want to save a back-up before doing anything major. That way, you can always revert it.

The funny thing is, I didn't change any code at all - I just changed the copyright year from 2013 to 2014. When it didn't work, I changed it back but...

squiggler 02-17-2014 11:13 PM

Are you sure that's the only thing you changed? How did you change it?

Hwona 02-18-2014 08:10 AM

Re
 
Quote:

Originally Posted by squiggler (Post 29114)
Are you sure that's the only thing you changed? How did you change it?

I just deleted 2013 and replaced it with 2014.
Edit: ok, I just realized that none of the other themes work either... I think it has something to do with the folder...

Hall of Famer 02-18-2014 08:18 AM

Empty the /compile folder and the themes will recompile, see if it works.

Hwona 02-18-2014 08:22 AM

Re
 
Quote:

Originally Posted by Hall of Famer (Post 29121)
Empty the /compile folder and the themes will recompile, see if it works.

Thanks, I tried it, but now I'm getting this:
Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'template.tpl'' in /home/wallie12/public_html/inc/smarty/sysplugins/smarty_internal_templatebase.php:127 Stack trace: #0 /home/wallie12/public_html/inc/smarty/sysplugins/smarty_internal_templatebase.php(374): Smarty_Internal_TemplateBase->fetch('template.tpl', NULL, NULL, NULL, true) #1 /home/wallie12/public_html/classes/class_frame.php(226): Smarty_Internal_TemplateBase->display('template.tpl') #2 /home/wallie12/public_html/classes/class_mysidia.php(449): Frame->render() #3 /home/wallie12/public_html/index.php(86): Mysidia->output() #4 /home/wallie12/public_html/index.php(90): IndexController::main() #5 {main} thrown in /home/wallie12/public_html/inc/smarty/sysplugins/smarty_internal_templatebase.php on line 127

Hall of Famer 02-18-2014 08:27 AM

Umm your theme does not have a template.tpl file? Did you remove or rename it?

Hwona 02-18-2014 08:31 AM

Re
 
Quote:

Originally Posted by Hall of Famer (Post 29123)
Umm your theme does not have a template.tpl file? Did you remove or rename it?

That's the weird thing - I changed the theme to the main one which has a tpl file for sure, aand this is still popping up.

Hall of Famer 02-18-2014 08:35 AM

Maybe your theme settings is wrong? What is the default theme in your table prefix.settings? And what is the theme used by the admin if you read from the table prefix.users? Note a typo can completely messes up your site, and the theme name is case-sensitive.

Hwona 02-18-2014 08:40 AM

Re
 
Quote:

Originally Posted by Hall of Famer (Post 29126)
Maybe your theme settings is wrong? What is the default theme in your table prefix.settings? And what is the theme used by the admin if you read from the table prefix.users? Note a typo can completely messes up your site, and the theme name is case-sensitive.

The default theme in settings is "main", but I can't seem to find anything theme related in prefix_users

Hall of Famer 02-18-2014 09:12 AM

Oh sorry, you need to look up the table prefix.users_options to see what the theme settings is for each user.

Hwona 02-18-2014 09:26 AM

Re
 
Quote:

Originally Posted by Hall of Famer (Post 29130)
Oh sorry, you need to look up the table prefix.users_options to see what the theme settings is for each user.

Thank you! That fixed it somewhat! *feels dumb* Now I just need to figure out what went wrong with the other theme...
Edit: do the template files have to have certain permissions? I have a file backup of the the theme when it worked, but it's still giving me errors...

Hwona 02-19-2014 06:58 AM

Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'template.tpl'' in /home/wallie12/public_html/inc/smarty/sysplugins/smarty_internal_templatebase.php:127 Stack trace: #0 /home/wallie12/public_html/inc/smarty/sysplugins/smarty_internal_templatebase.php(374): Smarty_Internal_TemplateBase->fetch('template.tpl', NULL, NULL, NULL, true) #1 /home/wallie12/public_html/classes/class_frame.php(226): Smarty_Internal_TemplateBase->display('template.tpl') #2 /home/wallie12/public_html/classes/class_mysidia.php(449): Frame->render() #3 /home/wallie12/public_html/index.php(86): Mysidia->output() #4 /home/wallie12/public_html/index.php(90): IndexController::main() #5 {main} thrown in /home/wallie12/public_html/inc/smarty/sysplugins/smarty_internal_templatebase.php on line 127

O.o It's back again... and now, I have nothing to compile to fix it.

Hall of Famer 02-19-2014 07:39 AM

Did you make some changes to the theme and template files this time?

Hwona 02-19-2014 04:15 PM

Re
 
Not to the template file. Theme, yes.
Edit: Okay... so it works when I'm logged on but not if I'm a guest? O.o


All times are GMT -5. The time now is 02:35 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.