Freeocart / fo-csv

Flexible csv import/export module for opencart 2/3
https://freeocart.ikfi.ru/en/project/fo-csv-import/
GNU General Public License v3.0
21 stars 10 forks source link

Error #56

Open Dicheto2302 opened 1 year ago

Dicheto2302 commented 1 year ago

Hello, I am using this plugin, but i am getting this error in admin panel after clicking import: We catched some errors during import, please check foc logs!

Errors count - 1

How to see the log?

RTechSn commented 8 months ago

I would like to know where i can read the log too. OpenCart logs page is empty.

dicheto commented 8 months ago

Yesss... No answer at all...the project must be discounted!

RTechSn commented 8 months ago

Well, looks like we have to fix the issue ourselves. Open \model\extension\module\foc_common.php and find the function called writeLog. Add the following code after $this->log->write($msg);

$date = new DateTime('now', new DateTimeZone('Europe/Paris'));
$date = $date->format("y:m:d H:m:s");    
file_put_contents("foc.log", $date . ": " . $msg . "\n", FILE_APPEND | LOCK_EX);

You can find the log file in your admin folder.

dicheto commented 6 months ago

Any ideas what is this error: Error: Subquery returns more than 1 row
Error No: 1242
SELECT IFNULL((SELECT product_id FROM md_product WHERE sku LIKE "3800931053956"), 0) AS id

?