Page 1 of 1

I broke my website... Class "override_template" not found

Posted: Sat Mar 30, 2024 2:26 am
by Portman
Hi,

I was doing an update to my website - to a template in override folder ... I thought I had everything set and good to go so I coppied the files over to the site (it is a dev site not a live site but I have been working on it a while).... It threw up some errors, so I thought - I'll just copy the original files over - go back to square one, and try again....

I copied my original files back over (just files in my template/override folder and a couple of others) and I am now getting this error - I'm hoping it is easy to fix otherwise i am up the creek...

Code: Select all

PHP Fatal error:  Uncaught Error: Class "override_template" not found in .../includes/system/versioned/1.0.8.4/template.php:30
Stack trace:
#0 .../includes/system/versioned/1.0.7.other/1.0.7.12/guarantor.php(17): Template->__construct()
#1 .../includes/classes/application.php(58): Guarantor::ensure_global('Template')
#2 .../includes/system/versioned/1.0.8.1/hooks.php(160): Application->set_session_language(Array)
#3 .../includes/application_top.php(30): hooks->generate('startApplicatio...')
#4 .../index.php(13): require('.../...')
#5 {main}
  thrown in .../includes/system/versioned/1.0.8.4/template.php on line 30
Any help would be apreciated

Re: I broke my website... Class "override_template" not found

Posted: Sat Mar 30, 2024 7:07 am
by heatherbell
Just a wild guess, do you still have the file /templates/override/includes/template.php in place? And is it uncorrupted? Its absence or corruption would produce that error.

Re: I broke my website... Class "override_template" not found

Posted: Tue Apr 02, 2024 8:40 am
by Portman
thanks @heatherbell

that helped me find the error!