0

I moved a Magento project from localhost to the server. its working fine in localhost but when I move it to the server and change the configuration (env.php and in the table) it's showing below error. PHP version and all PHP-extensions are selected in cPanel

1 exception(s):
Exception #0 (Exception): Notice: Undefined index: PK_MT_CMS_PAGE in /home3/moshimos/public_html/mytraveller_demo/vendor/magento/framework/EntityManager/EntityMetadata.php on line 96

Exception #0 (Exception): Notice: Undefined index: PK_MT_CMS_PAGE in /home3/moshimos/public_html/mytraveller_demo/vendor/magento/framework/EntityManager/EntityMetadata.php on line 96
#1 Magento\Framework\EntityManager\EntityMetadata->getLinkField() called at [vendor/magento/module-cms/Model/ResourceModel/Page/Collection.php:103]
#2 Magento\Cms\Model\ResourceModel\Page\Collection->_renderFiltersBefore() called at [vendor/magento/framework/Data/Collection/AbstractDb.php:342]
#3 Magento\Framework\Data\Collection\AbstractDb->_renderFilters() called at [vendor/magento/framework/Data/Collection/AbstractDb.php:575]
#4 Magento\Framework\Data\Collection\AbstractDb->loadWithFilter(false, false) called at [vendor/magento/framework/Data/Collection/AbstractDb.php:562]
#5 Magento\Framework\Data\Collection\AbstractDb->load() called at [vendor/magento/framework/Data/Collection.php:835]
#6 Magento\Framework\Data\Collection->getIterator() called at [vendor/magento/module-cms/Model/ResourceModel/AbstractCollection.php:190]
#7 Magento\Cms\Model\ResourceModel\AbstractCollection->toOptionIdArray() called at [vendor/magento/module-cms/Model/Config/Source/Page.php:42]
#8 Magento\Cms\Model\Config\Source\Page->toOptionArray(false) called at [vendor/magento/module-config/Model/Config/Structure/Element/Field.php:458]
#9 Magento\Config\Model\Config\Structure\Element\Field->_getOptionsFromSourceModel(&Magento\Cms\Model\Config\Source\Page#0000000057dcd94800000000015c382c#) called at [vendor/magento/module-config/Model/Config/Structure/Element/Field.php:376]
#10 Magento\Config\Model\Config\Structure\Element\Field->getOptions() called at [generated/code/Magento/Config/Model/Config/Structure/Element/Field/Interceptor.php:323]
#11 Magento\Config\Model\Config\Structure\Element\Field\Interceptor->getOptions() called at [vendor/magento/module-config/Block/System/Config/Form.php:394]
#12 Magento\Config\Block\System\Config\Form->_initElement(&Magento\Config\Model\Config\Structure\Element\Field\Interceptor#0000000057dcd3e800000000015c382c#, &Magento\Framework\Data\Form\Element\Fieldset#0000000057dcd94600000000015c382c#, 'web/default/cms_...', '', '') called at [vendor/magento/module-config/Block/System/Config/Form.php:316]
#13 Magento\Config\Block\System\Config\Form->initFields(&Magento\Framework\Data\Form\Element\Fieldset#0000000057dcd94600000000015c382c#, &Magento\Config\Model\Config\Structure\Element\Group\Interceptor#0000000057dcd5b600000000015c382c#, &Magento\Config\Model\Config\Structure\Element\Section#0000000057dcd5b900000000015c382c#) called at [vendor/magento/module-config/Block/System/Config/Form.php:256]
#14 Magento\Config\Block\System\Config\Form->_initGroup(&Magento\Config\Model\Config\Structure\Element\Group\Interceptor#0000000057dcd5b600000000015c382c#, &Magento\Config\Model\Config\Structure\Element\Section#0000000057dcd5b900000000015c382c#, &Magento\Framework\Data\Form#0000000057dcd89a00000000015c382c#) called at [vendor/magento/module-config/Block/System/Config/Form.php:202]
#15 Magento\Config\Block\System\Config\Form->initForm() called at [vendor/magento/module-config/Block/System/Config/Form.php:538]
#16 Magento\Config\Block\System\Config\Form->_beforeToHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:667]
#17 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/magento/framework/View/Layout.php:557]
#18 Magento\Framework\View\Layout->_renderBlock('system\config\fo...') called at [vendor/magento/framework/View/Layout.php:533]
#19 Magento\Framework\View\Layout->renderNonCachedElement('system\config\fo...') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#20 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('system\config\fo...') called at [vendor/magento/framework/View/Layout.php:488]
#21 Magento\Framework\View\Layout->renderElement('system\config\fo...', true) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#22 Magento\Framework\View\Layout\Interceptor->renderElement('system\config\fo...', true) called at [vendor/magento/framework/View/Element/AbstractBlock.php:508]
#23 Magento\Framework\View\Element\AbstractBlock->getChildHtml('form') called at [vendor/magento/module-config/view/adminhtml/templates/system/config/edit.phtml:28]
#24 include('/home3/moshimos/...') called at [vendor/magento/framework/View/TemplateEngine/Php.php:59]
#25 Magento\Framework\View\TemplateEngine\Php->render(&Magento\Config\Block\System\Config\Edit#0000000057dcd61e00000000015c382c#, '/home3/moshimos/...', array()) called at [vendor/magento/framework/View/Element/Template.php:271]
#26 Magento\Framework\View\Element\Template->fetchView('/home3/moshimos/...') called at [vendor/magento/framework/View/Element/Template.php:301]
#27 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/magento/module-backend/Block/Template.php:129]
#28 Magento\Backend\Block\Template->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:668]
#29 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/magento/framework/View/Layout.php:557]
#30 Magento\Framework\View\Layout->_renderBlock('system.config.ed...') called at [vendor/magento/framework/View/Layout.php:533]
#31 Magento\Framework\View\Layout->renderNonCachedElement('system.config.ed...') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#32 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('system.config.ed...') called at [vendor/magento/framework/View/Layout.php:488]
#33 Magento\Framework\View\Layout->renderElement('system.config.ed...', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#34 Magento\Framework\View\Layout\Interceptor->renderElement('system.config.ed...', false) called at [vendor/magento/framework/View/Layout.php:585]
#35 Magento\Framework\View\Layout->_renderContainer('content', false) called at [vendor/magento/framework/View/Layout.php:535]
#36 Magento\Framework\View\Layout->renderNonCachedElement('content') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#37 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('content') called at [vendor/magento/framework/View/Layout.php:488]
#38 Magento\Framework\View\Layout->renderElement('content', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#39 Magento\Framework\View\Layout\Interceptor->renderElement('content', false) called at [vendor/magento/framework/View/Layout.php:585]
#40 Magento\Framework\View\Layout->_renderContainer('admin.scope.col....', false) called at [vendor/magento/framework/View/Layout.php:535]
#41 Magento\Framework\View\Layout->renderNonCachedElement('admin.scope.col....') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#42 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('admin.scope.col....') called at [vendor/magento/framework/View/Layout.php:488]
#43 Magento\Framework\View\Layout->renderElement('admin.scope.col....', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#44 Magento\Framework\View\Layout\Interceptor->renderElement('admin.scope.col....', false) called at [vendor/magento/framework/View/Layout.php:585]
#45 Magento\Framework\View\Layout->_renderContainer('main.col', false) called at [vendor/magento/framework/View/Layout.php:535]
#46 Magento\Framework\View\Layout->renderNonCachedElement('main.col') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#47 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('main.col') called at [vendor/magento/framework/View/Layout.php:488]
#48 Magento\Framework\View\Layout->renderElement('main.col', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#49 Magento\Framework\View\Layout\Interceptor->renderElement('main.col', false) called at [vendor/magento/framework/View/Layout.php:585]
#50 Magento\Framework\View\Layout->_renderContainer('page.main.contai...', false) called at [vendor/magento/framework/View/Layout.php:535]
#51 Magento\Framework\View\Layout->renderNonCachedElement('page.main.contai...') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#52 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.main.contai...') called at [vendor/magento/framework/View/Layout.php:488]
#53 Magento\Framework\View\Layout->renderElement('page.main.contai...', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#54 Magento\Framework\View\Layout\Interceptor->renderElement('page.main.contai...', false) called at [vendor/magento/framework/View/Layout.php:585]
#55 Magento\Framework\View\Layout->_renderContainer('page.content', false) called at [vendor/magento/framework/View/Layout.php:535]
#56 Magento\Framework\View\Layout->renderNonCachedElement('page.content') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#57 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.content') called at [vendor/magento/framework/View/Layout.php:488]
#58 Magento\Framework\View\Layout->renderElement('page.content', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#59 Magento\Framework\View\Layout\Interceptor->renderElement('page.content', false) called at [vendor/magento/framework/View/Layout.php:585]
#60 Magento\Framework\View\Layout->_renderContainer('page.wrapper', false) called at [vendor/magento/framework/View/Layout.php:535]
#61 Magento\Framework\View\Layout->renderNonCachedElement('page.wrapper') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#62 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.wrapper') called at [vendor/magento/framework/View/Layout.php:488]
#63 Magento\Framework\View\Layout->renderElement('page.wrapper', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#64 Magento\Framework\View\Layout\Interceptor->renderElement('page.wrapper', false) called at [vendor/magento/framework/View/Layout.php:585]
#65 Magento\Framework\View\Layout->_renderContainer('backend.page', false) called at [vendor/magento/framework/View/Layout.php:535]
#66 Magento\Framework\View\Layout->renderNonCachedElement('backend.page') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#67 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('backend.page') called at [vendor/magento/framework/View/Layout.php:488]
#68 Magento\Framework\View\Layout->renderElement('backend.page', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#69 Magento\Framework\View\Layout\Interceptor->renderElement('backend.page', false) called at [vendor/magento/framework/View/Layout.php:585]
#70 Magento\Framework\View\Layout->_renderContainer('root', false) called at [vendor/magento/framework/View/Layout.php:535]
#71 Magento\Framework\View\Layout->renderNonCachedElement('root') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#72 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('root') called at [vendor/magento/framework/View/Layout.php:488]
#73 Magento\Framework\View\Layout->renderElement('root', true) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#74 Magento\Framework\View\Layout\Interceptor->renderElement('root') called at [vendor/magento/framework/View/Layout.php:954]
#75 Magento\Framework\View\Layout->getOutput() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:492]
#76 Magento\Framework\View\Layout\Interceptor->getOutput() called at [vendor/magento/framework/View/Result/Page.php:258]
#77 Magento\Framework\View\Result\Page->render(&Magento\Framework\App\Response\Http\Interceptor#0000000057dcd0b500000000015c382c#) called at [vendor/magento/framework/View/Result/Layout.php:171]
#78 Magento\Framework\View\Result\Layout->renderResult(&Magento\Framework\App\Response\Http\Interceptor#0000000057dcd0b500000000015c382c#) called at [generated/code/Magento/Backend/Model/View/Result/Page/Interceptor.php:193]
#79 Magento\Backend\Model\View\Result\Page\Interceptor->renderResult(&Magento\Framework\App\Response\Http\Interceptor#0000000057dcd0b500000000015c382c#) called at [vendor/magento/framework/App/Http.php:140]
#80 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:24]
#81 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:258]
#82 Magento\Framework\App\Bootstrap->run(&Magento\Framework\App\Http\Interceptor#0000000057dcd0bb00000000015c382c#) called at [index.php:39]

This error is showing only when I open the frontend or Store>Configuration>General>web I've created the custom theme and created a layout for home, Set that layout from web>default layouts option

after moving to server this issue is coming.

please help me resolve it

Your Answer

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

Browse other questions tagged or ask your own question.