Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Как отследить где ошибка?


Recommended Posts

Столкнулся с проблемой работы модуля выгрузки в яндекс маркет. Начал разбираться - ошибка: 

2021-04-12 20:43:53 - PHP Notice:  getimagesize(): Read error! in /var/www/****/data/www/*****/catalog/controller/extension/feed/yandex_yml.php on line 1012
2021-04-12 20:43:53 - PHP Notice:  getimagesize(): Read error! in /var/www/****/data/www/*****/catalog/model/tool/image.php on line 14

14 строка image.php

 

list($width_orig, $height_orig, $image_type) = getimagesize(DIR_IMAGE . $image_old);

 

Понятно что проблема с какой то картинкой, но с какой именно как определить? У меня их 50тысяч на сайте.
Может есть какой нибудь способ отследить?

Link to post
Share on other sites

try {
    list($width_orig, $height_orig, $image_type) = getimagesize(DIR_IMAGE . $image_old);echo inverse(5) . "\n";
} catch (Exception $e) {
    $this->log->write($image_old);
}

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.