Viewing 9 replies - 1 through 9 (of 9 total)
  • I’m getting the same problem for the past two days. I’m only lucky this client doesn’t rely heavily on smart coupons. I’d love to see a fix for this asap as well. :S

    Oh snap! A Fix was issued yesterday, check the changelog for WooCommerce Smart Coupons. I did not receive this as a plugin update, I just had to manually go check the changelog and re-install the plugin FTP. It’s back and works!

    Thread Starter edzel

    (@edzel)

    Thank you Delton after that update it works really well in addition I manage to fix that php code error from original code ( empty( get_option( ‘sc_display_global_coupons’ ) ) ) { “Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error” then I’ve change the code to this one ” $res = get_option( ‘sc_display_global_coupons’ ); if ( empty($res) ) { ” and it works well.

    hwedgle

    (@hwedgle)

    My hosting company said I’m having this issue:
    PHP Fatal error: Can’t use function return value in write context in /home2/colorck0/public_html/wp-content/plugins/events-calendar-pro/src/functions/template-tags/venue.php on line 97

    What do I need to do?

    I am getting this error when trying to access my back end and also my website.

    Fatal error: Can’t use function return value in write context in /home/recrental/public_html/protectyourbeats.com/wp-content/plugins/insert-headers-and-footers/ihaf.php on line 102

    I had someone build my site for me and have no idea how to fix this. Any help would be greatly appreciated as this my main location for selling my product. Someone please help.

    Thread Starter edzel

    (@edzel)

    Go to line 102 in ihaf.php

    Change

    if ( empty( get_option( $this->plugin->db_welcome_dismissed_key ) ) ) {
    if ( ! ( $pagenow == ‘options-general.php’ && isset( $_GET[‘page’] ) && $_GET[‘page’] == ‘insert-headers-and-footers’ ) ) {
    $setting_page = admin_url( ‘options-general.php?page=’ . $this->plugin->name );
    // load the notices view
    include_once( WP_PLUGIN_DIR . ‘/’ . $this->plugin->name . ‘/views/dashboard-notices.php’ );
    }
    }

    to

    /*
    if ( empty( get_option( $this->plugin->db_welcome_dismissed_key ) ) ) {
    if ( ! ( $pagenow == ‘options-general.php’ && isset( $_GET[‘page’] ) && $_GET[‘page’] == ‘insert-headers-and-footers’ ) ) {
    $setting_page = admin_url( ‘options-general.php?page=’ . $this->plugin->name );
    // load the notices view
    include_once( WP_PLUGIN_DIR . ‘/’ . $this->plugin->name . ‘/views/dashboard-notices.php’ );
    }
    }
    */

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    • This reply was modified 7 years, 8 months ago by bdbrown.
    Thread Starter edzel

    (@edzel)

    you can also update the plugin in the latest version (1.4.1)

    I am getting message “Fatal error: Can’t use function return value in write context in /home1/mentore/public_html/wp-content/plugins/insert-headers-and-footers/ihaf.php on line 102” whenever I try to access my site and back end. How can I fix this?

    @mrxklusive – Please don’t jump into the middle of someone else’s support topic. Your issue is related to the Insert Headers and Footers plugin. Please post a new topic on that support forum:
    https://www.ads-software.com/support/plugin/insert-headers-and-footers

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Fatal error: Can't use function return value in write context in /home/content/7’ is closed to new replies.