5

I am new in Magento and I have just installed new version Magento-CE-2.1.0_sample_data-2016-06-23-02-32-34.zip on windows 7 using XAMPP.

When I navigate to products->catalog.php it shows me this error:

There has been an error processing your request

Exception printing is disabled by default for security reasons.

Error log record number: 1662160748

After that I went to var/report and found this error log:

a:4:{i:0;s:210:"Warning: Magento\Framework\Locale\TranslatedLists::getCountryTranslation(): Cannot load resource element 'AN' in C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\Locale\TranslatedLists.php on line 206";i:1;s:8913:"#0 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\Locale\TranslatedLists.php(206): Magento\Framework\App\ErrorHandler->handler(2, 'Magento\\Framewo...', 'C:\\xampp\\htdocs...', 206, Array)
#1 C:\xampp\htdocs\Magento_smpleData\vendor\magento\module-directory\Model\ResourceModel\Country\Collection.php(226): Magento\Framework\Locale\TranslatedLists->getCountryTranslation('AN')
#2 C:\xampp\htdocs\Magento_smpleData\vendor\magento\module-catalog\Model\Product\Attribute\Source\Countryofmanufacture.php(67): Magento\Directory\Model\ResourceModel\Country\Collection->toOptionArray()
#3 C:\xampp\htdocs\Magento_smpleData\vendor\magento\module-catalog\Ui\Component\ColumnFactory.php(65): Magento\Catalog\Model\Product\Attribute\Source\Countryofmanufacture->getAllOptions()
#4 C:\xampp\htdocs\Magento_smpleData\vendor\magento\module-catalog\Ui\Component\Listing\Columns.php(61): Magento\Catalog\Ui\Component\ColumnFactory->create(Object(Magento\Catalog\Model\ResourceModel\Eav\Attribute\Interceptor), Object(Magento\Framework\View\Element\UiComponent\Context), Array)
#5 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\View\Layout\Generator\UiComponent.php(148): Magento\Catalog\Ui\Component\Listing\Columns->prepare()
#6 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\View\Layout\Generator\UiComponent.php(145): Magento\Framework\View\Layout\Generator\UiComponent->prepareComponent(Object(Magento\Catalog\Ui\Component\Listing\Columns))
#7 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\View\Layout\Generator\UiComponent.php(126): Magento\Framework\View\Layout\Generator\UiComponent->prepareComponent(Object(Magento\Ui\Component\Listing))
#8 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\View\Layout\Generator\UiComponent.php(93): Magento\Framework\View\Layout\Generator\UiComponent->generateComponent(Object(Magento\Framework\View\Layout\Data\Structure), 'product_listing', Array, Object(Magento\Framework\View\Layout\Interceptor))
#9 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\View\Layout\GeneratorPool.php(86): Magento\Framework\View\Layout\Generator\UiComponent->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context))
#10 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\View\Layout.php(327): Magento\Framework\View\Layout\GeneratorPool->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context))
#11 C:\xampp\htdocs\Magento_smpleData\var\generation\Magento\Framework\View\Layout\Interceptor.php(89): Magento\Framework\View\Layout->generateElements()
#12 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\View\Layout\Builder.php(129): Magento\Framework\View\Layout\Interceptor->generateElements()
#13 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\View\Page\Builder.php(55): Magento\Framework\View\Layout\Builder->generateLayoutBlocks()
#14 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\View\Layout\Builder.php(65): Magento\Framework\View\Page\Builder->generateLayoutBlocks()
#15 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\View\Layout.php(244): Magento\Framework\View\Layout\Builder->build()
#16 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\View\Layout.php(859): Magento\Framework\View\Layout->build()
#17 C:\xampp\htdocs\Magento_smpleData\var\generation\Magento\Framework\View\Layout\Interceptor.php(414): Magento\Framework\View\Layout->getBlock('menu')
#18 C:\xampp\htdocs\Magento_smpleData\vendor\magento\module-backend\Model\View\Result\Page.php(59): Magento\Framework\View\Layout\Interceptor->getBlock('menu')
#19 C:\xampp\htdocs\Magento_smpleData\var\generation\Magento\Backend\Model\View\Result\Page\Interceptor.php(24): Magento\Backend\Model\View\Result\Page->setActiveMenu('Magento_Catalog...')
#20 C:\xampp\htdocs\Magento_smpleData\vendor\magento\module-catalog\Controller\Adminhtml\Product\Index.php(39): Magento\Backend\Model\View\Result\Page\Interceptor->setActiveMenu('Magento_Catalog...')
#21 C:\xampp\htdocs\Magento_smpleData\var\generation\Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor.php(24): Magento\Catalog\Controller\Adminhtml\Product\Index->execute()
#22 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\App\Action\Action.php(102): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->execute()
#23 C:\xampp\htdocs\Magento_smpleData\vendor\magento\module-backend\App\AbstractAction.php(226): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#24 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\Interception\Interceptor.php(74): Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http))
#25 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\Interception\Chain\Chain.php(70): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->___callParent('dispatch', Array)
#26 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\Interception\Chain\Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Catalog...', 'dispatch', Object(Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor), Array, 'adminAuthentica...')
#27 C:\xampp\htdocs\Magento_smpleData\vendor\magento\module-backend\App\Action\Plugin\Authentication.php(143): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http))
#28 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\Interception\Chain\Chain.php(67): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#29 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\Interception\Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Catalog...', 'dispatch', Object(Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor), Array, 'adminMassaction...')
#30 C:\xampp\htdocs\Magento_smpleData\vendor\magento\module-backend\App\Action\Plugin\MassactionKey.php(33): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#31 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\Interception\Interceptor.php(142): Magento\Backend\App\Action\Plugin\MassactionKey->aroundDispatch(Object(Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#32 C:\xampp\htdocs\Magento_smpleData\var\generation\Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor.php(39): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->___callPlugins('dispatch', Array, Array)
#33 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\App\FrontController.php(55): Magento\Catalog\Controller\Adminhtml\Product\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#34 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\Interception\Interceptor.php(74): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#35 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\Interception\Chain\Chain.php(70): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#36 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\Interception\Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'install')
#37 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\Module\Plugin\DbStatusValidator.php(69): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#38 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\Interception\Interceptor.php(142): Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#39 C:\xampp\htdocs\Magento_smpleData\var\generation\Magento\Framework\App\FrontController\Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#40 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\App\Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#41 C:\xampp\htdocs\Magento_smpleData\vendor\magento\framework\App\Bootstrap.php(258): Magento\Framework\App\Http->launch()
#42 C:\xampp\htdocs\Magento_smpleData\index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#43 {main}";s:3:"url";s:122:"/Magento_smpleData/admin_admin/catalog/product/index/key/a2d73918a83a084046c3e3225633dadf630d7f0e28804cab0a8f522f030c828c/";s:11:"script_name";s:28:"/Magento_smpleData/index.php";}

I tried to serach on google (Cannot load resource element 'AN' in magento) but did not find anything.

In chrome console log :
JQMIGRATE: Logging is active

jquery.js:9666 GET http://localhost/Magento_smpleData/customer/section/load/?sections=&update_section_id=false&_=1470059151909 400 (Bad Request)
GET http://localhost/Magento_smpleData/customer/section/load/?sections=directory-data&update_section_id=false&_=1470059151910 400 (Bad Request)

Any help would be appreciated.

  • Have you found how to clear that issue – aravind Mar 6 at 9:49
0

It is not good solution but temporary fix. You can remove records from "directory_country" table where country id equal to "AN"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.