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

Open to all! Ask other shopowners for help.
Post Reply
User avatar
Portman
Contributor
Posts: 158
Joined: Mon Mar 08, 2021 1:04 am
Phoenix Version: v1.0.8.20
Has thanked: 29 times
Been thanked: 4 times

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

Post 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


Join The Code Co-op to get access to your library in the Code Co-op Forum
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

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

Post 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.
User avatar
Portman
Contributor
Posts: 158
Joined: Mon Mar 08, 2021 1:04 am
Phoenix Version: v1.0.8.20
Has thanked: 29 times
Been thanked: 4 times

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

Post by Portman »

thanks @heatherbell

that helped me find the error!


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply