It was my browser.
I am having trouble uploading images. I use 2.0.1.
This is the error when uploading.
error
<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx/1.14.2</center>
</body>
</html>
This is in Error Logs.
2019-05-02 12:31:37 - PHP Warning: array_slice() expects parameter 1 to be array, string given in /home/xxxx/public_html/xxxxxx.com/catalog/controller/module/featured.php on line 34
2019-05-02 12:31:37 - PHP Warning: Invalid argument supplied for foreach() in /home/xxxx/public_html/xxxx.com/catalog/controller/module/featured.php on line 36
Attached is the screenshot of the file. (Edit: I don't see the attachment, so copying and pasting.)
$products = array_slice($setting['product'], 0, (int)$setting['limit']);
foreach ($products as $product_id) {
Is there already a posted fix for this? Thanks.
OP using an old OC version.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: Amazon [Bot] and 32 guests