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: 1,715
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.

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: 3,354
Website

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.

Online

#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: 3,354
Website

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.

Online

#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: 3,354
Website

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.

Online

#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

Board footer

Powered by FluxBB