• Resolved ncj

    (@ncj)


    I’m using the Events Calendar plugin, but am getting an error when trying to create a Page…

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

    This happens at this URL: http://mydomain.com/wp-admin/post-new.php?post_type=page

    I’m using version 4.2.7 and have updated the WP core to 4.6.1 and other plugins.

    Any suggestions?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You might try enabling the default Twenty Sixteen theme and seeing if the issue persists. If that does not fix it, you should definitely try disabling all plugins except for The Events Calendar.

    It’s also possible that the installation of The Events Calendar could have been corrupted in the process in which case I would suggest manually re-installing the plugin.

    I hope that helps. Cheers!

    Thread Starter ncj

    (@ncj)

    Thanks for the reply and suggestions.

    Problem remains with the Twenty Sixteen theme.

    I tried manually reinstalling the Events Calendar plugin, but still the same problem.

    I then disabled all plugins, and the problem disappeared. Then testing various plugins, I determined that the problem goes away if I disable both the Events Calendar plugin and the Charitable plugin, both which were bundled in the theme I purchased.

    When I turn on WP debugging, I get this additional error:
    Notice: Trying to get property of non-object in /home2/mydomain/public_html/wp-includes/post.php on line 5760

    Any other suggestions?

    Thread Starter ncj

    (@ncj)

    I reloaded the database from a backup before this problem started happening, and it seems to have cleared up the issue. I don’t think the issue was with the plugin, rather something corrupt in the database. I think the error message referenced The Events Calendar plugin was a red herring. Sorry for the bother.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error when creating pages’ is closed to new replies.