CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#7733] Fatal error: Cannot break/continue 1 level in /lib/classes/contenttypes/Content.inc.php on line 793

avatar
Created By: Georg Busch (nan)
Date Submitted: Fri Mar 23 11:13:39 -0400 2012

Assigned To:
Version: 1.10.3
CMSMS Version: 1.10.3
Severity: Trivial
Resolution: Fixed
State: Closed
Summary:
Fatal error: Cannot break/continue 1 level in /lib/classes/contenttypes/Content.inc.php on line 793
Detailed Description:
When using the {content_module} tag calling a module that is not installed the
following error shows up when you edit a page:
 
Fatal error: Cannot break/continue 1 level in
/lib/classes/contenttypes/Content.inc.php on line 793

This is because in the function _display_module_block() it says

if( !is_object($module) ) continue;

This might be an ancient relict when all the content blocks were processed in a
foreach loop. But now there is no loop anymore. So it should be just a 'return'
instead of 'continue' (or maybe a message, that the module could not be found).

This issue is also in CMSms 1.11 SVN rev 7824


History

Comments
avatar
Date: 2012-04-14 15:58
Posted By: Ronny Krijt (ronnyk)

Fixed in SVN for 1.11.
      
avatar
Date: 2012-08-02 07:32
Posted By: Rolf (rolf1)

CMSMS 1.11 is released
      
Updates

Updated: 2012-08-02 07:32
state: Open => Closed

Updated: 2012-04-14 15:58
resolution_id: => 7