(1.10.3)
(I have an existing article, "http://localhost/cmsms/news/1/66/Example.html and I have a custom error 404 set up which works fine everywhere else)
When I tried to navigate to "http://localhost/cmsms/news/2/55/Old-Article.html the NewsPostDetailContent produces the following rather ugly error:
Code: Select all
Posted by: Anonymous
C:\xampp\htdocs\cmsms\lib\smarty\plugins\function.eval.php:25 - trigger_error
C:\xampp\htdocs\cmsms\tmp\templates_c\News^%%E8^E85^E85D59E8%%module_db_tpl%3ANews%3BdetailSample.php:46 - smarty_function_eval
C:\xampp\htdocs\cmsms\lib\smarty\Smarty.class.php:1263 - include
C:\xampp\htdocs\cmsms\lib\classes\module_support\modtemplates.inc.php:242 - fetch
C:\xampp\htdocs\cmsms\lib\classes\class.CMSModule.php:2438 - cms_module_ProcessTemplateFromDatabase
C:\xampp\htdocs\cmsms\modules\News\action.detail.php:63 - ProcessTemplateFromDatabase
C:\xampp\htdocs\cmsms\lib\classes\class.CMSModule.php:1583 - include
C:\xampp\htdocs\cmsms\modules\News\action.defaulturl.php:4 - DoAction
C:\xampp\htdocs\cmsms\lib\classes\class.CMSModule.php:1583 - include
C:\xampp\htdocs\cmsms\lib\classes\class.CMSModule.php:1628 - DoAction
C:\xampp\htdocs\cmsms\plugins\function.content.php:100 - DoActionBase
C:\xampp\htdocs\cmsms\tmp\templates_c\%%01^013^01360D26%%tpl_body%3A23.php:21 - smarty_cms_function_content
C:\xampp\htdocs\cmsms\lib\smarty\Smarty.class.php:1263 - include
C:\xampp\htdocs\cmsms\index.php:269 - fetch
string(43) "Smarty error: eval: missing 'var' parameter"
Return
I hope that this won't ever be a real problem but I just wondered if there's any way I could fix this? I suppose when the site goes live if a category was to get deleted one would redirect the articles to a different page, but what if somebody was to make a typo in their address bar? don't quite understand why it's not showing a normal 401 or 404.
Tried clearing site and browser cache but no change.
If anyone thinks they can advise but needs more info please let me know and I'll post code.