Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2019-02-14 08:39:31

sibokker
Member
Registered: 2010-12-19
Posts: 27
Website

Error 404 Not found after update

Hi,

After I have updated Textpattern to version 4.7.2 on my website (assuraes.be) I get a 404 error saying ‘Unknown section’. When I want to go to assuraes.be/textpattern I get this error: Fatal error: Class ‘Textpattern\Admin\Theme’ not found in /customers/8/3/b/assuraes.be/httpd.www/textpattern/lib/txplib_theme.php on line 44

What is going wrong?

Offline

#2 2019-02-14 08:44:17

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,058
Website

Re: Error 404 Not found after update

sibokker wrote #316581:

After I have updated Textpattern to version 4.7.2 on my website (assuraes.be) I get a 404 error saying ‘Unknown section’. When I want to go to assuraes.be/textpattern I get this error: Fatal error: Class ‘Textpattern\Admin\Theme’ not found in /customers/8/3/b/assuraes.be/httpd.www/textpattern/lib/txplib_theme.php on line 44

What is going wrong?

Did you login on the admin side first? I think otherwise the update script does not run.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#3 2019-02-14 08:49:24

sibokker
Member
Registered: 2010-12-19
Posts: 27
Website

Re: Error 404 Not found after update

sibokker wrote #316581:

When I want to go to assuraes.be/textpattern I get this error: Fatal error: Class ‘Textpattern\Admin\Theme’ not found in /customers/8/3/b/assuraes.be/httpd.www/textpattern/lib/txplib_theme.php on line 44

I have tried to but assuraes.be/textpattern gives an error, see above.

Offline

#4 2019-02-14 09:18:08

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: Error 404 Not found after update

Hi,

please make sure that you have uploaded the whole package. Check in particular that /textpattern/vendors/Textpattern/Admin directory contains Theme.php file.

Offline

#5 2019-02-14 09:21:33

sibokker
Member
Registered: 2010-12-19
Posts: 27
Website

Re: Error 404 Not found after update

Thanks. I will check again.
Theme.php was uploaded in the correct directory.

Offline

#6 2019-02-14 10:19:09

sibokker
Member
Registered: 2010-12-19
Posts: 27
Website

Re: Error 404 Not found after update

In txplib_theme.php line 44 says ‘abstract class theme extends \Textpattern\Admin\Theme’ but I don’t find the directory Textpattern\Admin\Theme, only Textpattern\admin-themes and Textpattern\theme are present…

Can this cause the problem?

Offline

#7 2019-02-14 10:27:38

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: Error 404 Not found after update

sibokker wrote #316586:

In txplib_theme.php line 44 says ‘abstract class theme extends \Textpattern\Admin\Theme’ but I don’t find the directory Textpattern\Admin\Theme, only Textpattern\admin-themes and Textpattern\theme are present…

Can this cause the problem?

Absolutely, you need to upload all 4.7 directories.

Offline

#8 2019-02-14 10:39:13

sibokker
Member
Registered: 2010-12-19
Posts: 27
Website

Re: Error 404 Not found after update

I understand but that is the problem.
In version 4.7.2 Textpattern\lib\txplib_theme.php mentions ‘\Textpattern\Admin\Theme’ (line 44) but in the install pack I only find the directory ‘Textpattern\admin-theme’ and not ‘Textpattern\Admin\Theme’.

Last edited by sibokker (2019-02-14 10:39:52)

Offline

#9 2019-02-14 10:49:03

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: Error 404 Not found after update

It is in vendors subdirectory, but you shouldn’t upload files selectively anyway. Try to reupload the whole package.

Offline

#10 2019-02-14 10:56:56

sibokker
Member
Registered: 2010-12-19
Posts: 27
Website

Re: Error 404 Not found after update

Ok, but can I do this without breaking anything?
The documentation says I only have to change specific files (https://docs.textpattern.com/installation/upgrading-textpattern).

Offline

#11 2019-02-14 13:47:59

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: Error 404 Not found after update

Unless you have heavily customized your setup, you should be able to safely update (merge) the entire textpattern folder. Actually, 99% of new code go there, so keeping an old version is hazardous.

Offline

#12 2019-02-14 13:51:50

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

Re: Error 404 Not found after update

etc wrote #316596:

Unless you have heavily customized your setup, you should be able to safely update (merge) the entire textpattern folder. Actually, 99% of new code go there, so keeping an old version is hazardous.

+1 on what Oleg recommended.
What you will have to look out for the the config.php file which should remain as is.


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

Offline

Board footer

Powered by FluxBB