Page 1 of 1

[SOLVED] 404 error page, in a different design

Posted: Tue Mar 28, 2023 1:42 pm
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.

Re: 404 error page, in a different design

Posted: Tue Mar 28, 2023 8:37 pm
by wiz
Hello daopower, custom pages template should solve your requirement: https://github.com/WonderCMS/wondercms/ ... e-template.

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

Posted: Wed Mar 29, 2023 4:58 pm
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? :-)

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

Posted: Wed Mar 29, 2023 8:04 pm
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!

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

Posted: Thu Mar 30, 2023 9:36 pm
by daopower
Great!
Thanks a lot for the quick response to the question and good support :-)

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

Posted: Tue May 02, 2023 7:05 pm
by wiz
Fixed with latest WonderCMS 3.4.2 version. :)