News detail view URLs produce 404 error

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
lisakramer
New Member
New Member
Posts: 4
Joined: Wed Dec 28, 2016 9:29 pm

News detail view URLs produce 404 error

Post by lisakramer »

We're using CMS Made Simple™ 1.11.7 “Genovesa” and News module 2.12.12. Domain is leadingwithintention.com. Our articles page is Resources (http://www.leadingwithintention.com/resources/).

When we click on each news article, we get a 404 error. Can anyone help me figure out what the problem is?

Thank you, Melody
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: News detail view URLs produce 404 error

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
lisakramer
New Member
New Member
Posts: 4
Joined: Wed Dec 28, 2016 9:29 pm

Re: News detail view URLs produce 404 error

Post by lisakramer »

Thank you, Rolf.

Please excuse my ignorance, but where do I find the place to check the detailpage parameter in the News tag(s)?
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: News detail view URLs produce 404 error

Post by Jos »

I guess that the detailpage parameter is not your problem.

I noticed that the link
gives you the 404 page, but the link
http://www.leadingwithintention.com/News/5/26/The-Leader-as-Coach-Get-Curious/
just works fine.

The detailpage parameter would be responsible for the number 26 in the url (=page id)
http://www.leadingwithintention.com/?page=26 also works fine.

My guess is that you should look at the last sentence of the trooubleshooting text:
When using pretty urls on your website, make sure no physical directory called /news or /News exists on your server.
Check if a directory "news" exists and rename it.
lisakramer
New Member
New Member
Posts: 4
Joined: Wed Dec 28, 2016 9:29 pm

Re: News detail view URLs produce 404 error

Post by lisakramer »

Thank you, Jos

If I rename the News directory, I get this error message:

Fatal error: Class 'News' not found in /home/content/31/10212731/html/tmp/templates_c/18left^884770d256253e2550971aa40d9f9a401b1e048a.content.left.php on line 24

Any help you can provide is appreciated.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: News detail view URLs produce 404 error

Post by Rolf »

Jos wrote:Check if a directory "news" exists and rename it.
lisakramer wrote:If I rename the News directory, I get this error message
Jos meant a directory in the website root, so in the same level as admin, modules, plugins, etc.
Not the folder /modules/News/
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
lisakramer
New Member
New Member
Posts: 4
Joined: Wed Dec 28, 2016 9:29 pm

Re: News detail view URLs produce 404 error

Post by lisakramer »

Thank you, Rolf

There is no directory in the website root named News.

Thank you for any additional help.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: News detail view URLs produce 404 error

Post by Rolf »

http://www.leadingwithintention.com/News/ opens the CMSMS error 404 page, as it should do.

But http://www.leadingwithintention.com/news/ opens the error 404 page from the webserver/host what makes no sense to me.

Perhaps ask the webhost? Maybe they know what happens...


ps. It isn't a real fix at all, but it might help for now...
Change the front of your news tag to something like:
{News|replace:'/news/':'/News/'
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
JackOutoftheBox
Forum Members
Forum Members
Posts: 89
Joined: Thu Jan 25, 2007 8:05 pm

[solved] Re: News detail view URLs produce 404 error

Post by JackOutoftheBox »

I looked into this for @lisakramer and it turns out a file named "news.php" (not a folder named "news") was in the root directory. I renamed it and all is fine.
Post Reply

Return to “The Lounge”