-
Couldn't load subscription status.
- Fork 33
[Bug]: Magento 2.4.x and PHP8.x Compatibiliy #131
Description
Contact Details
What happened?
It appears the devs have done the hard work to address compatibility with Magento 2.4.x and PHP8.x, however they have not pushed a stable release (expected 1.4.6) for us to install.
Until a new version is released, we can install the development version dev-main by:
- Adding this github repo to composer
Edit the composer.json in the magento root directory, find and replace this:
"repositories": [
{
"type": "composer",
"url": "https://repo.magento.com/"
}
],
WITH
"repositories": [
{
"type": "github",
"url": "https://github.com/facebookincubator/facebook-for-magento2"
},
{
"type": "composer",
"url": "https://repo.magento.com/",
"exclude": ["facebook/facebook-for-magento2"]
}
],
-
Install with composer
Install the dev-main release with the commandcomposer require facebook/facebook-for-magento2:dev-main. -
Upgrade
The usual commands we love and enjoy:
bin/magento maint:en
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy
bin/magento maint:dis
This change will most likely need to be reverted once a stable version has been released as the dev-main may create issues in the future.
This will most likely be in the form of:
composer remove facebook/facebook-for-magento2:dev-main- Remove the above changes to the composer file.
composer require facebook/facebook-for-magento2
I hope this helps you.
Magento Version
2.4.x
Plugin Version
1.4.5
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct