[solved] CMSMS 1.11.1 News detail page gives 404 Error
[solved] CMSMS 1.11.1 News detail page gives 404 Error
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
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.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: CMSMS 1.11.1 News detail page gives 404 Error
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.
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.
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.
Re: CMSMS 1.11.1 News detail page gives 404 Error
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
psy
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
Re: CMSMS 1.11.1 News detail page gives 404 Error
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.
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?
On the WAMP server, there were unrecognised characters in the data field enclosing CMSRoute in the json array.
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?
Re: CMSMS 1.11.1 News detail page gives 404 Error
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: CMSMS 1.11.1 News detail page gives 404 Error
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
I'd also trawled the forum before posting the question and found that answer.
psy
Re: [solved] CMSMS 1.11.1 News detail page gives 404 Error
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.
Problem resolved after going to Site Admin->System Maintenance->Cache and Content tab and clicking on the (new) Update Routes button.
Re: CMSMS 1.11.1 News detail page gives 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.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.
Re: [solved] CMSMS 1.11.1 News detail page gives 404 Error
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.
Re: [solved] CMSMS 1.11.1 News detail page gives 404 Error
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...
Re: [solved] CMSMS 1.11.1 News detail page gives 404 Error
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?
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?
Re: [solved] CMSMS 1.11.1 News detail page gives 404 Error
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 / ...