Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.59 KB | None | 0 0
  1. 1 exception(s):
  2. Exception #0 (Exception): Notice: Undefined offset: 0 in /var/www/html/vendor/magento/module-customer/Ui/Component/DataProvider/Document.php on line 168
  3.  
  4. Exception #0 (Exception): Notice: Undefined offset: 0 in /var/www/html/vendor/magento/module-customer/Ui/Component/DataProvider/Document.php on line 168
  5. #0 /var/www/html/vendor/magento/module-customer/Ui/Component/DataProvider/Document.php(168): MagentoFrameworkAppErrorHandler->handler(8, 'Undefined offse...', '/var/www/html/v...', 168, Array)
  6. #1 /var/www/html/vendor/magento/module-customer/Ui/Component/DataProvider/Document.php(108): MagentoCustomerUiComponentDataProviderDocument->setWebsiteValue()
  7. #2 /var/www/html/vendor/magento/module-ui/Model/Export/MetadataProvider.php(159): MagentoCustomerUiComponentDataProviderDocument->getCustomAttribute('website_id')
  8. #3 /var/www/html/vendor/magento/module-ui/Model/Export/ConvertToCsv.php(84): MagentoUiModelExportMetadataProvider->getRowData(Object(MagentoCustomerUiComponentDataProviderDocument), Array, Array)
  9. #4 /var/www/html/vendor/magento/module-ui/Controller/Adminhtml/Export/GridToCsv.php(72): MagentoUiModelExportConvertToCsv->getCsvFile()
  10. #5 /var/www/html/generated/code/Magento/Ui/Controller/Adminhtml/Export/GridToCsv/Interceptor.php(24): MagentoUiControllerAdminhtmlExportGridToCsv->execute()
  11. #6 /var/www/html/vendor/magento/framework/App/Action/Action.php(107): MagentoUiControllerAdminhtmlExportGridToCsvInterceptor->execute()
  12. #7 /var/www/html/vendor/magento/module-backend/App/AbstractAction.php(229): MagentoFrameworkAppActionAction->dispatch(Object(MagentoFrameworkAppRequestHttp))
  13. #8 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoBackendAppAbstractAction->dispatch(Object(MagentoFrameworkAppRequestHttp))
  14. #9 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoUiControllerAdminhtmlExportGridToCsvInterceptor->___callParent('dispatch', Array)
  15. #10 /var/www/html/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): MagentoUiControllerAdminhtmlExportGridToCsvInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppRequestHttp))
  16. #11 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): MagentoBackendAppActionPluginAuthentication->aroundDispatch(Object(MagentoUiControllerAdminhtmlExportGridToCsvInterceptor), Object(Closure), Object(MagentoFrameworkAppRequestHttp))
  17. #12 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoUiControllerAdminhtmlExportGridToCsvInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppRequestHttp))
  18. #13 /var/www/html/generated/code/Magento/Ui/Controller/Adminhtml/Export/GridToCsv/Interceptor.php(39): MagentoUiControllerAdminhtmlExportGridToCsvInterceptor->___callPlugins('dispatch', Array, NULL)
  19. #14 /var/www/html/vendor/magento/framework/App/FrontController.php(55): MagentoUiControllerAdminhtmlExportGridToCsvInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))
  20. #15 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkAppFrontController->dispatch(Object(MagentoFrameworkAppRequestHttp))
  21. #16 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkAppFrontControllerInterceptor->___callParent('dispatch', Array)
  22. #17 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkAppFrontControllerInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppRequestHttp))
  23. #18 /var/www/html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): MagentoFrameworkAppFrontControllerInterceptor->___callPlugins('dispatch', Array, Array)
  24. #19 /var/www/html/vendor/magento/framework/App/Http.php(135): MagentoFrameworkAppFrontControllerInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))
  25. #20 /var/www/html/generated/code/Magento/Framework/App/Http/Interceptor.php(24): MagentoFrameworkAppHttp->launch()
  26. #21 /var/www/html/vendor/magento/framework/App/Bootstrap.php(256): MagentoFrameworkAppHttpInterceptor->launch()
  27. #22 /var/www/html/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))
  28. #23 {main}
  29.  
  30. Document.php
  31.  
  32. /**
  33. * Update website value
  34. * Method set website name instead id value
  35. * @return void
  36. */
  37. private function setWebsiteValue()
  38. {
  39. $value = $this->getData(self::$websiteAttributeCode);
  40. $list = $this->storeManager->getWebsites();
  41. $this->setCustomAttribute(self::$websiteAttributeCode, $list[$value]->getName());
  42. $this->setCustomAttribute(self::$websiteIdAttributeCode, $value);
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement