facebookarchive / facebook-for-magento2

* Pixel on all pages, which trigger events link, PageView, ViewContent, AddToCart, Initiatecheckout and Purchase.* In the background, Syncs the products from the merchants product catalog to Facebook Catalog.* Stores all the data, like pixel id, catalog id, business maanger id, on to the local database on the instance.
Other
46 stars 36 forks source link

Page is not working 500 internal server error #48

Open sumeetmagento opened 3 years ago

sumeetmagento commented 3 years ago

There is no error in Magento logs so when we check on server logs then got his error -

AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined method Facebook\\BusinessExtension\\Model\\System\\Config::getOutOfStockThreshold() in /var/www/vhosts/xyx/httpdocs/app/code/Facebook/BusinessExtension/Model/Product/Feed/Builder/Inventory.php:126\nStack trace:\n#0 /var/www/vhosts/xyz/httpdocs/app/code/Facebook/BusinessExtension/Model/Product/Feed/Builder.php(362): Facebook\\BusinessExtension\\Model\\Product\\Feed\\Builder\\Inventory->getAvailability()\n#1 /var/www/vhosts/xyz/httpdocs/app/code/Facebook/BusinessExtension/Model/Product/Feed/Method/BatchApi.php(69): Facebook\\BusinessExtension\\Model\\Product\\Feed\\Builder->buildProductEntry(Object(Magento\\Catalog\\Model\\Product\\Interceptor))\n#2 /var/www/vhosts/xyz/httpdocs/app/code/Facebook/BusinessExtension/Observer/ProcessProductAfterSaveEventObserver.php(57): Facebook\\BusinessExtension\\Model\\Product\\Feed\\Method\\BatchApi->buildProductRequest(Object(Magento\\Catalog\\Model\\Product\\Interceptor))\n#3 /var/www/vhosts/m...', referer: https://xyz/admin_xyz/catalog/product/edit/id/22106/key/fccd6d61dda1f3fd1da63fa8c668c2b3a84f37d2bc1a090c195f8bd2b8903a1b/

devteamnau commented 3 years ago

Install it using Composer it has dependency on php-business-sdk. it will resolve the issue

sumeetmagento commented 3 years ago

@naumansigma thanks for your reply but this issue is coming when we download this extension from magento market place and when we download this extension from git then it is working fine.

aziwaan commented 3 years ago

Hi @sumeetmagento, Im facing this error just now after trying to uninstall this extension. Have you any links to uninstall steps. Ive removed the extension, removed the SDK composer package, removed the Facebook table in the DB, Upgraded the DB, Compiled DI, Indexed and Cleared caches but Im still getting the error when loading the products list in the backend.

Ayoub-ELHanda commented 2 years ago

Hi @sumeetmagento did you fix the error plz hep ??