Call to a member function setMetadataReader() on null

Устанавливаем чистый, девственный CSCART 4.18.3 MULTIVENDOR ultimate

Включаем модуль общие товары, создаём несколько, понимаем что он не нужен, выключаем модуль. Пробуем зайти на ?dispatch=products.manage Радуемся ошибке: <!–

Error

Message
Call to a member function setMetadataReader() on null

Error at
app/functions/fn.images.php, line: 826

Backtrace
File:app/functions/fn.images.php
Line:1165
Function:fn_resize_image

File:app/functions/fn.images.php
Line:1257
Function:fn_generate_thumbnail

File:var/cache/templates/backend/3f910fa30c0c6801f2a40c18fcd47b336302b87f_2.tygh.image.tpl.php
Line:26
Function:fn_image_to_display

File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php
Line:123
Function:content_6814d601be31e9_17486959

File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php
Line:114
Function:getRenderedTemplateCode

File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php
Line:384
Function:render

File:var/cache/templates/backend/8ba9a73ec696616198c05a9a5c2e795563219cfd_2.tygh.manage.tpl.php
Line:222
Function:_subTemplateRender

File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php
Line:123
Function:content_6814d601b298b5_78123204

File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php
Line:114
Function:getRenderedTemplateCode

File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php
Line:217
Function:render

File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php
Line:386
Function:render

File:var/cache/templates/backend/603181e393634c97eebec437621f69e3f0fae096_2.tygh.index.tpl.php
Line:149
Function:_subTemplateRender

File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php
Line:123
Function:content_6814d600acfc48_37165342

File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php
Line:114
Function:getRenderedTemplateCode

File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php
Line:217
Function:render

File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php
Line:238
Function:render

File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php
Line:116
Function:_execute

File:app/Tygh/SmartyEngine/Core.php
Line:81
Function:fetch

File:app/functions/fn.control.php
Line:637
Function:fetch

File:ametist.php
Line:21
Function:fn_dispatch

Здравствуйте!

Пожалуйста, убедитесь, что на сервере установлены библиотеки GD и/или Imagick. Эта ошибка говорит о том, что ни одна из библиотек не установлена.

Выполните установку любого из этих двух компонентов (imagick предпочтительнее), очистите кэш и проверьте работоспособность

1 лайк

Imagick не установлен оказался. Так же ошибка пропадает если удалить все товары созданные как общие после отключения модуля.

Я не думаю что ошибка связана с модулем. Она возникает при попытке сгенерировать иконки

Эта тема была автоматически закрыта через 3 дня после последнего ответа. В ней больше нельзя отвечать.