Page 1 of 1

News detail view URLs produce 404 error

Posted: Wed Dec 28, 2016 9:41 pm
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

Re: News detail view URLs produce 404 error

Posted: Wed Dec 28, 2016 10:25 pm
by Rolf

Re: News detail view URLs produce 404 error

Posted: Thu Dec 29, 2016 12:03 am
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)?

Re: News detail view URLs produce 404 error

Posted: Thu Dec 29, 2016 11:43 am
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.

Re: News detail view URLs produce 404 error

Posted: Thu Dec 29, 2016 3:43 pm
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.

Re: News detail view URLs produce 404 error

Posted: Thu Dec 29, 2016 5:19 pm
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/

Re: News detail view URLs produce 404 error

Posted: Thu Dec 29, 2016 5:46 pm
by lisakramer
Thank you, Rolf

There is no directory in the website root named News.

Thank you for any additional help.

Re: News detail view URLs produce 404 error

Posted: Thu Dec 29, 2016 6:15 pm
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/'

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

Posted: Thu Jan 05, 2017 7:21 pm
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.