Summary:
Fatal error on rendering prev/next links
Detailed Description:
When I'm using the default way to render prev/next links in the detail template
like:
"
{* find the id of the prev viewable blog article (by post date) *}
{$article_id=$entry->id}
{cgblog_relative_article article=$article_id dir='prev' assign='prev_id'}
{if $prev_id}
<div class="prevblogarticle">
<a href="{module_action_link module=CGBlog action=detail articleid=$prev_id
urlonly=1}">Previous Article</a>
</div>
{/if}
{* find the id of the next viewable blog article (by post date) *}
{cgblog_relative_article article=$article_id dir='next' assign='next_id'}
{if $next_id}
<div class="nextblogarticle">
<a href="{module_action_link module=CGBlog action=detail articleid=$next_id
urlonly=1}">Next Article</a>
</div>
"
I will get this error:
<a href="<br />
<b>Fatal error</b>: Uncaught Error: Class 'cgblog_article' not found in
/www/htdocs/ddd/www.site.net/cmsms/modules/CGBlog/CGBlog.module.php:527
Stack trace:
#0
/www/htdocs/ddd/www.site.net/cmsms/lib/classes/internal/module_support/modform.inc.php(629):
CGBlog->get_pretty_url('m1_', 'detail', '36', Array, false)
#1 /www/htdocs/ddd/www.site.net/cmsms/lib/classes/class.CMSModule.php(2256):
cms_module_create_url(Object(CGBlog), 'm1_', 'detail', '36', Array, false,
false, '')
#2
/www/htdocs/ddd/www.site.net/cmsms/lib/classes/internal/module_support/modform.inc.php(600):
CMSModule->create_url('m1_', 'detail', '36', Array, false, false, '')
#3 /www/htdocs/ddd/www.site.net/cmsms/lib/classes/class.CMSModule.php(2234):
cms_module_CreateLink(Object(CGBlog), 'm1_', 'detail', '36', 'CGBlog', Array,
'', true, false, '', false, '')
#4
/www/htdocs/ddd/www.site.net/cmsms/modules/CGSimpleSmarty/function.module_action.php(183):
CMSModule->CreateLink('m1_', 'detail', '36', 'CGB in
<b>/www/htdocs/ddd/www.site.net/cmsms/modules/CGBlog/CGBlog.module.php</b> on
line <b>527</b><br />