Удаленный модуль ShipperHQ, вызывающий ошибку в разделе "Все клиенты" Magento 2


В настоящее время я пытаюсь создать сайт Magento 2, чтобы заменить существующий сайт Magento 1. Поскольку в настоящее время мы используем модуль MatrixRates, мы решили попробовать ShipperHQ, но в конечном итоге решили не использовать его.

Моя первоначальная установка ShipperHQ произошла некоторое время назад, но я полагаю, что изначально мы пытались установить ее с помощью Zip. Когда мне сказали, что это не идеально, я переустановил модуль ShipperHQ с помощью composer, как было рекомендовано, и попытался удалить его с помощью предоставленные инструкции (через композитора).

Инструкции здесь:

Https://docs.shipperhq.com/uninstalling-the-magento-extension/#How_to_Uninstall_the_ShipperHQ_Extension_for_Magento_2

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

В разделе администратора сайта. Я попытался просмотреть страницу "Все клиенты" в разделе "Клиенты" и получил следующую ошибку:

Произошла ошибка при обработке вашего запроса, печать исключений по умолчанию отключена по соображениям безопасности.

Номер записи в журнале ошибок: 900078875686

В отчетах var был представлен следующий отчет.

{"0":" Класс Грузоотправитель\Грузоотправитель\Модель\Клиент\Атрибут\Источник\Тип адреса не существует", "1": "#0 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/Code/Reader/ClassReader.php(19): Класс отражения->__построить ('ShipperHQ\\Shipp...')\n#1 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/ObjectManager/Definition/Runtime.php(44): Magento\Фреймворк\Код\Читатель\Читатель классов->getConstructor('ShipperHQ\\Shipp...')\n#2 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/ObjectManager/Factory/Compiled.php(100): Magento\Framework\ObjectManager\Определение\Среда выполнения->Получить параметры ('ShipperHQ\\Shipp...')\n#3 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Фабрика\Скомпилированный->создать('ShipperHQ\\Shipp...', Массив)\n#4 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/Validator/UniversalFactory.php(36): Magento\Framework\ObjectManager\ObjectManager->создать('ShipperHQ\\Shipp...', Массив)\n#5 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/module-eav/Model/Entity/Attribute/AbstractAttribute.php(590): Magento\Фреймворк\Валидатор\Универсальный завод->создать('ShipperHQ\\Shipp...')\n#6 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Eav\Модель\Сущность\Атрибут\Абстрактный атрибут->getSource()\n#7 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Клиент\Модель\Атрибут\Перехватчик->___callParent('getSource', Массив)\n#8 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/app/code/Mirasvit/Rewards/Plugin/Customer/Model/AttributePlugin.php(41): Magento\Клиент\Модель\Атрибут\Перехватчик->Magento\Структура\Перехват\{закрытие}()\n#9 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/Interception/Interceptor.php(135): Mirasvit\Rewards\Plugin\Customer\Model\AttributePlugin->aroundGetSource(Object(Magento\Customer\Model\Attribute\Interceptor), Объект (Закрытие))\n#10 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Клиент\Модель\Атрибут\Перехватчик->Magento\Структура\Перехват\{закрытие}()\n#11 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/generated/code/Magento/Customer/Model/Attribute/Interceptor.php(26): Magento\Клиент\Модель\Атрибут\Перехватчик->___Подключаемые модули вызовов('getSource', Массив, NULL)\n#12 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/module-customer/Model/AttributeMetadataConverter.php(68): Magento\Клиент\Модель\Атрибут\Перехватчик->getSource()\n#13 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/module-customer/Model/Metadata/AddressMetadata.php(77): Magento\Customer\Model\AttributeMetadataConverter->createMetadataAttribute(Object(Magento\Customer\Model\Attribute\Interceptor))\n#14 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/module-customer/Model/Metadata/AddressMetadata.php(109): Magento\Клиент\Модель\Метаданные\Адресметадата->getattributemetadata('назначение_тип...')\n#15 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/module-customer/Model/Metadata/CachedMetadata.php(85): Magento\Клиент\Модель\Метаданные\Адресметадата->getallattributesmetadata()\n#16 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/module-customer/Ui/Component/Listing/AttributeRepository.php(85): Magento\Клиент\Модель\Метаданные\Кэшированные данные->getallattributesmetadata()\n#17 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/module-customer/Ui/Component/Listing/Columns.php(102): Magento\Клиент\Пользовательский интерфейс\Компонент\Список\Атрибутивная база->getList()\n#18 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/View/Layout/Generator/UiComponent.php(159): Magento\Клиент\Пользовательский интерфейс\Компонент\Список\Столбцы->подготовка()\n#19 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/View/Layout/Generator/UiComponent.php(156): Magento\Framework\View\Layout\Generator\UiComponent->prepareComponent(Object(Magento\Customer\Ui\Component\Listing\Columns))\n#20 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/View/Layout/Generator/UiComponent.php(137): Magento\Framework\View\Layout\Generator\UiComponent->prepareComponent(Object(Magento\Ui\Component\Listing))\n#21 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/View/Layout/Generator/UiComponent.php(97): Magento\Framework\View\Layout\Generator\UiComponent->generateComponent(Object(Magento\Framework\View\Layout\Data\Structure) , 'customer_listin...', Массив, Объект (Magento\Фреймворк\Представление\Макет\Перехватчик))\n#22 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/View/Layout/GeneratorPool.php(80): Magento\Framework\View\Layout\Generator\UiComponent->process(Object(Magento\Framework\View\Layout\Reader\Context), Объект (Magento\Фреймворк\Представление\Макет\Генератор\Контекст))\n#23 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/View/Layout.php (344): Magento\Framework\View\Layout\GeneratorPool->process(Object(Magento\Framework\View\Layout\Reader\Context), Объект (Magento\Фреймворк\Представление\Макет\Генератор\Контекст))\n#24 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/generated/code/Magento/Framework/View/Layout/Interceptor.php(89): Magento\Фреймворк\Представление\Макет->Генерировать элементы()\n#25 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/View/Layout/Builder.php(129): Magento\Фреймворк\Представление\Макет\Перехватчик->Генерировать элементы()\n#26 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/View/Page/Builder.php (55): Magento\Фреймворк\Представление\Макет\Конструктор->Генераторные блоки()\n#27 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/View/Layout/Builder.php(65): Magento\Фреймворк\Просмотр\Страница\Конструктор->Generatelayoutblocks()\n#28 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/View/Layout.php (254): Magento\Фреймворк\Представление\Макет\Конструктор->сборка()\n#29 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/View/Layout.php (876): Magento\Фреймворк\Просмотр\Макет->сборка()\n#30 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/generated/code/Magento/Framework/View/Layout/Interceptor.php(414): Magento\Фреймворк\Вид\Макет->Getblock('меню')\n#31 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/module-backend/Model/View/Result/Page.php(26): Magento\Фреймворк\Вид\Макет\Перехватчик->Getblock('меню')\n#32 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/module-customer/Controller/Adminhtml/Index/Index.php(26): Magento\Серверная часть\Модель\Просмотр\Результат\Страница->setactivemenu('Magento_custome...')\n#33 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/App/Action/Action.php (107): Magento\Клиент\Контроллер\Adminhtml\Индекс\Индекс->выполнить()\n#34 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/module-backend/App/AbstractAction.php(229): Magento\Фреймворк\Приложение\Действие\Действие->отправка(Объект(Magento\Фреймворк\Приложение\Запрос\Http))\n#35 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Серверная часть\Приложение\Абстрактное действие->отправка(Объект(Magento\Фреймворк\Приложение\Запрос\Http))\n#36 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Клиент\Контроллер\Adminhtml\Индекс\Индекс\Перехватчик->___callParent('отправка', Массив)\n#37 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): Magento\Customer\Controller\Adminhtml\Index\Index\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))\n#38 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Customer\Controller\Adminhtml\Index\Index\Interceptor), Объект (Закрытие), Объект (Magento\Framework\Приложение\Запрос\Http))\n#39 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Customer\Controller\Adminhtml\Index\Index\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))\n#40 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/generated/code/Magento/Customer/Controller/Adminhtml/Index/Index/Interceptor.php(26): Magento\Клиент\Контроллер\Adminhtml\Индекс\Индекс\Перехватчик->___Подключаемые модули вызовов("отправка", Массив, NULL)\n#41 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/App/FrontController.php(55): Magento\Customer\Controller\Adminhtml\Index\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))\n#42 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\Приложение\FrontController->отправка(Объект(Magento\Framework\Приложение\Запрос\Http))\n#43 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Фреймворк\Приложение\Фронтконтроллер\Перехватчик->___callParent("отправка", Массив)\n#44 [внутренняя функция]: Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))\n#45 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/m2e/ebay-amazon-magento2/Plugin/AbstractPlugin.php(34): вызов_user_func_array (Объект (замыкание), Массив)\n#46 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/m2e/ebay-amazon-magento2/Plugin/HealthStatus/Magento/Framework/App/FrontController.php(42): Ess\M2EPro\Плагин\Абстрактный плагин->выполнить ("отправка", Объект(Magento\Framework\Приложение\фРонтконтРоллер\Перехватчик), Объект (Замыкание), Массив)\n#47 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/Interception/Interceptor.php(135): Ess\M2ePro\Plugin\HealthStatus\Magento\Framework\App\FrontController->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Объект (Закрытие), Объект (Magento\Framework\Приложение\Запрос\Http))\n#48 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/app/code/Infortis/Cgen/Plugin/Magento/Framework/App/FrontController.php(32): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))\n#49 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/Interception/Interceptor.php(135): Infortis\Cgen\Plugin\Magento\Framework\App\FrontController->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Объект (Закрытие), Объект (Magento\Framework\Приложение\Запрос\Http))\n#50 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))\n#51 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Фреймворк\Приложение\Фронтконтроллер\Перехватчик->___Подключаемые модули вызовов("отправка", Массив, массив)\n#52 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/App/Http.php (135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))\n#53 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Фреймворк\Приложение\Http->запуск()\n#54 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/vendor/magento/framework/App/Bootstrap.php (256): Magento\Фреймворк\Приложение\Http\Перехватчик->запуск()\n#55 /var/www/vhosts/mysite.magentotwo.co.uk/httpdocs/index.php (39): Magento\Фреймворк\Приложение\Начальная загрузка->выполнить(Объект(Magento\Фреймворк\Приложение\Http\Перехватчик))\n#56 {main}","url":"/admin_mysite/customer/index/index/key/e8c16f8c6e10f3b3aaacccb164e4fdfc841c42429b2edabbe24a0933fda6a954/","script_name":"/index.php"}

Я не вижу тип адреса в таблице EAV_attributes в своей базе данных, я пропустил что-то, что должен был удалить?

Может ли кто-нибудь просветить меня относительно того, как это исправить?

Author: CJNotts, 2019-01-03

2 answers

Перейдите в базу данных и откройте таблицу атрибут eav_attribute и найдите ниже код атрибута и удалите их из этой таблицы:

shipperhq_shipping_group
shipperhq_warehouse
shipperhq_shipping_fee
shipperhq_handling_fee
shipperhq_volume_weight
shipperhq_declared_value
shipperhq_dim_group
shipperhq_poss_boxes
shipperhq_malleable_product
shipperhq_master_boxes
shipperhq_availability_date
destination_type
freight_class
shipperhq_nmfc_class
must_ship_freight
shipperhq_nmfc_sub

Вышеуказанные атрибуты создаются из расширения ShipperHQ. Очистите кэш и повторите проверку. Надеюсь, это поможет!

 3
Author: Sukumar Gorai, 2019-01-03 15:47:45

Большое тебе спасибо, Сукумар, твой ответ полностью сэкономил мне много времени. Я поместил это в удобный SQL-запрос:

УДАЛИТЬ eav_attribute, ГДЕ attribute_code В ( 'shipperhq_shipping_group', 'shipperhq_warehouse', 'shipperhq_shipping_fee', 'shipperhq_handling_fee', 'shipperhq_volume_weight', 'shipperhq_declared_value', 'shipperhq_dim_group', 'shipperhq_poss_boxes', 'shipperhq_malleable_product', 'shipperhq_master_boxes', 'shipperhq_availability_date', "тип назначения", "класс грузовых перевозок", "класс shipperhq_nmfc_class", "must_ship_freight", "класс shipperhq_nmfc_sub")

 1
Author: Pierre-Verthume Larivière, 2019-08-01 20:14:58