CMS MADE SIMPLE FORGE

CGBlog

 

[#11671] Fatal error on rendering prev/next links

avatar
Created By: Jan Andrè Schlösser (jan.schloesser)
Date Submitted: Wed Dec 13 05:59:05 -0500 2017

Assigned To: Robert Campbell (calguy1000)
Version: 1.15.5
CMSMS Version: 2.2.4
Severity: Critical
Resolution: Fixed
State: Closed
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-&gt;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-&gt;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-&gt;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 />


History

Comments
avatar
Date: 2017-12-13 08:57
Posted By: Robert Campbell (calguy1000)

fixed in svn
      
avatar
Date: 2017-12-18 07:21
Posted By: Jan Andrè Schlösser (jan.schloesser)

Svn Link doesn't work?
      
avatar
Date: 2017-12-18 07:21
Posted By: Jan Andrè Schlösser (jan.schloesser)

Svn Link doesn't work?
      
avatar
Date: 2017-12-21 15:55
Posted By: Max (vmadmax)

SVN doesn't work
      
avatar
Date: 2017-12-22 12:40
Posted By: Robert Campbell (calguy1000)

SVN is not publicly available.  I will release this weekend hopefully.
      
avatar
Date: 2017-12-27 08:17
Posted By: Rolf (rolf1)

Using the latest version 1.15.6 I still get this arror at the preview tab in
CGBlog admin page

<div class="prevblogarticle">
  <a href="<br />
<b>Fatal error</b>:  Uncaught Error: Class 'cgblog_article' not found in
/home/.../public_html/www.site.com/modules/CGBlog/CGBlog.module.php:527
Stack trace:
#0
/home/.../public_html/www.site.com/lib/classes/internal/module_support/modform.inc.php(629):
CGBlog-&gt;get_pretty_url('m1_', 'detail', '15', Array, false)
#1 /home/.../public_html/www.site.com/lib/classes/class.CMSModule.php(2256):
cms_module_create_url(Object(CGBlog), 'm1_', 'detail', '15', Array, false,
false, '')
#2
/home/.../public_html/www.site.com/lib/classes/internal/module_support/modform.inc.php(600):
CMSModule-&gt;create_url('m1_', 'detail', '15', Array, false, false, '')
#3 /home/.../public_html/www.site.com/lib/classes/class.CMSModule.php(2234):
cms_module_CreateLink(Object(CGBlog), 'm1_', 'detail', '15', 'CGBlog', Array,
'', true, false, '', false, '')
#4
/home/.../public_html/www.site.com/modules/CGSimpleSmarty/function.module_action.php(183):
CMSModule-&gt;CreateLink('m1_', 'detail', '15' in
<b>/home/.../public_html/www.site.com/modules/CGBlog/CGBlog.module.php</b> on
line <b>527</b><br />

This is a test site using default templates.
      
avatar
Date: 2018-01-05 02:27
Posted By: Max (vmadmax)

Same issue here.
      
avatar
Date: 2018-01-14 14:58
Posted By: Rolf (rolf1)

Fixed for me in latest release 1.15.7
      
Updates

Updated: 2018-03-28 04:12
state: Open => Closed

Updated: 2018-03-28 04:12
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_ => 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_

Updated: 2017-12-13 08:57
resolution_id: => 7