-
Notifications
You must be signed in to change notification settings - Fork 36
[Bug]: Does not work with Magento2.4.4 ECE , it shows all pages blank #119
Comments
Given the low consideration that the facebook dev team is giving to this topic, here is the solution for compatibility with php 8.1. -row 154 -row 163 -row 173 -row 186 |
As for: |
/vendor/facebook/facebook-for-magento2/Helper/MagentoDataHelper.php on line 481 missing empty string control. /vendor/facebook/facebook-for-magento2/Model/Feed/CategoryCollection.php on line 306 missing is_array control. |
This is a critical issue! @angelo983 , Were you able to resolve to make the module usable? |
Yes @davirs but I'm still monitoring if data are correctly sent to the Server Pixel |
/var/log/facebook-business-extension.log grows rapidly php-fpm_error.log is continously spammed by this string: about 40.000 rows per day |
vendor/facebook/facebook-for-magento2/Logger/Handler.php |
@zlik Same error here why Facebook is not updating the module to have support for php 8.1 ? |
@vardhmankamani1 Getting the same issue in Magento 2.4.5-p1 Enterprise edition. Did you get a chance to resolve this? Any suggestion or solution ??? |
Hello @mrramanathan31 Yes, We created the custom patch for that and now we are testing the module. The following file you need to modify. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Event.php
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Content.php
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/UserData.php
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/CustomData.php
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/AdsPixelSettings.php
vendor/facebook/facebook-for-magento2/Model/Feed/CategoryCollection.php
vendor/facebook/facebook-for-magento2/Helper/MagentoDataHelper.php
|
@vardhmankamani1 given you have listed the files to be edited in #119 (comment) and mentioned that a custom patch has been created could you please provide so that we could apply it using https://github.com/cweagans/composer-patches |
Update for those interested below are the .patch files based on recommended changes from #119 (comment) |
Updated above comment to include file |
@Ig0r-M-magic42 Is this patch compatible with Magento 2.4.5-p1 Enterprise edition ? |
@Ig0r-M-magic42 Please remove the below duplicated code from your patch for facebook sdk.
@@ -160,7 +160,7 @@ class AdsPixelSettings implements ArrayAccess {
@@ -170,7 +170,7 @@ class AdsPixelSettings implements ArrayAccess {
|
I am working on 2.4.4-p2 enterprise update thus cannot confirm this. |
with vaimo
or cweagans
inside this file you add all your patches:
all the patch files you added to the above
|
Workaround provided in #131 |
Contact Details
No response
What happened?
I Installed Facebook Business Extension(1.4.5) on the frontend all pages are blank and showing below error During inheritance of ArrayAccess: Uncaught Exception: Deprecated Functionality: Return type of FacebookAds\Object\ServerSide\AdsPixelSettings::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Magento Version
2.4.4
Plugin Version
1.4.5
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: