• Resolved shaikh441

    (@shaikh441)


    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://www.ads-software.com/plugins/events-manager/

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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

    (@shaikh441)

    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

    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

    (@shaikh441)

    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!

    Have you followed all of the instructions here?
    https://wp-events-plugin.com/documentation/google-maps/api-key/

    Thread Starter shaikh441

    (@shaikh441)

    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

    (@angelo_nwl)

    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.