Title: PHP error when WPML is Installed
Last modified: June 28, 2019

---

# PHP error when WPML is Installed

 *  [amanias1977](https://wordpress.org/support/users/amanias1977/)
 * (@amanias1977)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-error-when-wpml-is-installed/)
 * Hi, I had a problem with WPML + WP Mail Logging. When I activate WP Mail Logging
   I start to see this error in error log:
 *     ```
       Warning	Invalid argument supplied for foreach()
       Stack Trace:
           do_action('plugins_loaded')
           wp-settings.php:327
           No3x\W\S\WPML_Redux_Framework_config->initSettings()
           wp-includes/class-wp-hook.php:286
           No3x\W\S\WPML_Redux_Framework_config->setSections()
           wp-content/plugins/wp-mail-logging/src/inc/redux/WPML_Redux_Framework_config.php:48
           date_i18n()
           wp-content/plugins/wp-mail-logging/src/inc/redux/WPML_Redux_Framework_config.php:119
           apply_filters('date_i18n')
           wp-includes/functions.php:149
           wp_maybe_decline_date()
           wp-includes/class-wp-hook.php:288
           wp-includes/functions.php:183
   
       Plugin: wp-mail-logging
       ```
   
 *     ```
       Warning	Invalid argument supplied for foreach()
   
           do_action('plugins_loaded')
           wp-settings.php:327
           No3x\W\S\WPML_Redux_Framework_config->initSettings()
           wp-includes/class-wp-hook.php:286
           No3x\W\S\WPML_Redux_Framework_config->setSections()
           wp-content/plugins/wp-mail-logging/src/inc/redux/WPML_Redux_Framework_config.php:48
           date_i18n()
           wp-content/plugins/wp-mail-logging/src/inc/redux/WPML_Redux_Framework_config.php:119
           apply_filters('date_i18n')
           wp-includes/functions.php:149
           wp_maybe_decline_date()
           wp-includes/class-wp-hook.php:288
           wp-includes/functions.php:187
   
       Plugin: wp-mail-logging
       ```
   
 *     ```
       Warning	preg_replace(): Empty regular expression
   
           do_action('plugins_loaded')
           wp-settings.php:327
           No3x\W\S\WPML_Redux_Framework_config->initSettings()
           wp-includes/class-wp-hook.php:286
           No3x\W\S\WPML_Redux_Framework_config->setSections()
           wp-content/plugins/wp-mail-logging/src/inc/redux/WPML_Redux_Framework_config.php:48
           date_i18n()
           wp-content/plugins/wp-mail-logging/src/inc/redux/WPML_Redux_Framework_config.php:119
           apply_filters('date_i18n')
           wp-includes/functions.php:149
           wp_maybe_decline_date()
           wp-includes/class-wp-hook.php:288
           preg_replace()
           wp-includes/functions.php:191
           wp-includes/functions.php:191
   
       Plugin: wp-mail-logging
       ```
   
 *     ```
       Notice	Trying to get property of non-object
   
           do_action('plugins_loaded')
           wp-settings.php:327
           No3x\W\S\WPML_Redux_Framework_config->initSettings()
           wp-includes/class-wp-hook.php:286
           No3x\W\S\WPML_Redux_Framework_config->setSections()
           wp-content/plugins/wp-mail-logging/src/inc/redux/WPML_Redux_Framework_config.php:48
           date_i18n()
           wp-content/plugins/wp-mail-logging/src/inc/redux/WPML_Redux_Framework_config.php:119
           apply_filters('date_i18n')
           wp-includes/functions.php:149
           wp_maybe_decline_date()
           wp-includes/class-wp-hook.php:288
           wp-includes/functions.php:180
   
       Plugin: wp-mail-logging
       ```
   
 *     ```
       Notice	Trying to get property of non-object
   
           do_action('plugins_loaded')
           wp-settings.php:327
           No3x\W\S\WPML_Redux_Framework_config->initSettings()
           wp-includes/class-wp-hook.php:286
           No3x\W\S\WPML_Redux_Framework_config->setSections()
           wp-content/plugins/wp-mail-logging/src/inc/redux/WPML_Redux_Framework_config.php:48
           date_i18n()
           wp-content/plugins/wp-mail-logging/src/inc/redux/WPML_Redux_Framework_config.php:119
           apply_filters('date_i18n')
           wp-includes/functions.php:149
           wp_maybe_decline_date()
           wp-includes/class-wp-hook.php:288
           wp-includes/functions.php:181
   
       Plugin: wp-mail-logging
       ```
   
    -  This topic was modified 6 years, 11 months ago by [amanias1977](https://wordpress.org/support/users/amanias1977/).

Viewing 1 replies (of 1 total)

 *  [affexm](https://wordpress.org/support/users/affexm/)
 * (@affexm)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/php-error-when-wpml-is-installed/#post-11708868)
 * I get the same error…….

Viewing 1 replies (of 1 total)

The topic ‘PHP error when WPML is Installed’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-logging/assets/icon-256x256.jpg?rev=2562296)
 * [WP Mail Logging](https://wordpress.org/plugins/wp-mail-logging/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-logging/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-logging/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-logging/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-logging/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-logging/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [affexm](https://wordpress.org/support/users/affexm/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/php-error-when-wpml-is-installed/#post-11708868)
 * Status: not resolved