• Resolved Abigailm

    (@abigailm)


    I’m testing PHP 8.0 on various sites I manage for debugging purposes.

    I got this error with the Sky Login Redirect plugin:

    PHP Fatal error: Uncaught Error: Call to undefined function Carbon_Fields\Helper\mb_convert_case() in /wp-content/plugins/sky-login-redirect/vendor/htmlburger/carbon-fields/core/Helper/Helper.php:395

    The site crashes but functions fine with the SLR plugin disabled.

    This is NOT an urgent problem — I have reverted to PHP 7.4 — Just letting you know.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Matt Biscay

    (@skyminds)

    Hello @abigailm,

    Thank you for the report.

    Can you check that the mbstring extension package is installed on the PHP8.0 box?

    Best,
    Matt

    Thread Starter Abigailm

    (@abigailm)

    No — it wasn’t — I have installed it now and will test later tonight and report back. Thanks for the heads up!

    Plugin Author Matt Biscay

    (@skyminds)

    You’re welcome! I tested it with PHP8 on my local machine and it looks good – let me know if you get any issue.

    Best,
    Matt

    Thread Starter Abigailm

    (@abigailm)

    Matt, I have now tested and site function is fine.

    However, I am seeing multiple PHP warnings

    PHP Warning: Undefined variable $class in .../plugins/sky-login-redirect/includes/options.php on line 698

    PHP Warning: Undefined array key "redirect_to" in .../plugins/sky-login-redirect/sky-login-redirect.php on line 281

    PHP Warning: Undefined array key "HTTP_REFERER" in .../plugins/sky-login-redirect/sky-login-redirect.php on line 465

    Various “undefined” warnings seem to be thrown off a lot with PHP 8 — they don’t impact site function, but they do have a tendency to fill up logs. (I have tried to disable logging of these on my sites, but they still show up in my log, unfortunately)

    • This reply was modified 3 years, 11 months ago by Abigailm. Reason: additional errors seen in logs
    Plugin Author Matt Biscay

    (@skyminds)

    Hi @abigailm

    Thank you for reporting those, I have corrected them and will release a new version of the plugin later on today.

    Best,
    Matt

    Thread Starter Abigailm

    (@abigailm)

    Thanks — I can confirm that this has eliminated the warning on my end.

    Plugin Author Matt Biscay

    (@skyminds)

    Thank you for confirming @abigailm !

    Have a great day,
    Matt

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Bug Report: PHP 8.0 Fatal error’ is closed to new replies.