• I’m getting the following error when viewing events by day (clicking the link in the events calendar widget takes you the the a page showing events on that day).

    Catchable fatal error: Object of class WP_Error could not be converted to string in public_html/wp-content/plugins/event-organiser/includes/event-organiser-event-functions.php on line 1522

    Any help would be much appreciated.

    Thanks

    https://ww.wp.xz.cn/plugins/event-organiser/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Which version of Event Organiser are you running?

    Thread Starter dcassidy

    (@dcassidy)

    Thanks for your reply. I’m running version 2.12.1 and wordpress is version 4.1.1

    Thanks

    Thread Starter dcassidy

    (@dcassidy)

    I have just deactivated your plugin and removed it. After reinstalling it works correctly. I guess it didn’t copy the files correctly or something.

    All good now 🙂

    Plugin Author Stephen Harris

    (@stephenharris)

    Great :), I asked which version because that error wouldn’t make sense on that line in 2.12.1.

    Glad it’s sorted.

    Thread Starter dcassidy

    (@dcassidy)

    Thanks for your help with that one. On a different topic how can I display a list of all the tags? I know I can use the_tags() for normal WP tags but only want this list to have the events tags.

    Thanks again

    Plugin Author Stephen Harris

    (@stephenharris)

    No worries.

    You can use the_terms() (taxonomy is either event-tag, event-category or event-venue).

    Thread Starter dcassidy

    (@dcassidy)

    Thanks but this only seems to display the tag linked to an event post. I want to display a list of all the tags that have been created.

    Plugin Author Stephen Harris

    (@stephenharris)

    the_tags() would only display tags for the given post, so the_terms() is the analogous function for that for generic taxonomy terms.

    To get all terms in a taxonomy you can use get_terms() (see codex) – the codex gives examples of how to list all the terms in the taxonomy.

    Thread Starter dcassidy

    (@dcassidy)

    That’s great, the get_terms() works great!

    I am having issues however viewing events by tag. After creating a tag and assigning events to it I try to view all the posts on the tag but keep getting the default wordpress not found page.

    Thread Starter dcassidy

    (@dcassidy)

    Somehow I have managed to fix this by changing the the permalink setting to default and then back to post name. Wired!

    Plugin Author Stephen Harris

    (@stephenharris)

    Yup, sounds like the rewrite rules needed flushing. You can do that by visiting the permalink settings (no need to update anything).

    Thread Starter dcassidy

    (@dcassidy)

    Okay, one more thing please.
    I am using the shortcode [eo_calendar] and users can successfully click on the links in there to view events on that date. But I need it to show events on that date and after that date. Is this something that can be achieved by altering the query made?

    Thanks again

    Plugin Author Stephen Harris

    (@stephenharris)

    You can use the filter eventorganiser_calendar_event_link (see [codex](http://codex.wp-event-organiser.com/hook-eventorganiser_calendar_event_link.html)), but there isn’t a particular page that shows all events from a particular date.

    There are event links which show events in particular year/month or on a particular day (see Settings > Event Organiser > Permalinks ).

    Please keep in mind the note about caching.

    Thread Starter dcassidy

    (@dcassidy)

    That’s perfect, thanks.

    One last thing though Please. I can successfully get the venue map to display using eo_get_venue_map() but I am wanting to use jquerys slideToggle function on the maps div and hide it when the browser loads the page. The problem is that when the slideToggle function is called and the map is displayed, it does not display correctly. I think I somehow need to reload the map at the same time but not sure how I can do that?

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

The topic ‘PHP Error’ is closed to new replies.