Page 1 of 1

"news_url" error after update

Posted: Fri Oct 11, 2013 8:30 pm
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!

Re: "news_url" error after update

Posted: Fri Oct 11, 2013 11:47 pm
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