Support » Plugin: Max Mega Menu » PHP 7 compatibility

  • Resolved forthinc

    (@forthinc)


    We are about to update our site to PHP 7 and ran a compatibility checker against all our plugins. MaxMegaMenu is generates the errors listed below. Will there be a PHP 7 compatible version? We have the MaxMegaMenu Pro version. (The Pro part passes; the main plugin does not.)

    3300 | ERROR | ‘string’ is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    3498 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword ‘string’ (since version 7.0)
    3611 | ERROR | ‘string’ is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    3855 | ERROR | ‘string’ is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)

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

    (@megamenu)

    Hi, this was answered through Pro support over the weekend, but in case anyone else is interested, here’s my response:

    Did the error you’ve pasted come from the WP Engine PHP Compatibility Checker plugin? If so, the error you see is a false positive as reported here:

    https://github.com/wimg/PHPCompatibility/issues/115

    (the Compatibility Checker plugin uses this library).

    The ‘error’ is coming from the scssphp library that Max Mega Menu uses to compile the menu CSS. The latest update for scssphp is not compatible with < PHP 5.4, so it’s not so easy to update it. If I did update it, it would keep the Compatibility Checker plugin happy, but we’d lose compatibility with PHP 5.4 unless I introduced some complexity to support both versions (something I’d really prefer not to do – I value simplicity :))

    For further reassurance, I have been using PHP7 on maxmegamenu.com for the past 7 or 8 months.

    Regards,
    Tom

    • This reply was modified 1 year, 2 months ago by  megamenu.

    I had the same results using the wpengine php compatibility plugin. Sounds like we’re good, but I’m replying so that I can receive follow-up emails.

    Thanks for all you do!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP 7 compatibility’ is closed to new replies.