• Resolved coholm

    (@coholm)


    After updating the server to PHP 7.4 (stable) I get the follwoing error:

    Ein Fehler vom Typ E_ERROR wurde in der Zeile 38 der Datei /var/www/vhosts/httpdocs/wp3/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-resources.php verursacht. Fehlermeldung: Uncaught Error: Call to a member function get_setting() on null in /var/www/vhosts/httpdocs/wp3/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-resources.php:38
    Stack trace:
    #0 /var/www/vhosts/httpdocs/wp3/wp-content/plugins/woocommerce-multilingual/classes/class-woocommerce-wpml.php(268): WCML_Resources::set_up_resources(Object(woocommerce_wpml), Object(SitePress))
    #1 /var/www/vhosts/httpdocs/wp3/wp-includes/class-wp-hook.php(288): woocommerce_wpml->init(”)
    #2 /var/www/vhosts/httpdocs/wp3/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
    #3 /var/www/vhosts/httpdocs/wp3/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #4 /var/www/vhosts/httpdocs/wp3/wp-settings.php(523): do_action(‘init’)
    #5 /var/www/vhosts/httpdocs/wp3/wp-config.php(111): require_once(‘/va####

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello Coholm,
    Thanks for contacting us!

    Can you please let me know if WPML is working fine ( including String Translations and Translation Management )? If yes can you please try disable and enable WooCommerce Multilingual plugin?

    Thanks in advance!

    Thread Starter coholm

    (@coholm)

    When PHP 7.4 is installed, the site becomes unusable (backend & frontend)
    Only the error message is shown.

    Did you return site to normal? You can remove WooCommerce Multilingual plugin from your FTP manually and try access admin. If all is ok try to install it again.

    Thanks in advance!

    Hello Coholm,

    We saw this bug in WPML/WCML with php 7.4-RC5 (release candidate 5). It was related to OPCache.

    Right now, I have installed php 7.4-stable (released yesterday) and see no problem.

    Please check that you actually have the stable version of php 7.4, not release candidate. Download it again from php site.

    You can also try to turn off opcache in php.ini. Find line opcache.enable=1 and replace by opcache.enable=0.

    Thread Starter coholm

    (@coholm)

    I have downgraded to 7.3
    I’m on a shared host, so I have no influence on OPCache.
    It is definately 7.4 stable installed. The host announced the release today

    Same issue here. Using 7.4.0 Stable. Turing off OPcache is not an option.Purging OPcachewith WP Rocket did not help. Downgraded to 7.3.

    • This reply was modified 5 years, 3 months ago by lens2016.
    • This reply was modified 5 years, 3 months ago by lens2016.

    already fixed – closing

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