• Resolved Andrzej Klasén

    (@bibeldans)


    Can’t make new backups in Duplicator:

    [PHP ERR][ISSUE] MSG:Using ${var} in strings is deprecated, use {$var} instead [CODE:8192|FILE:/…/plugins/mail-mint/vendor/posthog/posthog-php/lib/PostHog.php|LINE:176]

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Andrzej Klasén

    (@bibeldans)

    ${var}, {$var}

    Thread Starter Andrzej Klasén

    (@bibeldans)

    Changing:

        self::assert($distinctId, “PostHog::${type}() requires distinctId”);

    To:

        self::assert($distinctId, “PostHog::{$type}() requires distinctId”);

    Solved the issue!

    Plugin Support Sakibul Hasan

    (@sakibul074)

    Hi @bibeldans , thanks for sharing the details!

    Yes, this issue is related to a deprecated PHP syntax in the PostHog library bundled inside Mail Mint. The ${var} style is deprecated in newer PHP versions, and replacing it with {$var} — just as you did is the correct fix.

    If you have any other questions or need any further assistance, feel free to reach out to our support or open a new thread anytime.

    Thanks!

    • This reply was modified 4 months, 3 weeks ago by Sakibul Hasan.
Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.