Support » Plugin: Event List » show_cat fatal in version 0.8.1

  • Resolved mschapiro

    (@mschapiro)


    The show_cat attribute causes a fatal error in version 0.8.1 as outlined by the author here: https://wordpress.org/support/topic/undefined-property-causing-white-screen/#post-9993846

    Is there any method to display the category via shortcode alongside each event while a plugin update is pending? If not, might you have an estimate of the timing of this next update?

    Is show_cat broken in custom instances of the SC_Event_List class as well?

    Thank you for a great plugin. I understand my topic is likely just one of many. Any sense you can provide of show_cat support in future version would be above and beyond.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author mibuthu

    (@mibuthu)

    The issue is already fixed in the development build.
    You can manually do this changes until the new version is released.

    Thanks for your reply.

    I’ve replaced line 232 in includes/sc_event-list.php as suggested. I’m no longer getting a fatal error, however event categories still do not appear. I am delivering the shortcode via do_shortcode(); in a page template, and this seems to be a root cause of my problem.

    Here is the code I’m using in the page template.

    <?php echo do_shortcode('[event-list date_filter=upcoming show_filterbar=true filterbar_items=cats_hlist show_cat=true link_to_event=false]');?>

    If I serve the shortcode from the backend, in the main content editor, it does work properly – lists categories as expected.

    Please advise the best way forward. And thanks again for your help.

    Update:
    I was able to resolve this issue by adding autop().

    $upcoming = '[event-list date_filter=upcoming show_filterbar=true filterbar_items=cats_hlist show_cat=true link_to_event=false]';
    do_shortcode(autop($upcoming));
    • This reply was modified 1 year, 6 months ago by  mschapiro.
    Plugin Author mibuthu

    (@mibuthu)

    This issue is fixed with todays released version 0.8.2

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘show_cat fatal in version 0.8.1’ is closed to new replies.