Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-07-07 21:06:54

benbru
New Member
Registered: 2011-07-07
Posts: 5

Failing to open the Classic Admin theme

Hi!

I updated TXP in May, but could not get in to the admin side. I came back to the problem tonight, but can’t get round the issue. When I visit <site>/textpattern, the message is:

cannot_instantiate_theme: classic, classic_theme, /htdocs/cw/textpattern/theme/classic/classic.php

I have re-installed the whole directory and refreshed but still have the same issue. I understand that if an admin-side theme fails, it would fall back to classic, but what happens that that doesn’t work?!

Any help/pointers would be appreciated.

Ben

Offline

#2 2011-07-07 22:34:48

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Failing to open the Classic Admin theme

Just to clarify, your textpattern directory is within another directory called /cw/ is that correct?

/htdocs/ is usually the root directory where textpattern resides.

Last edited by philwareham (2011-07-07 22:35:32)

Offline

#3 2011-07-08 07:01:17

benbru
New Member
Registered: 2011-07-07
Posts: 5

Re: Failing to open the Classic Admin theme

Hi Phil: yes, the site is under cw, and TXP is sat under textpattern within that. The front-end of the site still works; so I know textpattern is running!

Offline

#4 2011-07-08 19:02:56

benbru
New Member
Registered: 2011-07-07
Posts: 5

Re: Failing to open the Classic Admin theme

bump: any suggestions anyone?

Offline

#5 2011-07-08 19:11:13

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,258
Website GitHub Mastodon Twitter

Re: Failing to open the Classic Admin theme

Do your diagnostics show anything?

Did you try reloading the theme just in case there was a corruption in the upload the 2nd time round?

Did you try uploading the index files too?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#6 2011-07-08 20:13:16

benbru
New Member
Registered: 2011-07-07
Posts: 5

Re: Failing to open the Classic Admin theme

Thanks, colak…
colak wrote:

Do your diagnostics show anything?

I can’t get in to the admin side at all to see them or even to turn them on! There’s nothing at all in the source for the error page apart from the line above

Did you try reloading the theme just in case there was a corruption in the upload the 2nd time round?

Yep, have just tried again…

Did you try uploading the index files too?

…and I included everything in the theme directory

Regards

Ben

Offline

#7 2011-07-08 20:26:04

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: Failing to open the Classic Admin theme

Is the directory readable ? I mean not only present, but also if access rights are properly set.

Offline

#8 2011-07-08 20:42:57

benbru
New Member
Registered: 2011-07-07
Posts: 5

Re: Failing to open the Classic Admin theme

It’s currently 0644…

Offline

#9 2011-07-08 21:45:13

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Failing to open the Classic Admin theme

Hmm, no idea & never heard that before.
Just some very foggy suggestions (no order intended):

  • check: http://<insert your domain>/textpattern/index.php?event=diag – Can/Should only work if cookies txp_login, txp_login_public are stored in your browser.
  • check: can you browser load http://<insert your domain>/textpattern/license.txt
  • check: can you browser load http://<insert your domain>/textpattern/theme/classic/carver.gif or screenshot.png or textpattern.css
  • browser: clean cache
  • browser: delete cookies – There are normally two for the backend: txp_login, txp_login_public
  • clean install: create another directory, download a fresh Textpattern and copy all new files to the new /textpattern directory
  • server: check all paths
  • server: try absolute full server paths instead of relative paths

Very obscure :(

Last edited by merz1 (2011-07-08 21:49:10)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#10 2011-07-09 06:07:03

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,258
Website GitHub Mastodon Twitter

Re: Failing to open the Classic Admin theme

benbru wrote:

I can’t get in to the admin side at all to see them or even to turn them on! There’s nothing at all in the source for the error page apart from the line above

Did you try resetting the password?

from the FAQs

With phpMyAdmin, or at the MySQL command prompt, run the following query:

update txp_users set pass=password(lower('pass')) where name='user';

..where pass is the new password, and user is the login username.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#11 2011-07-09 07:14:48

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,945
Website GitHub

Re: Failing to open the Classic Admin theme

benbru wrote:

I understand that if an admin-side theme fails, it would fall back to classic

Sort of: it depends how serious the error is. But in this case, it is classic that’s failing so it has nowhere else to go!

If site.com/cw/textpattern (admin-side) is failing but site.com/cw (public side) is working then that is a very strange set of affairs. It does smack of permissions or .htaccess. Have you tried increasing the permissions of the theme directory (at minimum) or the entire cw/textpattern dir, just to prove it’s not some change your hoster has made?

Past that I can’t think of what would make the entire admin side fail. I have a subdir install that I just upgraded from 4.0.8 to 4.4.1 (I tested it in case we’d missed something for upgraders of subdirs) but it worked first time. Cant figure off the top of my head why a subdir install would fail on your server. A puzzler for sure.

EDIT: just for the record, what version of PHP / MySQL / Apache are you using?

Last edited by Bloke (2011-07-09 07:16:29)


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

#12 2011-07-09 07:14:52

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: Failing to open the Classic Admin theme

benbru a écrit:

It’s currently 0644…

That’s it. chmod +x should resolve the issue.

Offline

Board footer

Powered by FluxBB