Support » Plugin: Events Manager » Can not translate widget (WPML)

Viewing 8 replies - 1 through 8 (of 8 total)
  • Same goes for me.

    The error i’m getting is:

    Fatal error: Cannot use object of type WP_Error as array in /home/develop/domains/ on line 5609

    If I look into the troubleshooting of WPML it’s says it can’t find the the_category_name_filter. Somehow the post_type is not recognized.

    When I use the troubleshooter of WPML and force the type to post, the error is gone. So as all of my events. Biiiiiggg bummer..

    When I try to add an event i get:

    Fatal error: Cannot use object of type WP_Error as array in /home/develop/domains/ on line 5609

    Same problem there..

    Hope it helps?


    @bruse Can you clarify which widget you were trying to translate, the steps you took to attempt a translation, what you were expecting to be able to do, and what actually happened, please?

    @paintball85 Your issue sounds like a different problem so can you start a new thread please?


    It is the Events, and it is the field Title. I tried to spell it in English or Swedish. It is not recognize by the string translation.

    Look at the third sidebar:

    It is the “no events” and “all events” that I not Can translate.



    NetWebLogic Support

    Wpml recognize the title and I can translating that. It is the FIELD n the widget i ment.

    not sure if this will help you but maybe you can try this snippet

    function my_em_text_rewrites($translation, $orig, $domain) {
    	switch ($orig) {
    		case 'all events' :
    			$translation = 'ALL EVENTS';
    		case 'No events' :
    			$translation = 'NO EVENTS';
    	return $translation;
    add_action ( 'gettext', 'my_em_text_rewrites', 1, 3 );

    then use wpml conditional tags inside the switch condition –

    you can paste the snippet in your theme functions.php or

    Plugin Author Marcus


    NetWebLogic Support

    the problem is we haven’t accounted for widget settings being translatable. I’ve noted this down and will investigate asap, although given what we’re working on right now it will be a while, weeks at very least.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can not translate widget (WPML)’ is closed to new replies.