Title: Shortcode not functionning anymore
Last modified: June 24, 2019

---

# Shortcode not functionning anymore

 *  Resolved [guiest63](https://wordpress.org/support/users/guiest63/)
 * (@guiest63)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-not-functionning-anymore%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/page/2/?output_format=md)

 *  Plugin Author [Stonehenge Creations](https://wordpress.org/support/users/duisterdenhaag/)
 * (@duisterdenhaag)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/#post-11666249)
 * That is not an error, but a warning. Big difference! A warning does not influence
   the output.
    It is caused by PHP 7.2 and higher. You need to downgrade to PHP
   7.1. EM still has some issues with any higher version.
 * So it appears you have updated your PHP version in the meantime.
 *  Thread Starter [guiest63](https://wordpress.org/support/users/guiest63/)
 * (@guiest63)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/#post-11670520)
 * Thanks for your quick reply, and your clarification!
    I reverted to PHP 7.1, 
   but the map stille doesn’t appear (in v 2.6.1 and v 2.6.2) I reverted to v 2.5.0,
   and there is no issue with the map, showing as expected
 * There is no issue with any other map on my site
 * Thanks for your help
 *  Plugin Author [Stonehenge Creations](https://wordpress.org/support/users/duisterdenhaag/)
 * (@duisterdenhaag)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/#post-11670649)
 * Strange, because I did not change anything there. What is the full short code
   you are using?
 *  Thread Starter [guiest63](https://wordpress.org/support/users/guiest63/)
 * (@guiest63)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/#post-11670665)
 * Oh, strange indeed!
    [events_map] is the full shortcode I’m using, no personalization
   inside
 * I tried to clear cache of course, of my browser; the issue is with every browser
   tested (Chrome, Firefox, Edge)
 *  [glujaz](https://wordpress.org/support/users/glujaz/)
 * (@glujaz)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/#post-11671072)
 * Hello, i’m also having an error with the map not showing up anymore…
 * I use the short old with parameters high is :
 * [locations_map width=80% height=350 scope=1-months eventful=1]
 * And here is the link to the site
    [https://spacerendezvous.org/upcoming-events/](https://spacerendezvous.org/upcoming-events/)
 * The thing is, I tried to downgrade to 7.1 but did nothing (I was already at 7.3
   when I created the website), and when showing other pages where it also includes
   a map, it shows up, so I definitely think it’s related to the shortcode.
 * Thanks in advance 🙂
 *  Plugin Author [Stonehenge Creations](https://wordpress.org/support/users/duisterdenhaag/)
 * (@duisterdenhaag)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/#post-11671411)
 * Really sorry about this, guys!
    It should be solved in version 2.6.3.
 *  [maxelio42](https://wordpress.org/support/users/maxelio42/)
 * (@maxelio42)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/#post-11671542)
 * Hi Patrick,
    I’ve the same sort of problem : the map doesn’t appear at all, with
   the following shortcode :
 * [events_map width=”750″ height=”500″ category=”217″ scope=”future”]
 * I’m indeed in PHP v. 7.2 and didn’t try to revert to 7.1 to see if this issue
   is solved.
    The fact is that using PHP v 7.1 seems not to be so recommended by
   my hosting provider : too old !
 * Do you intend to upgrade your plugin with v. 2.6.3, so that it will be compliant
   with PHP 7.2 ?
 *  [glujaz](https://wordpress.org/support/users/glujaz/)
 * (@glujaz)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/#post-11671549)
 * Thanks Patrick ! 🙂
 *  [maxelio42](https://wordpress.org/support/users/maxelio42/)
 * (@maxelio42)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/#post-11671850)
 * My map works again, and with PHP 7.2.
 * Good job Patrick!
    Thank you so much!
 *  [glujaz](https://wordpress.org/support/users/glujaz/)
 * (@glujaz)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/#post-11671863)
 * Same for me ! The map is showing up again ! Thank you ! 😁
 *  Thread Starter [guiest63](https://wordpress.org/support/users/guiest63/)
 * (@guiest63)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/#post-11672044)
 * Awesome!
    Thanks Patrick, all is working like a charm now 🙂
 *  Plugin Author [Stonehenge Creations](https://wordpress.org/support/users/duisterdenhaag/)
 * (@duisterdenhaag)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/#post-11672396)
 * [@maxelio42](https://wordpress.org/support/users/maxelio42/),
    The thing is that
   EM itself is still not PHP 7.2 compatible in full yet. They still have issues(
   especially in Multiple Bookings Mode). They promised to release an update “soon”,
   but 7.2 has been around for a while now, so I personally believe that update 
   is taking them way too long.
 * Since this is an add-on and uses some native EM functions, I always advise to
   revert back to 7.1. Not because of this add-on, but because of EM. 😉
 * Except for the count() function, that has been changed in 7.2, this add-on is
   actually PHP 7.3 compatible. 😉
 *  [maxelio42](https://wordpress.org/support/users/maxelio42/)
 * (@maxelio42)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/#post-11672849)
 * OK, thanks for the information.
    What do you mean by “multiple bookings mode”?
 *  [jeeltcraft](https://wordpress.org/support/users/jeeltcraft/)
 * (@jeeltcraft)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/#post-11714185)
 * Hi I have a problem with the [events_map] shortcode too,
    This is the page with
   the map, as you can see the locations_map shortcode loads correctly:
 * [http://www.jeeltcraft.com/ambulanti-online/author/ambulante1/](http://www.jeeltcraft.com/ambulanti-online/author/ambulante1/)
 * I echoed the events_map shortcode I used without success above the map, the resulting
   javascript doesnt load the map center, the javascript returns a
 * `center:{NaN,NaN}`
    Do you think changing the php version will help?
 *  [jeeltcraft](https://wordpress.org/support/users/jeeltcraft/)
 * (@jeeltcraft)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/#post-11714831)
 * I activated the debugger abd it returns this error on the backend:
 *     ```
       Notice: Undefined index: text in /home/kfdujkzv/public_html/ambulanti-online/wp-content/plugins/stonehenge-em-osm/config/more.php on line 28
   
       Notice: Undefined index: text in /home/kfdujkzv/public_html/ambulanti-online/wp-content/plugins/stonehenge-em-osm/config/more.php on line 29
       ```
   
 * Please let me know

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/page/2/?output_format=md)

The topic ‘Shortcode not functionning anymore’ is closed to new replies.

 * ![](https://ps.w.org/stonehenge-em-osm/assets/icon-256x256.jpg?rev=2143406)
 * [Events Manager - OpenStreetMaps](https://wordpress.org/plugins/stonehenge-em-osm/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stonehenge-em-osm/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stonehenge-em-osm/)
 * [Active Topics](https://wordpress.org/support/plugin/stonehenge-em-osm/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stonehenge-em-osm/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stonehenge-em-osm/reviews/)

## Tags

 * [events_map](https://wordpress.org/support/topic-tag/events_map/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 20 replies
 * 5 participants
 * Last reply from: [jeeltcraft](https://wordpress.org/support/users/jeeltcraft/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-functionning-anymore/page/2/#post-11721395)
 * Status: resolved