[solved] CMSMS 1.11.1 News detail page gives 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
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

[solved] CMSMS 1.11.1 News detail page gives 404 Error

Post by psy »

On an installation of CMSMS 1.11, upgraded to 1.11.1, clicking on the 'More Link' of a News article returns an Error 404 Page Not Found.

Scenario:

[1] I added a summary to the 'News Module Installed' article to generate the more link. The Expiration checkbox is unticked. I had added some News custom fields but they were empty. I had also added some new categories but this article category remained as the default 'General'. There was no change to the default summary or detail templates. No page was nominated as the default News detail display page on the options tab.

[2]On a new, active page called 'news', the only thing in the content block was {news}

[3]Used Pretty URLs with mod_rewrite in the config.php file.


The summaries listed as expected on the front end. The detail pages bombed. (The detail pages displayed OK when pretty urls were turned off).

Config:

----------------------------------------------
Cms Version: 1.11.1
Installed Modules:
CMSMailer: 5.2.1
CMSPrinting: 1.0.3
FileManager: 1.4.0
MenuManager: 1.8.3
MicroTiny: 1.2.3
ModuleManager: 1.5.5
News: 2.12.8
Search: 1.7.7
ThemeManager: 1.1.7
CGExtensions: 1.30
CGSimpleSmarty: 1.5.2
CGSmartImage: 1.9.3
CGGoogleMaps: 2.3.1
SEOTools2: 1.1
Statistics: 1.1.3
FormBuilder: 0.7.3
FormBrowser: 0.4.2
Gallery: 1.6
DebugSwitch: 0.0.3
ExtendedTools: 1.3.1

Config Information:
php_memory_limit:
process_whole_template:
output_compression:
max_upload_size: 10000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true

Php Information:
phpversion: 5.3.15
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 30
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 10M
upload_max_filesize: 10M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)

Server Information:
Server Api: cgi-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 5.1.63
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

----------------------------------------------

Is this a bug with News/Pretty URLs? Otherwise, please let me know if I've done something wrong.

Thanks

psy
Last edited by psy on Sat Aug 25, 2012 11:52 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CMSMS 1.11.1 News detail page gives 404 Error

Post by calguy1000 »

Just tested this a few times, on 2 separate CMSMS 1.11.x installs and did not experience any unexpected problems.

There is a problem if the article is expired though. That will generate a 404 error.
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.
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: CMSMS 1.11.1 News detail page gives 404 Error

Post by psy »

Thanks Calguy. Must be something different about my set-up.

I've also tried on two installations - my local development machine and on the client's development site. In neither case were the articles expired.

The result was the same for both, ie pretty urls resulted in Error 404s when clicking the 'more' link.

The only thing I can think of is that both these installations have CMSMS installed in a sub-directory rather than the root directory. Would this affect it?

The pretty URL generated is correct, eg

Code: Select all

http://mydomain.com/cms/news/1/61/News-Module-Installed.html
psy
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: CMSMS 1.11.1 News detail page gives 404 Error

Post by psy »

Another possibility. I checked the cms_routes db table for both installations.

On the WAMP server, there were unrecognised characters in the data field enclosing CMSRoute in the json array.
phpMyAdmin view of cms_routes table entry on WAMP server.
phpMyAdmin view of cms_routes table entry on WAMP server.
On the client's site, there were no entries at all in the cms_routes table.

Could there be an encoding issue causing News pretty urls to fail on some sites?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: CMSMS 1.11.1 News detail page gives 404 Error

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: CMSMS 1.11.1 News detail page gives 404 Error

Post by psy »

Thanks Rolf. Unfortunately not the case. The articles were not expired and the pages were definitely active. If the page had been inactive, I wouldn't have been able to view the summaries.

I'd also trawled the forum before posting the question and found that answer.

psy
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: [solved] CMSMS 1.11.1 News detail page gives 404 Error

Post by psy »

The funny characters were a red herring explained in the php.net manual.

Problem resolved after going to Site Admin->System Maintenance->Cache and Content tab and clicking on the (new) Update Routes button.
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Re: CMSMS 1.11.1 News detail page gives 404 Error

Post by tophers »

calguy1000 wrote:Just tested this a few times, on 2 separate CMSMS 1.11.x installs and did not experience any unexpected problems.

There is a problem if the article is expired though. That will generate a 404 error.
Does this mean that you see an error when trying to view the Detail of an expired article? Because we're experiencing that here - live articles work fine (as long as pretty URLs are off), but any expired articles do not, both in News and a duplicated version we're using for Events. They show up in Summary vie fine, but generate a Page Not Found error when clicked for the detail view.
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Re: [solved] CMSMS 1.11.1 News detail page gives 404 Error

Post by tophers »

In addition, we're seeing the same problem with multiple installs of 1.11.1, in Firefox, Chrome and Safari - Active articles display fine, but Expired articles return a Page Not Found error. I've updated News to version 2.12.9 from the svn as suggested in one of the Bug Tracker posts, but no luck.
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: [solved] CMSMS 1.11.1 News detail page gives 404 Error

Post by Jos »

The news module that is shipped with the latest CMSms version 1.11.2 should have a setting/option now that lets you display detail view of expired articles...
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Re: [solved] CMSMS 1.11.1 News detail page gives 404 Error

Post by tophers »

We must have had an issue when we upgraded - our version of News didn't have the checkbox. Ive replaced it and it does indeed work!

My next issue is with Pretty URLS - the News module returns blank pages when clicked for a detail view with them on (but the work fine without). We had this working smoothly, but something has changed along the way. The site is in a 'dev' subdirectory - can that be causing issues?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [solved] CMSMS 1.11.1 News detail page gives 404 Error

Post by Dr.CSS »

If you are using pretty URLs and the htaccess from the doc folder and the site is in a subfolder you need to set the RewriteBase / ...
Post Reply

Return to “CMSMS Core”