Skip to content
This repository was archived by the owner on Apr 30, 2023. It is now read-only.

500 Error after enabling module #56

Open
subineseller opened this issue Jun 15, 2021 · 3 comments
Open

500 Error after enabling module #56

subineseller opened this issue Jun 15, 2021 · 3 comments

Comments

@subineseller
Copy link

Error 500 error after enabling the module, Installed using composer
php-business-sdk installed
Home page loading fine
category and product page showing Internal Server Error.
https://prnt.sc/15go3qc

@kanhaiya5590
Copy link

Hi @subineseller ,

Try this - magento/magento2#21663 (comment) @scommercemage provide some fix

Check your custom modules or extensions and find if you are using either of the following -:

Magento\Catalog\Model\Product (in the constructor)

$this->_product->load($id)

or

$this->_objectManager->get('\Magento\Catalog\Model\Product')->load($id)

If yes then change it to use \Magento\Catalog\Api\ProductRepositoryInterface and load product using getById($id) instead.

Hope this solve your concern

Most of the changes updated in master branch #57

else pull from master branch

@subineseller
Copy link
Author

Hi @kanhaiya5590

We checked all other third party Modules, no issues with any of our other modules.
Issue only showing when we enable facebook plugin.

@zlik
Copy link
Contributor

zlik commented Jun 18, 2021

@subineseller, can you please pull new logs from var/log/exception.log andvar/log/facebook-business-extension.log right after you try to open category or product page? Also, which extension version are you using? Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants