I'm getting this error when trying to upload an image with ChannelImages 5.4.19 with EE 2.11.7:
Fatal error: 'continue' not in the 'loop' or 'switch' context in /home/omart/public_html/system/expressionengine/third_party/channel_images/ajax.channel_images.php on line 2442
The offending code is below. Line 2442 is the line with continue;.
if ($field_type == 'file') {
$img_path = str_replace($file_dirs_search, $file_dirs_replace, $field_data);
if (file_exists($img_path) == FALSE) {
exit($img_path);
continue;
}
$img = array();
$img['path'] = $img_path;
$images[] = $img;
}
Any help is appreciated.
Thanks,
ty