[SOLVED] 404 error page, in a different design

Ask for help or provide support to other members.
Post Reply
daopower
Posts: 4
Joined: Tue Mar 28, 2023 1:11 pm

[SOLVED] 404 error page, in a different design

Post by daopower »

Greetings all.

First of all, I want to say thank you very much for a great CMS. WonderCMS is very fast.

Perhaps someone has encountered how to create a 404 error page, in a different design? Tried this solution https://github.com/WonderCMS/wondercms/ ... t-404-page

But it only allows me to change the content but does not allow me to make the 404 page design different from the other pages.
User avatar
wiz
Posts: 749
Joined: Sat Oct 30, 2010 12:23 am

Re: 404 error page, in a different design

Post by wiz »

Hello daopower, custom pages template should solve your requirement: https://github.com/WonderCMS/wondercms/ ... e-template.
daopower
Posts: 4
Joined: Tue Mar 28, 2023 1:11 pm

Re: [SOLVED] 404 error page, in a different design

Post by daopower »

Good afternoon
Thank you so much for your reply!

Actually this option is also tried already
Created page 404
example.com/404
Created a 404.php file

But only on the page
example.com/404 this design applies

on all other versions of the 404 page.
like

example.com/123-404
example.com/abc404

and other non-existent pages use the standard template
theme.php

I haven't figured out how to get the 404.php template to be applied to all non-existent pages. Are there any possible solutions? :-)
User avatar
wiz
Posts: 749
Joined: Sat Oct 30, 2010 12:23 am

Re: [SOLVED] 404 error page, in a different design

Post by wiz »

No worries, thanks for getting back with more information.

What you're explaining makes perfect sense and you've actually found a bug. It's only looking for the 404.php template instead of also checking if the response is 404 and then serve the custom 404.php page.

I've opened a GitHub issue and it should be tackled with the next release of WonderCMS.

What an awesome find!
daopower
Posts: 4
Joined: Tue Mar 28, 2023 1:11 pm

Re: [SOLVED] 404 error page, in a different design

Post by daopower »

Great!
Thanks a lot for the quick response to the question and good support :-)
User avatar
wiz
Posts: 749
Joined: Sat Oct 30, 2010 12:23 am

Re: [GITHUB ISSUE REPORTED] 404 error page, in a different design

Post by wiz »

Fixed with latest WonderCMS 3.4.2 version. :)
Post Reply