Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #56

Open
Dicheto2302 opened this issue Aug 11, 2023 · 4 comments
Open

Error #56

Dicheto2302 opened this issue Aug 11, 2023 · 4 comments

Comments

@Dicheto2302
Copy link

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
Copy link

RTechSn commented Jan 14, 2024

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

@dicheto
Copy link

dicheto commented Jan 14, 2024

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

@RTechSn
Copy link

RTechSn commented Jan 14, 2024

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
Copy link

dicheto commented Mar 2, 2024

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

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants