403 Error page not working after updating to CMSMS 2.2.22

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
webform
Power Poster
Power Poster
Posts: 514
Joined: Sat Nov 25, 2006 3:39 pm

403 Error page not working after updating to CMSMS 2.2.22

Post by webform »

When a user hits a MAMS protected page the internal CMSMS created 403 Error page is no longer displayed. Instead, it is the web host's own 403 Error page that is displayed.

I have filed a bug report: https://dev.cmsmadesimple.org/bug/view/12803
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1812
Joined: Wed Feb 25, 2009 4:25 am

Re: 403 Error page not working after updating to CMSMS 2.2.22

Post by DIGI3 »

I was not able to recreate this, so it could be something specific to your server environment. Make sure there's nothing related to error pages in your htaccess or similar, then try on a clean install. If it still happens, add more detail to the bug report (MAMS version, operating system, PHP version, etc.)
Not getting the answer you need? CMSMS support options
User avatar
webform
Power Poster
Power Poster
Posts: 514
Joined: Sat Nov 25, 2006 3:39 pm

Re: 403 Error page not working after updating to CMSMS 2.2.22

Post by webform »

I have now tried a completely clean installation of CMS Made Simple 2.2.22 with the same result.
If I set up a CMS Made Simple 403 error page, it is not displayed when I access a MAMS protected page. Instead, the host's 403 error page is displayed.
Test URL: https://lab.webform.dk/cmsms/index.php? ... ed-content

Code: Select all

Cms Version: 2.2.22
MAMS: 1.1.0
CMSMSExt: 1.5.1
SmartyExt: 1.3.0
phpversion: 8.3.25
Server Software: Apache
Server Api: litespeed
Server Os: Linux 4.18.0-553.70.1.lve.el8.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 8.0.43
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1812
Joined: Wed Feb 25, 2009 4:25 am

Re: 403 Error page not working after updating to CMSMS 2.2.22

Post by DIGI3 »

I can't recreate it with similar settings, so it's likely an htaccess rule (check in higher directories as they cascade) or something specific to this host or hosting environment. Does the same happen for 404 pages? I tested on your url and it looks like it's using the apache default.
Not getting the answer you need? CMSMS support options
User avatar
webform
Power Poster
Power Poster
Posts: 514
Joined: Sat Nov 25, 2006 3:39 pm

Re: 403 Error page not working after updating to CMSMS 2.2.22

Post by webform »

Yes the 404 error page does work: https://lab.webform.dk/cmsms/index.php?page=no-result
And I use the htaccess file that comes with CMS Made Simple without modifications or additions.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1975
Joined: Mon Jan 29, 2007 4:47 pm

Re: 403 Error page not working after updating to CMSMS 2.2.22

Post by Jo Morg »

@webform anything in the php error log? that may help us a bit.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1812
Joined: Wed Feb 25, 2009 4:25 am

Re: 403 Error page not working after updating to CMSMS 2.2.22

Post by DIGI3 »

Also:
-make sure you can see your 403 page (typically has the alias error403)
-check higher directories for htaccess and similar, they are cascading. This could include above the root directory, or even a level only your host can access on shared hosting.
Not getting the answer you need? CMSMS support options
Post Reply

Return to “CMSMS Core”