cancel
Showing results for 
Search instead for 
Did you mean: 

There has been an error processing your request

There has been an error processing your request

Hello, 

i build my site "magento 2 - 2.3.2" on xampp (localhost) and its working fine.
when i upload the site on my cloud "hostgator" 
i see the error: 

Notice: Undefined index: PK_CMS_PAGE in /home3/hbq4qst8/public_html/vendor/magento/framework/EntityManager/EntityMetadata.php on line 96

 i try to resolve by some solution but error still Smiley Sad
please help 

 

 

Capture300.PNG

1 REPLY 1

Re: There has been an error processing your request

It seems that the data is not imported properly on the new server.

 

I think your cms_page table in the database was missing its primary key values. Please check this table once. Some time if you export data from phpmyadmin it don't export all the data. You need to do it through command line to be sure that all data is exported properly. Use below command to export data.

mysqldump -u "username" -p "dbname" > abc.sql

enter password

To import through command line use
mysql -u "username" -p "dbname" < abc.sql 
enter password.