Title: PHP error message
Last modified: February 8, 2017

---

# PHP error message

 *  [wooody](https://wordpress.org/support/users/wooody/)
 * (@wooody)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php-error-message-29/)
 * Hi,
    I got this PHP error message after update to latest WPML and Gravity. Gravity
   Forms 2.1.2 WPML Multilingual CMS 3.6.3
 * You got the msg if you click on Gravity forms:
    wp-admin/admin.php?page=gf_edit_forms
 * Notice: Undefined index: all in /wp-content/plugins/events-manager-wpml/events-
   manager-wpml.php on line 348
 * I think you need to change:
 * `return $sitepress_langs[$sitepress_lang]['default_locale'];`
 * With this:
 *     ```
       if( !empty($sitepress_langs[$sitepress_lang]) ){
       return $sitepress_langs[$sitepress_lang]['default_locale'];
       }else{
       return get_locale();
       }
       ```
   
    -  This topic was modified 9 years, 2 months ago by [wooody](https://wordpress.org/support/users/wooody/).

The topic ‘PHP error message’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/events-manager-wpml.svg)
 * [Events Manager and WPML Compatibility](https://wordpress.org/plugins/events-manager-wpml/)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager-wpml/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager-wpml/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager-wpml/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager-wpml/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [wooody](https://wordpress.org/support/users/wooody/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/php-error-message-29/)
 * Status: not resolved