• Resolved finleydesign

    (@finleydesign)


    I can’t activate the plugin, if I do the site crashes with the following fatal error

    Fatal error: Can’t use function return value in write context in /home/stabocou/public_html/wp-content/plugins/wc-fields-factory/includes/wcff-negotiator.php on line 359

Viewing 9 replies - 1 through 9 (of 9 total)
  • I had to change line 359 to the following:

    `} else if( $_rule[“logic”] == “not-null” ){
    $trimVal = trim($_value);
    if( !empty( $trimVal) ) {
    return true;
    }`

    Hope this helps.

    Thread Starter finleydesign

    (@finleydesign)

    Thank for you attempt, now i get

    Parse error: syntax error, unexpected ‘?>’, expecting function (T_FUNCTION) in /home/stabocou/public_html/wp-content/plugins/wc-fields-factory/includes/wcff-negotiator.php on line 458

    Thread Starter finleydesign

    (@finleydesign)

    Sorry my bad, had missed a bit of the code, you sir are a gentleman!! That sorted it thank you

    THis topic is resolve but again this error is showing for me …
    latest version i install.

    Fatal error: Can’t use function return value in write context in /home/designau/public_html/–themename–/wp-content/plugins/wc-fields-factory/includes/wcff-negotiator.php on line 359

    After line 359 which is:

    $trimVal = trim($_value);

    Add the following:

    if( !empty( $trimVal) ) {
    return true;
    }

    Thanks its work now . but please update the plugin. thanks

    Hi, I’m getting:

    Fatal error: Can’t use method return value in write context in /var/www/vhosts/xxxsitename/httpdocs/wp-content/plugins/sg-cachepress/core/Admin/Admin.php on line 28

    Any suggestions?

    Thanks

    invisiblehamsandwich

    (@invisiblehamsandwich)

    Would really appreciate some help with a similar issue, regarding this message:

    Fatal error: Can’t use method return value in write context in /home4/jamisawdust/public_html/wp-content/plugins/woocommerce-product-addons/includes/admin/class-wc-product-addons-admin.php on line 526

    many thanks ahead

    carver1g

    (@carver1g)

    @invisiblehamsandwich

    Sounds like you need to upgrade your php to 5.6 or greater.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Fatal Error, can’t activate plugin’ is closed to new replies.