WordPress.org

Ready to get started?Download WordPress

Forums

Events Calendar
Multisite not supported (3 posts)

  1. barbazul
    Member
    Posted 1 year ago #

    After installing in a multisite website the corresponding wp_#_eventscalendar_main tables are not created.

    This means that whenever I create an event in one of the non-root sites the post gets created but there is no event metadata to go with it, so the event does not appear on the calendar widget

    http://wordpress.org/extend/plugins/events-calendar/

  2. barbazul
    Member
    Posted 1 year ago #

    I am willing to work on fixing this if you are currently accepting contributions to your code.

  3. barbazul
    Member
    Posted 1 year ago #

    Debugging the code I found the problem is with the plugin initialiation.

    It assumes the plugin is being activated for a single site so clicking on "Activate for network" link will fail to create all the necessary tables.

    A simple workaround is to disable it for the network and then enabling it on each site. That way $wpdb->prefix gets populated with the right values and the check in EC_DB::createTable() would make a lot more sense.

    Althought the workaround is rather simple, this should still be considered a bug

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags