• Resolved rade363

    (@rade363)


    Hello!

    I’ve already had a same behaving issue in this post.
    I guess it happened again after update because my setup has an old PHP version (5.3).

    Unfortunately, I can’t update the it to anything newer like 5.6 now. However, the website will be moving to a WordPress optimized hosting until the end of the week.

    This is the error, that causes the issue:
    [14-Dec-2016 09:33:36 UTC] PHP Fatal error: Can't use function return value in write context in .../wp-content/plugins/woocommerce-multilingual/inc/class-wcml-install.php on line 79

    if ( !empty( WCML_Install::translated_product_type_terms() ) ) {
                    add_action( 'admin_notices', array( __CLASS__, 'admin_translated_product_type_terms_notice' ) );
                }elseif( $sitepress->is_translated_taxonomy( 'product_type' ) ){
                    add_action( 'admin_notices', array( __CLASS__, 'admin_translated_product_type_notice' ) );
                }

    After I commented it, the website got back functioning normally (at least it appears to do so).

    Is this because of old PHP version?
    This piece of code displays admin notices about translation (not critically important), am I right?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘4.0.2 update – Fatal PHP Error Again’ is closed to new replies.