• Resolved cielzhao

    (@cielzhao)


    I upgraded my php to V7.1.0 Release.

    However, my site start to retrun 500.

    This error was detected:

    Fatal error: Cannot use lexical variable $fucks as a parameter name in wp-content/plugins/mivhak/vendor/askupa-software/amarkal-framework/Extensions/WordPress/Editor/FormCallback.php on line 25

    I have to close this plugin in database or my site will crash.

    Please fix it as soon. Many Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Yoav Kadosh

    (@ykadosh)

    Hey there,
    I’m not sure what’s going on, but there is no variable named $fucks in mivhak/vendor/askupa-software/amarkal-framework/Extensions/WordPress/Editor/FormCallback.php. As a matter of fact, there is no, and shouldn’t be, a $fucks variable anywhere in the entire plugin’s code.
    I suggest you look at the source code here and compare it to whatever you have on your server, perhaps you’ve been hacked.

    • This reply was modified 7 years, 11 months ago by Yoav Kadosh.
    • This reply was modified 7 years, 11 months ago by Yoav Kadosh.
    Thread Starter cielzhao

    (@cielzhao)

    In fact, It’s $fields.
    I thought if it was a PHP Keyword so then modified it.
    The problem exists.

    Thread Starter cielzhao

    (@cielzhao)

    So It’s not a keyword.
    And sorry for my impulsion.

    Plugin Contributor Yoav Kadosh

    (@ykadosh)

    No worries ??
    I’ve tested it up to PHP 7.0.12 so far. I don’t have access to PHP 7.1.0 in the testing environment that i’m using, but i’ll test it as soon as i’m able to.

    Thread Starter cielzhao

    (@cielzhao)

    Thank you!
    And now I restored to PHP 7.0.13, then it began to run normally.

    I have this same problem. Any solution yet?

    Thread Starter cielzhao

    (@cielzhao)

    It seems that the only solution is to downgrade PHP to 7.0.x. What a pity!

    PHP Fatal error: Cannot use lexical variable $fields as a parameter name.

    This is a problem in https://www.ads-software.com/plugins/wd-twitter-feed/ as well.

    I’ve modified line 24+25 in FormCallback.php to the following and now it doesn’t crash, but not 100% sure if this is correct – seems to work:

    $fields2 = $this->fields;
    add_action( 'wp_ajax_'.$slug, function( $fields ) use ( $fields2 ) {

    PHP 7.1 has been out for three months and is regarded as the current stable version.
    Version 7.1 also fixed some issues with 7.0, so a lot of people have already upgraded.
    https://php.net/manual/en/migration71.incompatible.php#migration71.incompatible.lexical-names

    • This reply was modified 7 years, 8 months ago by flamber.
    Plugin Contributor Yoav Kadosh

    (@ykadosh)

    I’ve finally had a chance to test it under PHP 7.1 and i’ve released a fix for it in version 1.3.8, so it’s now compatible with the latest version of PHP.

    Sorry for the delay guys.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Fatal Error] Compatibility with PHP 7.1.0’ is closed to new replies.