PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Gravity Forms causing error with media uploader

  1. Hi There,

    I've found an issue where it seems that Gravity Forms is causing the Upload New Media action of the admin panel to fail.

    When the plugin is active Trying to upload media through the media manger fails with the error.

    Cannot redeclare create_initial_post_types() in /Users/stewartritchie/Dropbox/Sites/LLHP/wp-includes/post.php on line 19"

    (Local dev environment)

    From what I can tell it seems that something in Gravity Forms is telling PHP to include '/wp-includes/post.php' when it clearly has already been included, but I can't find it anywhere!

    To make this slightly worse it appears to happen randomly, two or three uploads will go through fine then the error happens, after that all fail.

    Gravity forms is currently the only plugin active.

    Posted 12 years ago on Thursday September 27, 2012 | Permalink
  2. David Peralty

    Are you using the latest WordPress and Gravity Forms versions? Does the media uploader work fine when Gravity Forms is disabled? I am not sure how these two things would conflict, as we haven't had any conflicts in the recent past with any vanilla WordPress features.

    Are you using the Twenty Eleven theme? If not, can you try that as well, with Gravity Forms enabled.

    Posted 12 years ago on Thursday September 27, 2012 | Permalink