• Resolved madri2

    (@madri2)


    On php 8, sending null in functions that expect strings will give a notice.

    On Tools.php, method getOptions, you have
    $homepath = ltrim(parse_url(site_url(), PHP_URL_PATH), '/');

    In case the path is empty, parse_url returns null, then ltrim gives a notice because you’re not sending a string.

    You should replace it with
    $homepath = ltrim(parse_url(site_url(), PHP_URL_PATH)??'', '/');

    See this :

    https://3v4l.org/QRC1o

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Darrel

    (@johndarrel)

    Hi @madri2,

    Thank you for the suggestion. We will work on this asap.

    Best, John

    Plugin Author John Darrel

    (@johndarrel)

    Hi,

    We add a fix for PHP8.1 in the current version of the plugin.

    You can rollback (from Hide My WP > Backup / Restore) and reinstall the last version or wait for the next version release.

    Best, John

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notice/Error on PHP8.1’ is closed to new replies.