Title: PHP 7.4 compatibility
Last modified: November 28, 2019

---

# PHP 7.4 compatibility

 *  Resolved [coholm](https://wordpress.org/support/users/coholm/)
 * (@coholm)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-7-4-compatibility-2/)
 * 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)

 *  [sergey.r](https://wordpress.org/support/users/sergeyr-1/)
 * (@sergeyr-1)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-7-4-compatibility-2/#post-12184742)
 * 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](https://wordpress.org/support/users/coholm/)
 * (@coholm)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-7-4-compatibility-2/#post-12184810)
 * When PHP 7.4 is installed, the site becomes unusable (backend & frontend)
    Only
   the error message is shown.
 *  [sergey.r](https://wordpress.org/support/users/sergeyr-1/)
 * (@sergeyr-1)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-7-4-compatibility-2/#post-12184861)
 * 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!
 *  [kaggdesign](https://wordpress.org/support/users/kaggdesign/)
 * (@kaggdesign)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-7-4-compatibility-2/#post-12185058)
 * 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](https://wordpress.org/support/users/coholm/)
 * (@coholm)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-7-4-compatibility-2/#post-12185362)
 * 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
 *  [lens2016](https://wordpress.org/support/users/lens2016/)
 * (@lens2016)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-7-4-compatibility-2/#post-12217314)
 * 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 6 years, 6 months ago by [lens2016](https://wordpress.org/support/users/lens2016/).
    -  This reply was modified 6 years, 6 months ago by [lens2016](https://wordpress.org/support/users/lens2016/).
 *  [sergey.r](https://wordpress.org/support/users/sergeyr-1/)
 * (@sergeyr-1)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-7-4-compatibility-2/#post-12376650)
 * already fixed – closing

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘PHP 7.4 compatibility’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-multilingual/assets/icon-256x256.png?rev=2937122)
 * [WPML Multilingual & Multicurrency for WooCommerce](https://wordpress.org/plugins/woocommerce-multilingual/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-multilingual/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-multilingual/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-multilingual/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-multilingual/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-multilingual/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 7 replies
 * 4 participants
 * Last reply from: [sergey.r](https://wordpress.org/support/users/sergeyr-1/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/php-7-4-compatibility-2/#post-12376650)
 * Status: resolved