"news_url" error after update

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
appleyard
Forum Members
Forum Members
Posts: 27
Joined: Wed Dec 30, 2009 2:54 pm

"news_url" error after update

Post by appleyard »

I recently updated an installation of CMSMS from 1.8.2 to 1.11.7. All modules (core modules plus CGSimpleSmarty & CGExtensions) were updated to their latest versions as well.

After the update, the news summary page is returning the error "Undefined index: news_url in .../modules/News/action.default.php on line 304"

Take a look: http://centerforclergycare.com/news-resources
(There's also a "Undefined property: stdClass::$newsimage" error that wasn't there before the update and may or may not be related.)

The news detail page does not return any errors. Adding parameters to the {news} tag, or changing to a default summary template does not eliminate the error message.

Any suggestions? Thanks!
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: "news_url" error after update

Post by Jo Morg »

In a production site, usually PHP errors should be logged but not visible. Notices are not errors, and for the most part won't affect the functionality of the site.
As a rule of thumb this should be disabled by either setting in php.ini display_errors=0 or (if your host settings allow you to) by using the following lines on the .htaccess file:

Code: Select all

# To prevent E_STRICT problems with PHP 5.3+ you can uncomment the following lines
# Note: These settings should only be enabled for production sites!
php_flag display_startup_errors 0
php_flag display_errors 0
php_flag html_errors 0
php_value docref_root 0
php_value docref_ext 0
HTH
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Post Reply

Return to “CMSMS Core”