• Andreas

    (@lacproduction)


    Hello!
    THX for this great and flexible plugin.

    I installed Events Manager and WPML and it works, but without translations.

    Then I installed Events Manager and WPML Compatibility, activate and get the following error message:

    Warning: Invalid argument supplied for foreach() in /my_path/wp-content/plugins/events-manager/multilingual/em-ml-options.php on line 183

    Do you have any suggestions?

    Best regards

    Andreas

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    since it’s only a warning message you can turn off your php display_errors or modify code under /em-ml-options.php on line 183

    eg.

    
    if ( is_array(self::$translatable_options) && count(self::$translatable_options) > 0 ){
    	foreach( self::$translatable_options as $option ){
    		add_filter('pre_option_'.$option, array(&$this, 'pre_option_'.$option), 1,1);
    	}
    }
    
    Thread Starter Andreas

    (@lacproduction)

    Hi Angelo!
    Thank you for the quick response.

    I believe that’s more than a warning.
    If I disable the php errors in wp-config they are hidden but the translation fields are not activated.

    Here are screenshots for a better understanding:

    Without define( 'WP_DEBUG_DISPLAY', false );
    https://lac-production.de/wp-content/uploads/2016/10/eventmanager_wpml_1.png

    The same with define( 'WP_DEBUG_DISPLAY', false );
    https://lac-production.de/wp-content/uploads/2016/10/eventmanager_wpml_2.png

    I miss the translation fields!

    Do you have a solution?

    Thank you in advanced for support

    Andreas

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error with WPML’ is closed to new replies.