• Resolved Paul

    (@paulschiretz)


    Hi just wanted to report some PHP Deprecated notices you should take care of for php 8.1:

    [28-Sep-2022 16:47:02 UTC] PHP Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in XXX\plugins\translatepress-multilingual\includes\class-url-converter.php on line 782

    No issue, just a note 😉

    All the best,
    Paul

    • This topic was modified 3 years, 8 months ago by Paul.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    Thank you for reaching us!

    We already know about this issue and we track it. When the developers will solve this, I will contact you.

    Have a great day!

    Kind Regards,

    sharelink

    (@harmonicnewmedia)

    Hi Anghel,

    I have the same issue. Is there any fix for this yet?

    Thanks

    Hi all,

    Not yet fixed.

    For handyman, quick ‘n dirty patch:
    file:
    XXX\plugins\translatepress-multilingual\includes\class-url-converter.php
    function:
    cur_page_url()
    line:
    YYY from error message
    cast trim arg to string:
    $home_path = trim((string) parse_url( $abs_home, PHP_URL_PATH ), '/' );

    Regards.

    Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    Thank you for your patience!

    Update to the latest version of TranslatePress and see if the issue was fixed.

    Let me know about this!

    Kind Regards,

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘php 8.1’ is closed to new replies.