Title: iFlorian's Replies | WordPress.org

---

# iFlorian

  [  ](https://wordpress.org/support/users/iflorian/)

 *   [Profile](https://wordpress.org/support/users/iflorian/)
 *   [Topics Started](https://wordpress.org/support/users/iflorian/topics/)
 *   [Replies Created](https://wordpress.org/support/users/iflorian/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/iflorian/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/iflorian/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/iflorian/engagements/)
 *   [Favorites](https://wordpress.org/support/users/iflorian/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Custom Taxonomy doesn't works with Location Map](https://wordpress.org/support/topic/custom-taxonomy-doesnt-works-with-location-map/)
 *  Thread Starter [iFlorian](https://wordpress.org/support/users/iflorian/)
 * (@iflorian)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/custom-taxonomy-doesnt-works-with-location-map/#post-4360690)
 * … 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Custom Taxonomy doesn't works with Location Map](https://wordpress.org/support/topic/custom-taxonomy-doesnt-works-with-location-map/)
 *  Thread Starter [iFlorian](https://wordpress.org/support/users/iflorian/)
 * (@iflorian)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/custom-taxonomy-doesnt-works-with-location-map/#post-4360629)
 * 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 …
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Custom Taxonomy doesn't works with Location Map](https://wordpress.org/support/topic/custom-taxonomy-doesnt-works-with-location-map/)
 *  Thread Starter [iFlorian](https://wordpress.org/support/users/iflorian/)
 * (@iflorian)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/custom-taxonomy-doesnt-works-with-location-map/#post-4360602)
 * 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 in`
 * So 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=61cee](http://baseurl.tld/?location-categories=968&em_ajax=true&query=GlobalMapData&width=100%25&height=300px&random_id=61cee)
 * which 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?!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Custom Taxonomy doesn't works with Location Map](https://wordpress.org/support/topic/custom-taxonomy-doesnt-works-with-location-map/)
 *  Thread Starter [iFlorian](https://wordpress.org/support/users/iflorian/)
 * (@iflorian)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/custom-taxonomy-doesnt-works-with-location-map/#post-4360576)
 * 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

Viewing 4 replies - 1 through 4 (of 4 total)