Error when trying to post new events (multi site)

Home Forums Calendar Products Events Calendar PRO Error when trying to post new events (multi site)

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1276982
    Ryan
    Participant

    After migrating my site to its live server only my main site (from the multi site) lets me post new events. The other sites give a

    Catchable fatal error: Argument 2 passed to Tribe__Events__Meta__Save::__construct() must be an instance of WP_Post, null given, called in /public_html/wp-content/plugins/the-events-calendar/src/Tribe/Main.php on line 2968 and defined in /public_html/wp-content/plugins/the-events-calendar/src/Tribe/Meta/Save.php on line 33

    Switched themes and deactivated plugins, still no idea.

    #1277005
    Ryan
    Participant

    after testing one of my sites under the main still works fine, as well as my main site. It is just 3 of my other sites.

    #1277770
    Trisha
    Member

    Hello, Ryan!

    Thank you for using The Events Calendar! I can help with this ?

    You said that the problem happened when you moved to the live site environment, did you have the same plugin version numbers on the dev site?

    One last thing to try, it may be a longshot but we released The Events Calendar 4.5.0.2 shortly after the initial release. Would you mind updating that plugin and trying again? The stated fix does not appear to be related to your issue but I’d rather confirm than assume.

    Let me know what you find out and I’ll look into things on my end as well!

    Cheers,
    Trisha

     

    #1277772
    Ryan
    Participant

    I actually figured out what my issue was.

    My problem was with my database structure after the migration. Some of my tables were giving off this error: This table does not contain a unique column. Grid edit, checkbox, Edit, Copy and Delete features are not available.

    This would not allow me to delete or create anything new within those tables in wordpress.

    I had to migrate back to a backup of my database to fix the issue. If anyone knows of a fix for this I’d like to have it in my back pocket for the future. Tried to set primary / index / unique / auto increment with no avail.

    #1277788
    Trisha
    Member

    Hi, Ryan!

    Thanks for following up! I’m glad to see you got this resolved. I wish I had a solution for you, I’ve worked on a few multisites myself and they can definitely be tricky!

    I’m going to close this conversation out, but as always, if you need anything else feel free to reach out! I’m happy to help 🙂

    Cheers,
    Trisha

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Error when trying to post new events (multi site)’ is closed to new replies.