• Hi,

    After upgrading from php7.4 to 8.x (I tried 8.0, 8.1 and 8.2) i get following error, when calling the function:

    Trying to access array offset on value of type bool in //wp-content/plugins/custom-simple-rss/custom-simple-rss.php on line 732

    The line 732 is following:

    $thumb_url = $thumb[‘0’];

    Any help is very appreciated.

    Kind regards

    Don

Viewing 1 replies (of 1 total)
  • Thread Starter dwaber

    (@dwaber)

    When I expand the code from

    $thumb_url = $thumb[‘0’]; to $thumb_url = $thumb[‘0’] ?? null;

    and also the next two lines:

    $thumb_width = $thumb[1] ?? null;
    $thumb_height = $thumb[2] ?? null;

    Then it works again.

    I don’t know, if this is the right way. But could you fix this in the code?

Viewing 1 replies (of 1 total)
  • The topic ‘Error after update to php8.x’ is closed to new replies.