• Resolved guiest63

    (@guiest63)


    Hi,
    Since v. 2.6.0 (and still in v 2.6.2, I have this message error when using the shortcode EM [events_map].
    The message is the following :
    Warning: count(): Parameter must be an array or an object that implements Countable in /htdocs/wp-content/plugins/stonehenge-em-osm/em-osm-maps.php on line 316

    Should I change something in EM parameters ? There was no issue prior to that

    Thnaks for your help!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 16 through 20 (of 20 total)
  • Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Next time: Open your own topic. This one was opened (and resolved) for a different issue! Those are the Forum rules. Please abide by them.

    1) They are not errors, but notices. Big difference. They do not influence the shortcodes in any way.
    2) It appears that ‘event=”60″ (or any event ID) does not return anything from the database. That seems to be caused by EM it self in events-manager/classes/em-events.php, lines 37 to 44.

    If you comment out line 37 + 44, you should get a result. Else EM returns no data, so the shortcode gets nothing back to handle.

    Yes sure, sorry for not opening a separated topic, I’m trying your suggestion right now…

    Doesn’t work sadly ??
    I’m opening a new ticket…
    If I did understand the problem is that I’m passing the ids to the shortcode as a string, am I right?

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    No, the problem lies within EM, so I cannot help you with that.
    [event_map event=”60″] returns nothing. [events_map event”60, 61″] only returns “61”. So there is a bug in their EM_Events::get() function.

    I had that same problem on other plugins, it may be a wordpress problem ??

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Shortcode not functionning anymore’ is closed to new replies.