CMS MADE SIMPLE FORGE

Products

 

[#11535] Fatal error: 'continue' not in the 'loop' or 'switch' context

avatar
Created By: Rolf (rolf1)
Date Submitted: Thu Aug 10 14:08:12 -0400 2017

Assigned To:
Version: 2.26.9
CMSMS Version: 2.2.2
Severity: None
Resolution: Fixed
State: Closed
Summary:
Fatal error: 'continue' not in the 'loop' or 'switch' context
Detailed Description:
Hello Robert,

Opening the Import page:
Fatal error: 'continue' not in the 'loop' or 'switch' context in
/home/rolftj1q/public_html/.../modules/Products/action.importproducts.php on
line 211

Grtz. Rolf


History

Comments
avatar
Date: 2017-08-10 17:46
Posted By: Robert Campbell (calguy1000)

Though there are bugs in the export/import scripts,  which I am addressing  this
is not one of them.
It appears you may have a problem in your csv file.  the format has changed in
recent versions.
      
avatar
Date: 2017-08-11 05:28
Posted By: Rolf (rolf1)

Thanks for checking, Robert.

The error occurs when I click "Import items from CSV file" and the new page
should open but ends in white page with this fatal error

When I comment out this line the page *does* open...

PHP version is 7.0.22.
CMSMS all latest, no upgrades available
      
avatar
Date: 2017-08-11 07:35
Posted By: Rolf (rolf1)

It is a PHP7 issue!

See also http://dev.cmsmadesimple.org/bug/view/10787
      
avatar
Date: 2017-10-17 12:18
Posted By: Robert Campbell (calguy1000)

fixed in svn
      
Updates

Updated: 2017-12-12 08:37
state: Open => Closed

Updated: 2017-10-17 12:18
resolution_id: 11 => 7

Updated: 2017-08-10 17:46
resolution_id: => 11