June 7, 2016 at 3:55 am #52645
Hi, 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.0June 7, 2016 at 5:04 pm #52653Eyal FitoussiMember
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 #52663
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 ClausJune 7, 2016 at 10:38 pm #52668
By 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 #52669
OBS: 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 FitoussiMember
Ah, 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.
You must be logged in to reply to this topic.