Title: php error
Last modified: September 1, 2016

---

# php error

 *  Resolved [shaikh441](https://wordpress.org/support/users/shaikh441/)
 * (@shaikh441)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-error-199/)
 * Hello,
    I am currently having an issue when adding events. When trying to view
   the event I have a php error: Fatal error: Call to a member function get_location()
   on a non-objject in /home/masjidze/public_html/wp-content/themes/MZI/single-event.
   php on line 48
 * This occurs when filling in the location details and also when checking the box
   of this event has no location.
 * Help is appreciated
 * Thanks
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

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

 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-error-199/#post-7648613)
 * Hi,
 * Sounds like there’s a problem in a custom template. If you remove or rename the
   single-event.php template does the problem go away?
 *  Thread Starter [shaikh441](https://wordpress.org/support/users/shaikh441/)
 * (@shaikh441)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-error-199/#post-7648794)
 * Hi,
    Sorry for the delayed reply. I have only renamed a purchased theme, haven’t
   really customized it. Did you mean completely remove the template from the plugin
   theme folder?..Wouldn’t that break it?
 * Please let me know and I will remove it if so.
 * Thanks for the help
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-error-199/#post-7648809)
 * I mean to remove the single-event.php template from your theme. That’s not a 
   standard Events Manager template and it looks like it’s causing the error message
   you’re seeing.
 * Removing it will force Events Manager to use the template supplied with the plugin.
 *  Thread Starter [shaikh441](https://wordpress.org/support/users/shaikh441/)
 * (@shaikh441)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-error-199/#post-7648816)
 * Ok. I have renamed the template file and the error has gone and events are now
   displaying.
    However, on the event page, I get “map unavailable” error, although
   I selected a location which automatically came down on the dropdown menu when
   entering an address. No map displays on the event manager dashboard next to the
   adddress either. Also, on the events listing page, the field which where you 
   can enter a location to find an event near it, greys out after a few seconds 
   displaying “oops something must have gone wrong”…..?
 * Any solutions please?
    Thanks for your help!
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-error-199/#post-7648818)
 * Have you followed all of the instructions here?
    [http://wp-events-plugin.com/documentation/google-maps/api-key/](http://wp-events-plugin.com/documentation/google-maps/api-key/)
 *  Thread Starter [shaikh441](https://wordpress.org/support/users/shaikh441/)
 * (@shaikh441)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-error-199/#post-7648837)
 * Documentation followed and now maps are displaying correctly!.
 * Now when I add the event shortcode to my homepage to display an event banner,
   it is being cut off slightly at the bottom even though there is enough space 
   in the column…Was not doing this before I did the map fix which seems weird…
 * Any ideas?
    Many thanks for all your help so far
 * Regards
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-error-199/#post-7648856)
 * you can try to fix or override that using custom css styling; you can use firebug
   or chrome to inspect element and get the css class or id name.

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

The topic ‘php error’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/php-error-199/#post-7648856)
 * Status: resolved