• Resolved Tracy Levesque

    (@liljimmi)


    πŸ³οΈβ€πŸŒˆ YIKES, Inc. Co-Owner

    Hello,

    We had a PHP 8 compatibility scan done and this plugin came up with a recurring errors.

    For example:

    Error in plugins/pixelyoursite/vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Traits/AdLabelAwareCrudObjectTrait.php: ‘object’ is a soft reserved keyword as of PHP version 7.0 and a reserved keyword as of PHP version 7.2 and should not be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)

    This error came up about 60 times in various files.

    There is also this error:

    Error in plugins/pixelyoursite/vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Http/Adapter/Curl/AbstractCurl.php: The “age” parameter for function curl_version() is deprecated since PHP 7.4 and removed since PHP 8.0

    Will these be fixed by the end of PHP 7.4 support next month?

    Thank you.
    -Tracy

Viewing 1 replies (of 1 total)
  • Plugin Author PixelYourSite

    (@pixelyoursite)

    The plugin runs on PHP 8 with no problems.

    These lines you mentioned are part of the Meta’s API, and they probably have some PHP 8 backup already. I would say they are just false positives.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP 8 Errors’ is closed to new replies.