Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2011-02-07 19:46:01
- castanet
- Member
- From: Oxford
- Registered: 2005-03-19
- Posts: 97
[SOLVED] remora_theme error message
I upgraded to 4.30 but when I look at the admin – preference – advanced tab I get this error message:
Fatal error: Cannot redeclare class remora_theme in /home/www/mydomain.co.uk/textpattern/theme/remora/remora.php on line 141
Anyone help?
Offline
Re: [SOLVED] remora_theme error message
What’s the PHP version, and is open_basedir
enabled (check diagnostics to find out)?
Code is topiary
Offline
#3 2011-02-07 22:18:36
- castanet
- Member
- From: Oxford
- Registered: 2005-03-19
- Posts: 97
Re: [SOLVED] remora_theme error message
PHP version: 5.2.13
Can’t see open_basedir in diagnostics…
Is this relevant?
#RewriteBase /relative/web/path/
Offline
Re: [SOLVED] remora_theme error message
castanet wrote:
PHP version: 5.2.13
OK, thanks. I don’t know of any relevant bugs in this version.
Can’t see open_basedir in diagnostics…
Just means it’s not enabled. I had asked because there may be some bugs related to this when it is enabled.
Is this relevant?
#RewriteBase /relative/web/path/
No, that’s standard Txp .htaccess.
The error is because the file (remora.php) is being included twice somehow. Is there any more error text, or did you quote everything?
Code is topiary
Offline
#5 2011-02-08 08:11:03
- castanet
- Member
- From: Oxford
- Registered: 2005-03-19
- Posts: 97
Re: [SOLVED] remora_theme error message
That’s the whole message
Offline
Re: [SOLVED] remora_theme error message
Do you have any admin themes other than classic and remora installed?
Code is topiary
Offline
#7 2011-02-08 14:40:35
- castanet
- Member
- From: Oxford
- Registered: 2005-03-19
- Posts: 97
Re: [SOLVED] remora_theme error message
No. Those are the only two
Offline
Re: [SOLVED] remora_theme error message
“Line 141” suggests that you still have the 4.2.0 version of textpattern/index.php. Which makes me wonder if you have successfully upgraded all files.
Code is topiary
Offline
#9 2011-02-08 17:26:08
- castanet
- Member
- From: Oxford
- Registered: 2005-03-19
- Posts: 97
Re: [SOLVED] remora_theme error message
textpattern/index.php says:
$HeadURL: https://textpattern.googlecode.com/svn/releases/4.3.0/source/textpattern/index.php $
$LastChangedRevision: 3451 $
Offline
Re: [SOLVED] remora_theme error message
That is indeed the current version. It contains these lines:
141| $inc = txpath . '/include/txp_'.$event.'.php';
142| if (is_readable($inc))
143| include($inc);
The 4.2.0 version of the file has the same code, but two lines earlier. Hence the include()
happens on line 141 in version 4.2.0. An include()
statement could generate this kind of “Cannot redeclare” error. There’s no way the 4.3.0 line 141 could. So I suspect an opcode cache holding on to the old version.
Code is topiary
Offline
#11 2011-02-08 17:58:01
- castanet
- Member
- From: Oxford
- Registered: 2005-03-19
- Posts: 97
Re: [SOLVED] remora_theme error message
Thanks jsoo, er, so what should I do?
Offline
Re: [SOLVED] remora_theme error message
castanet wrote:
Thanks jsoo, er, so what should I do?
I agree with Jeff. Looks like a cache issue. If that indeed is the issue, try to clear the accelerator’s bytecode cache. How to do that depends on what accelerator is used.
If you are on shared hosting, you should contact your hosting provider and tell them that there could be an issue with a PHP accelerator; PHP could be using cached code from old files.
Offline