• Resolved dano1066

    (@dano1066)


    I have upgraded to PHP 7.4 and ever since i did this, I am getting lots of PHP errors and the page building isn’t working. I checked the logs and I see this

    PHP Fatal error: Uncaught Error: [] operator not supported for strings in /wp-content/plugins/so-widgets-bundle/base/inc/post-selector.php:106

    I checked the line of code and it is simply adding an ID to an array. For some reason it seems that this argument is not an array but a string? $query[‘post__not_in’][] = get_the_ID();

    Any idea what could have caused this and if there is a way to fix it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Andrew Misplon

    (@misplon)

    Hi Dano

    Thanks for reaching out.

    We’re offline for the evening in our time zone. Would it be possible to rollback for a bit while we check up on this? We’ll take a look tomorrow and report back. Do you have easy access to the PHP version? Could you perhaps rollback to 7.3.x for the moment?

    Thread Starter dano1066

    (@dano1066)

    It is only impacting the page builder. When I save draft or publish. It will be ok for now since it doesn’t impact the front end. I can get by without going back for now. It’s a brand new server that only has 7.4 setup.

    Plugin Support Andrew Misplon

    (@misplon)

    Thanks for the update. We’ll take a look tomorrow as soon as we’re able to tomorrow and report back then.

    Plugin Contributor alexgso

    (@alexgso)

    Hi Dano,

    I’ve run a few tests using PHP 7.4.1 and I’m not coming across this issue. I don’t see any issues with the flagged line. Does this issue always occur, or does it only occur while using a specific widget?

    Can you please disable all non-SiteOrigin plugins, and switch to a default WordPress theme? This will allow us to establish a baseline and rule out any plugin conflicts or anything like that.

    Kind regards,
    Alex

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Fatal Error After Upgrading to PHP 7.4’ is closed to new replies.