SocialLogin module compile error

Comments

9 comments

  • Official comment
    Avatar
    Support

    You need to add the patch from the zip folder

    Comment actions Permalink
  • Avatar
    support

    Thanks, that's fixed it!

    0
    Comment actions Permalink
  • Avatar
    Mac J

    Got the same after upgrading the theme to V1.11.7

    Fatal error: Declaration of WeltPixel\SocialLogin\lib\Google\Model::offsetExists(WeltPixel\SocialLogin\lib\Google\mixed $offset): bool must be compatible with ArrayAccess::offsetExists($offset) in /magento/public_html/app/code/WeltPixel/SocialLogin/lib/Google/Model.php on line 251

     

    Unfortunately, the patch included with theme files includes just one file for the SocialLogin module:

    \Patches\Magento 2.4.4\app\code\WeltPixel\SocialLogin\view\frontend\web\js\slreferer.js

    and applying it doesn't help at all.

    Is there any other patch that is missing from this theme version that may sort this issue out?

     

    Magento 2.4.4

     

    Thank you.

    0
    Comment actions Permalink
  • Avatar
    Support

    You need all the patches that are in the pack, one is for Social Login and one for Speed Optimization

    0
    Comment actions Permalink
  • Avatar
    Mac J

    Yes, the patch for SpeedOptimization was also copied over already

    Patches\Magento 2.4.4\app\code\WeltPixel\SpeedOptimization\view\frontend\requirejs-config.js

    Thank you

     

    0
    Comment actions Permalink
  • Avatar
    Supporto

    Hi,

    I've updated to Magento ver. 2.4.5-p1 and Pearl Theme for Magento 2 Open Source v1.11.11 (Nov 23, 2022) Professional Pack


    When I run:

    bin/magento setup:di:compile

    I get the error:
    Fatal error: Declaration of WeltPixel\SocialLogin\lib\Google\Model::offsetExists(WeltPixel\SocialLogin\lib\Google\mixed $offset): bool must be compatible with ArrayAccess::offsetExists($offset) in /usr/www/users/xxx/yyy/app/code/WeltPixel/SocialLogin/lib/Google/Model.php on line 251

    0
    Comment actions Permalink
  • Avatar
    Support

    Add the patch for Social Login from the zip folder that is for Magento 2.4.3. and check again.

    0
    Comment actions Permalink
  • Avatar
    Leigh Whitney

    Hi,

    We have updated to Magento ver. 2.4.4-p8 and Pearl Theme for Magento 2 Open Source v1.11.1 

    We are getting this error during di:compile

    11% < 1 sec 135.0 MiBPHP Fatal error:  During inheritance of ArrayAccess: Uncaught Exception: Deprecated Functionality: Return type of WeltPixel\SocialLogin\lib\Google\Model::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /chroot/home/a032be83/33e54993b9.nxcli.net/app/code/WeltPixel/SocialLogin/lib/Google/Model.php on line 252 in /chroot/home/a032be83/33e54993b9.nxcli.net/vendor/magento/framework/App/ErrorHandler.php:61

     I have seen patches folder and i cannot find any patch for magento 2.4.4 for this file.

     

    0
    Comment actions Permalink
  • Avatar
    Support

    In the Patches folder you will find the 2.4.4 folder:

    0
    Comment actions Permalink

Please sign in to leave a comment.