Magento CLI 2.3.3
I get the above error when visiting my homepage, checking the exception log i see this
main.CRITICAL: Class Magento\Framework\App\Http\Interceptor does not exist {"exception":"[object] (ReflectionException(code: -1): Class Magento\Framework\App\Http\Interceptor does not exist at /home/admin/public_html/vendor/magento/framework/Code/Reader/ClassReader.php:19)"} []
After looking for answers I found this which I run
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:Deploy -f
chmod -R 777 var/ generated/
But now my homepage says
Please upgrade your database: Run bin/magento setup:upgrade
from the Magento root directory.
The following modules are outdated:
Temando_Shipping data: current version - 1.5.0, required version - 1.6.0
Vertex_Tax data: current version - 100.3.0, required version - 100.4.0
Yotpo_Yotpo data: current version - none, required version - 3.0.0
So I run
bin/magento setup:upgrade
and terminal says
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'origin.address.countryCode' for key 'PRIMARY', query was: INSERT INTO `temando_product_attribute_mapping` (`node_path_id`,`label`,`description`,`mapping_attribute_id`,`is_default`) VALUES (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?)
and my homepage is blank.
If anyone can help me going round in circles with this I would much appreciate it. Thanks
After trying the first 2 answers I check the error report again
{"0":"Please upgrade your database: Run \"bin\/magento setup:upgrade\" from the Magento root directory.\nThe following modules are outdated:\nTemando_Shipping data: current version - none, required version - 1.6.0\nVertex_Tax data: current version - none, required version - 100.4.0\nYotpo_Yotpo data: current version - none, required version - 3.0.0","1":"<pre>#1 Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/module-page-cache\/Model\/App\/FrontController\/BuiltinPlugin.php:73]\n#2 Magento\\PageCache\\Model\\App\\FrontController\\BuiltinPlugin->aroundDispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:135]\n#3 Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#4 Magento\\Framework\\App\\FrontController\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Framework\/App\/FrontController\/Interceptor.php:26]\n#5 Magento\\Framework\\App\\FrontController\\Interceptor->dispatch() called at [vendor\/magento\/framework\/App\/Http.php:137]\n#6 Magento\\Framework\\App\\Http->launch() called at [vendor\/magento\/framework\/App\/Bootstrap.php:261]\n#7 Magento\\Framework\\App\\Bootstrap->run() called at [index.php:39]\n<\/pre>","url":"\/","script_name":"\/index.php"}
setup_modules
table from database and try againsetup:upgrade
again