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: 516
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: 516
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: 516
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
User avatar
webform
Power Poster
Power Poster
Posts: 516
Joined: Sat Nov 25, 2006 3:39 pm

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

Post by webform »

Unfortunately, the log I have access to via the control panel only shows the error number and the URL of the page that is failing.

And yes, I can preview the error page: https://lab.webform.dk/cmsms/index.php?page=error403

I have tested 8 separate sites that all worked before the update, where my 403 error page contained the login to the site in question. There have been no changes to the htaccess files on the sites in question.

There is no higher directories with a htaccess file!
User avatar
chrisbt
Dev Team Member
Dev Team Member
Posts: 205
Joined: Sun Sep 05, 2010 6:11 am

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

Post by chrisbt »

When I click on https://lab.webform.dk/cmsms/index.php? ... ed-content I can see the CMSMS 403 page
Maybe the host 403 response was cached on your browser?
Attachments
Screenshot 2025-09-16 092723.jpg
User avatar
webform
Power Poster
Power Poster
Posts: 516
Joined: Sat Nov 25, 2006 3:39 pm

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

Post by webform »

Hmm! Strange! Because I had several users who suddenly did not get the login screen on the site's own 403 error page, but instead Apache's 403 error page.
When I tested I discovered that it was the case for all my sites that had the same structure of protected pages (same host).

Maybe it's just a cache problem that came after the update of CMS Made Simple?

Maybe also combined with the fact that the default page for the sites in question are all MAMS protected pages. However, it has not yet been possible for me to recreate the problem from that starting point on my clean installed test site.

I will have to try testing all sites again and hear from other users whether they are still experiencing problems or not.

Thank you all for your time and suggestions.
Post Reply

Return to “CMSMS Core”