Forums › Global Maps › Error displaying [gmw map="1" name="form_id_1"]
- This topic has 5 replies, 2 voices, and was last updated 6 years, 2 months ago by
Eyal Fitoussi.
-
AuthorPosts
-
June 7, 2016 at 3:55 am #52645
Claus Gammelgaard
MemberHi, have the global maps plugin. Made a form and inserted it in a page:
and get this:
Fatal error: Call to undefined function gmw_pt_form_post_types_dropdown() in /home/www/danefake.dk/wp-content/plugins/gmw-global-maps/posts/templates/search-forms/default/search-form.php on line 42
This error is also mentioned in another support ticket: “[Resolved]Blank for map display”. This ticket is not really resolved, its only marked so due to inactivity. I have Geo My wp 2.6.5 and Global Maps 2.0
June 7, 2016 at 5:04 pm #52653Eyal Fitoussi
MemberHello Claus,
1) Do you have a plugin or a custom function that changes the activation order of the plugins?
2) Please deactivate both GEO my WP and Global Maps plugins then activate them back to see if it helps.
Private Content HiddenJune 7, 2016 at 10:01 pm #52663Claus Gammelgaard
MemberHi Eyal
Thanks for your reply.
My wp is recently installed with Ubergrid theme. No custom-changes have been made apart from a few changes in the style.css file. And no custom-made plugins are installed.
I’ve deactivated both Geo my wp and Global Maps, which didn’t change the error-message. After that I deactivated the other plugins one by one. Still the same error-message.
I then activated another Theme and the same error-message is still there.
Then I inserted the gmw_pt_form_get_post_types_dropdown function directly into search-form.php which removed the error and produced the map but with a form thats not clickable. Just to see if the function is undefined because the link between search-form.php and gmw-pt-template-functions.php is somehow broken.
regards Claus
June 7, 2016 at 10:38 pm #52668Claus Gammelgaard
MemberBy the way: When I’m in the backend editing the form in question the following warning is displayed:
Warning: array_key_exists() expects parameter 2 to be array, null given in /home/www/danefake.dk/wp-content/plugins/geo-my-wp/includes/admin/geo-my-wp-edit-form.php on line 492
Maybe there is a connection?
June 7, 2016 at 11:52 pm #52669Claus Gammelgaard
MemberOBS: So sorry, Eyal, one of the core add-ons was deactivated. I just realized that the plugin only works if it is activated. Now it seems to work. My mistake.
June 8, 2016 at 12:57 pm #52698Eyal Fitoussi
MemberAh, that makes sense. And thank you for the details.
I need to update the add-on and make sure that there is a warning saying that the core add-on need to be activated and to prevent the error message from showing. -
AuthorPosts
You must be logged in to reply to this topic.