Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-12-04 14:35:03

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 244
Website

Class 'theme' not found on upgrade

Hello, I just overwritten my 4.5.5 files with 4.6.2, and I get this Class ‘theme’ not found on loggin in to the admin.
Thanks for any suggestion.

Offline

#2 2017-12-05 00:11:15

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,458
Website

Re: Class 'theme' not found on upgrade

The Class 'theme' not found usually means some file hasn’t uploaded properly or your version of PHP is too low to understand our class loader. Can you please verify both these points?

Since it’s the first thing that Txp does, you won’t get anywhere – not even the login screen – without access to a theme, so if the class loader is borked in some way, you’re stuck. Did you log out before upgrading? Did you see the login screen at all after the upgrade?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2018-09-06 00:55:44

anudimas
New Member
Registered: 2018-09-06
Posts: 5

Re: Class 'theme' not found on upgrade

What are the steps to fix this problem?

Offline

#4 2018-09-06 09:34:25

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,458
Website

Re: Class 'theme' not found on upgrade

First, clear your Txp cookies then try re-uploading the files from the Textpattern 4.7.1 zip archive. There’s a chance one or two didn’t upload correctly.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#5 2018-09-06 09:51:27

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,152

Re: Class 'theme' not found on upgrade

Anudimas has left several posts about the same problem last night. One of the posts reveals s/he’s smd_admin_themes installed, while in a third topic anudimas posted in you recommend to jpdupont to uninstall that plugin and optionally to try an updated version of the plugin. Might that be another possible root of the problem?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#6 2018-09-06 10:26:40

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,458
Website

Re: Class 'theme' not found on upgrade

uli wrote #313854:

smd_admin_themes installed

Well spotted. Yes, that would most likely kill things so disabling it and then trying a newer version is definitely a good idea.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#7 2018-09-07 00:20:07

anudimas
New Member
Registered: 2018-09-06
Posts: 5

Re: Class 'theme' not found on upgrade

Bloke wrote #313853:

First, clear your Txp cookies then try re-uploading the files from the Textpattern 4.7.1 zip archive. There’s a chance one or two didn’t upload correctly.

will the data that is on the server be lost if we try to re-upload the textpatttern 4.7.1?

image data in particular. can we restore the data?

Offline

#8 2018-09-07 04:39:11

jakob
Moderator
From: Germany
Registered: 2005-01-20
Posts: 3,159
Website

Re: Class 'theme' not found on upgrade

Be careful:

  • leave the /images and /files folders on your site and don’t overwrite them.
  • take care not to overwrite /textpattern/config.php as you’ll need that again.
  • If you happen to have any special settings in your .htaccess file, you should also make a copy of that so that you can reinsert those settings after upgrading (note: you may need to set “show hidden files” in your ftp program to see .htaccess).
  • And if you have any other special non-standard installations, you need to make sure you retain those.

It’s always wise to make a copy first for safekeeping – that can be as simple as duplicating the folder on your server with another name. There’s some more information on upgrading available in the docs.


TXP Builders – finely-crafted code, design and txp

Offline

#9 2018-09-07 09:56:56

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,152

Re: Class 'theme' not found on upgrade

anudimas wrote #313885:

will the data that is on the server be lost if we try to re-upload the textpatttern 4.7.1?

image data in particular. can we restore the data?

Your wariness is a helpful attitude. For this reason I’d advise to go the plugin route first, even if that means installing another plugin first, ied_plugin composer. If that doesn’t fix your problem you can always try syncing the contents of the installation zip with your installation.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB