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

[Bug]: Magento 2.4.x and PHP8.x Compatibiliy #131

@ecrocombe

Description

@ecrocombe

Contact Details

[email protected]

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:

  1. 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"]
        }
    ],
  1. Install with composer
    Install the dev-main release with the command composer require facebook/facebook-for-magento2:dev-main.

  2. 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:

  1. composer remove facebook/facebook-for-magento2:dev-main
  2. Remove the above changes to the composer file.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions