fo-csv icon indicating copy to clipboard operation
fo-csv copied to clipboard

Error

Open Dicheto2302 opened this issue 2 years ago • 5 comments

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?

Dicheto2302 avatar Aug 11 '23 08:08 Dicheto2302

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

RTechSn avatar Jan 14 '24 14:01 RTechSn

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

dicheto avatar Jan 14 '24 14:01 dicheto

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.

RTechSn avatar Jan 14 '24 15:01 RTechSn

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

?

dicheto avatar Mar 02 '24 16:03 dicheto