CMS MADE SIMPLE FORGE

Company Directory

 

[#11621] Fatal error on Import

avatar
Created By: cyrcle (cyrcle)
Date Submitted: Mon Oct 30 15:40:02 -0400 2017

Assigned To: Robert Campbell (calguy1000)
Version: 1.23.5
CMSMS Version: 2.2.3.1
Severity: Major
Resolution: None
State: Open
Summary:
Fatal error on Import
Detailed Description:
Hello,

I created a record and then export the data to CSV, and used the exported CSV
for import, and I have an error :

Fatal error: 'continue' not in the 'loop' or 'switch' context in
/home/cyrcle/sites/cmsms23/modules/CompanyDirectory/lib/class.cd_ascii_importer.php
on line 622


History

Comments
avatar
Date: 2018-08-29 15:43
Posted By: Greg Prosser (swdmedia)

I can confirm this behavior running on CMSMS 2.2.8, and CompanyDirectory 1.23.5

Changing line 622 from

if( !startswith( $fields[0], '#') ) continue;

TO 

if( !startswith( $fields[0], '#') ) return false;



      
avatar
Date: 2018-08-29 15:55
Posted By: Greg Prosser (swdmedia)

Should note: that's specific to PHP 7.1+