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

Website breaks and Stops Working after new connection #18

Open alka1197 opened 3 years ago

alka1197 commented 3 years ago

Whenever we configured the facebook business extension , website stops working.It shows "This page isn't working". Magento Version :2.3.1

Do you have any idea,then kindly let me know Thank you!

xxu3-sc commented 3 years ago

Sorry to hear it. Could you attach of a screenshot of logs? It should be located at $MagentoRoot/var/log/facebook-for-magento.log and $MagentoRoot/var/log/debug.log

fteixeira777 commented 3 years ago

I'm getting the same error! Just homepage works. I have to comment some lines in this files: Helper\ServerEventFactory.php Helper\ServerSideHelper.php

Now i can access to categories page with no problems, but some events probably wont work.

If anyone finds a solution please post it.

fteixeira777 commented 3 years ago

i think the sdk is the problem, because it cant find some classes: FacebookAds\Api; FacebookAds\Object\ServerSide\Event; FacebookAds\Object\ServerSide\EventRequestAsync;

xxu3-sc commented 3 years ago

Yeah our extension depends on facebook/php-business-sdk, so you need to run composer require facebook/php-business-sdk as the first step.

fteixeira777 commented 3 years ago

Yeah our extension depends on facebook/php-business-sdk, so you need to run composer require facebook/php-business-sdk as the first step.

Yes, and i did it!