[Solved] News detail is giving me a 404 error

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
SpudULike
New Member
New Member
Posts: 3
Joined: Sun Mar 25, 2012 7:45 pm

[Solved] News detail is giving me a 404 error

Post by SpudULike »

Hi. I'm running CMS Made Simple 1.10.3. I'm using PHP 5.3.8, and MySQL 5.5.16. This is all working with Apache 2.2.21 running on Windows 7 32bit (test environment)

I'm using News v2.12.3, and FrontEndUsers v1.17 with CGExtensions v1.27.9 and CustomContent v1.7.3. (not sure which may be causing my issue, so gave them all)

When I try to view a news item, I get the error message: "The webpage cannot be found" - HTTP 404

I can reproduce this error if I start with a fresh install of the news module, if I click on the 'General' link within the news module or if I click on the summary link. The news item summary is visible from all pages of my site, but the error still shows after clicking.

This was working after the initial install of the site and after I managed to get the 'fesubmit' script working ({cms_module module="News" action="fesubmit"}) but after trying to setup a user group to allow frontendusers the ability to submit news items, I seem to have lost the ability to view the items outside of the news block.

I have tested creating news items from the backend admin panel successfully and from the FEU module via the frontend, but in each case after the news item is updated to the news block, I can't then click on any of the news links without getting a 404 error.

I.E. 9 error: The webpage cannot be found
Firefox 11 error: The requested URL was not found on this server.
Chrome 17 error: The requested URL was not found on this server.

I know there must be a URL error as I've looked through all of the module pages and all of the php scripts I can find, but none of them give me anything concrete to work with. Most errors I've had so far are clearly marked and can be debugged with a little help from notepad++.

I have worked hard on the FEU stuff to get calendars and frontend adding of events working and I have succeeded in getting the frontend adding of articles too, but now I'm stumped.

My site is a test site with the plan of taking it live in April. There is no real rush and the error isn't life threatening, but any assistance will be very much appreciated. I am on the road occasionally, so you may not get an instant response to questions, so please bare with me. I'm also no php expert, but I've had a great time over the past two weeks looking through some of the very well built modules and trying new things with them. Shame it's one of the core modules that's giving me the most problems or indeed least help to fix it myself :P

A.O.B. This is what I get back as a URL when clicking on the 'General' link in the news block. (not sure if it means anything to you clever people?)
http://<server IP>:<server port>/cms/index.php?mact=News,cntnt01,default,0&cntnt01number=3&cntnt01detailpage=39&cntnt01category_id=1&cntnt01returnid=39

Thanks for looking and reading my really long post, I do hope it's a really short answer to fix it ;D
Last edited by SpudULike on Sun Apr 01, 2012 8:36 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: News detail is giving me a 404 error

Post by calguy1000 »

Hello.

Thank you for providing the information you did. With that information I am able to say with 95% certainty that you have deleted the page with the id of 39 from the installation.

Your page template(s) have a call to news like {news ... detailpage=some_alias} and the page with that alias (and also id=39) has been removed.

If you edit your detail template... find the {news ...} tag and either:
a: remove the detailpage=some_page stuff
or
b: change some_page to another 'existing' page, like 'home' (assuming a default installation).

It should work.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: News detail is giving me a 404 error

Post by Rolf »

calguy1000 wrote:...and the page with that alias (and also id=39) has been removed.
or deactivated...
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
SpudULike
New Member
New Member
Posts: 3
Joined: Sun Mar 25, 2012 7:45 pm

Re: News detail is giving me a 404 error

Post by SpudULike »

Cal,

I feel like I know you personally from reading so many of your posts, and they have been so very useful. Needless to say your reply was nothing short of perfect and it took me straight to the resolution.

Rolf, I'm not sure what the difference is between deleting and deactivating, but clearly I did something wrong and after following Cals advice it works perfectly.

Thank you

n.b. I'll update the thread to include [SOLVED]
Post Reply

Return to “CMSMS Core”