• Resolved colin301

    (@colin301)


    I’m using EME plugin on a Siteground hosted site. Siteground’s PHP Config tool tells me the plugin is incompatible with PHP 7.0 and shows this error…

    FILE: …/wp-content/plugins/events-made-easy/payment_gateways/webmoney/webmoney.inc.php
    ——————————————————————–

    FOUND 2 ERRORS AFFECTING 1 LINE
    ——————————————————————–
    64 | ERROR | Function ereg() is deprecated since PHP 5.3 and removed since PHP 7.0; use preg_match instead
    64 | ERROR | Extension ‘ereg’ is deprecated since PHP 5.3 and removed since PHP 7.0 – use pcre instead.

    This is line 64 of webmoney.inc.php…
    if (!ereg('^[ZREUD][0-9]{12}$', $tmp))

    Do EME developers plan to fix this issue anytime soon?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter colin301

    (@colin301)

    I may have found a solution to this issue. After replacing line 64 of webmoney.inc.php with the code below, Siteground’s PHP Config tool tells me the site is PHP 7.0 compatible and my EME generated events list page still works as before.

    if (!preg_match('/^[ZREUD][0-9]{12}$/', $tmp))

    I’m no PHP expert so can anyone confirm if this is a good fix for the PHP compatibility issue?

    Plugin Author Franky

    (@liedekef)

    It is a good fix. But I am only using the webmoney libraries, so I’ll check for a newer version and include it in the next release.

    Plugin Author Franky

    (@liedekef)

    Apparently I’m using a simplistic interface to webmoney (not a full blown api), so this fix does the trick.

    Thread Starter colin301

    (@colin301)

    Thanks Franky!

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

The topic ‘EME not compatible with PHP 7’ is closed to new replies.