iFlorian
Forum Replies Created
-
… I did turn on WP_Debug because I was debugging my template.
Underpressing warnings and errors are not the best pattern if you want to achieve a error free template.Well, you’ll find my source code in my first post.
As pointed out, my problem is solved when errors are underpressed…
As these errors exist even with the standard theme twenty twelve and even with simple standard parameters, I guess that this is a bug …Okay finally after quite a couple of hours debugging the corresponding JS and PHP Files I found the solution and the problem…
The good side is:
The functionality works out of the box – so it works seemless with my custom taxonomy.The bad side:
When WP Debug or PHP Errors are turned on, it will not work as the PHP API which is used for the ajax request of the corresponding categories will drop endless errors.So in conclusion my problem was that I had errors turned on, which resulted in these errors at the begging of the GET Requests Response which made the Map crash:
/var/www/wp-includes/link-template.php on line 186 Notice: Trying to get property of non-object in /var/www/wp-includes/link-template.php on line 188 Notice: Trying to get property of non-object in /var/www/wp-includes/link-template.php on line 192 Notice: Trying to get property of non-object in /var/www/wp-includes/link-template.php on line 202 Notice: Trying to get property of non-object in /var/www/wp-includes/link-template.php on line 205 Notice: Trying to get property of non-object in /var/www/wp-includes/link-template.php on line 205 Notice: Trying to get property of non-object inSo what actually happens is that the location map querys the following url:
http://baseurl.tld/?location-categories=968&em_ajax=true&query=GlobalMapData&width=100%25&height=300px&random_id=61ceewhich response needs to be error free …
Any idea where these php errors come from or how to solve them?
For me it seems like Events Manager is calling get_permalink in a wrong way ?!? Bug?!Thanks for this answer, the outlined solutions looks like the solution I used before as this uses the original EM_TAXONOMY_CATEGORY for EM_POST_TYPE_LOCATION which is not a clean solution in my eyes.
This is why I created a new custom taxonomy (location-categories) which is equal to EM_TAXONOMY_CATEGORY but separated from that. What I would like to do now, is to make the LOCATION MAP functionality to work with this taxonomy.
Thanks so far anyway