admin form posts to non-existent page

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
psaikido
New Member
New Member
Posts: 4
Joined: Sat Jan 26, 2019 1:15 pm

admin form posts to non-existent page

Post by psaikido »

On a local dev machine I upgraded from cmsms-1.11.12 to 1.12.1 and then used the installation wizard thingy to get to 2.2.9. All is well except the login to the administrative backend gives "The requested URL /[my site]/admin/listcontent.php was not found on this server". This has happened on several sites now. I emptied tmp/cache and tmp/templates_c. Any help appreciated.
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1800
Joined: Wed Feb 25, 2009 4:25 am

Re: admin form posts to non-existent page

Post by DIGI3 »

I don't think listcontent.php is even part of 2.x. Perhaps just a browser cache thing? Clear your browser cache, or try it in incognito mode.
Not getting the answer you need? CMSMS support options
psaikido
New Member
New Member
Posts: 4
Joined: Sat Jan 26, 2019 1:15 pm

Re: admin form posts to non-existent page

Post by psaikido »

Tried those ideas now and no dice. I tried reconstituting the database from live too.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: admin form posts to non-existent page

Post by velden »

DIGI3 is right; there is no listcontent.php in the CMSMS 2.x admin folder.

Something definitely is directing your browser to that non-existent file. I would check:
- browser cache like DIGI3 suggested but seems you already did that. Note that previous redirects are difficult to circumvent from the same browser. So do try another browser or another computer.
- check .htaccess file (in the CMSMS root folder) if listcontent.php is mentioned there
- if exists: check .htaccess file (in the CMSMS 'admin' folder) if listcontent.php is mentioned there
- check config.php for the same
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1800
Joined: Wed Feb 25, 2009 4:25 am

Re: admin form posts to non-existent page

Post by DIGI3 »

Oh I just remembered this happening before. It's the user preferences having a home page that no longer exists. You just need to change it to something that does, for each user that has it set.
Not getting the answer you need? CMSMS support options
psaikido
New Member
New Member
Posts: 4
Joined: Sat Jan 26, 2019 1:15 pm

Re: admin form posts to non-existent page

Post by psaikido »

Aha! Setting the homepage to something else could be a bit tricky since I can't login! To the database!
psaikido
New Member
New Member
Posts: 4
Joined: Sat Jan 26, 2019 1:15 pm

Re: admin form posts to non-existent page

Post by psaikido »

The database I can see connected to a working version of the site has the cms_content.default_content set to 1 for the homepage. That data is exactly what I have locally where the site does not allow admin login with the error above. After the cmsms-2.2.9-install.php it leaves it in a state where it won't allow admin login when running in php 7.2. My live server is due to be upgraded at which point the live site will not be adminstratable. Is there a way around this without having to do a fresh install and manually rebuild all the pages?
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1800
Joined: Wed Feb 25, 2009 4:25 am

Re: admin form posts to non-existent page

Post by DIGI3 »

That's the default home page for the site, I'm talking about the user's default admin page when they log in.

Look at the table cms_userprefs, and find the entry with the user_id matching the user in question, and the preference 'homepage'. Set the value to empty or NULL.

If you don't have the ability to edit the database, you can also try logging in, then when you get the 404 page, edit the urlbar to just sitename.com/admin. You may get the login screen again, but this time it should go to the regular admin panel. Go in to your user prefs and reset your admin homepage.
Not getting the answer you need? CMSMS support options
Post Reply

Return to “CMSMS Core”