Error when no picture added (we tested if user will not add picture)
ERROR:
Warning: Illegal string offset 'name' in /xx/xx/public_html/xx/oc-content/plugins/image_required/index.php on line 78
Warning: Cannot modify header information - headers already sent by (output started at /xx/xx/public_html/xx/oc-includes/osclass/utils.php:1740) in /xx/xx/public_html/xx/oc-includes/osclass/utils.php on line 1745
Line 78
$img_uploading = count($aItem['photos']['name']);
Lines 1738-1748
function osc_redirect_to($url, $code = null) {
if(ob_get_length()>0) {
ob_end_flush();
}
if($code!=null) {
header("Location: ".$url, true, $code);
} else {
header("Location: ".$url);
}
exit;
}
What to do? Thank you!
NOTE: No problem if with picture