Originally Posted by
Didee
...But i did get this message on the both tests
There were errors
Warning: Invalid argument supplied for foreach() in /home/www/stitchwith.me/admin/add_customers.php on line 71
I have the same issue... running on 1.3.8a. That line seems to be looping through errors for an uploaded file, except i'm not uploading a file... just manually entering customer data in the fields and clicking INSERT:
Line 71:
Code:
foreach ($errors as $line_no=>$error) {
if (is_array($error)) {
echo "<div>
Errors on line " . ($line_no+1) . " of the imported file
</div>";
echo '<ul>';
foreach ($error as $err) {
echo '<li style="color: red;">' . $err . '</li>';
}
echo '</ul>';
} else {
echo '<li style="color: red;">' . $error . '</li>';
}
}
Bookmarks