Support » Plugin: Events Manager and WPML Compatibility » PHP error message

  • 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:

    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'];
    return get_locale();
    • This topic was modified 4 years, 9 months ago by wooody.
  • The topic ‘PHP error message’ is closed to new replies.