WordPress.org

Ready to get started?Download WordPress

Forums

Gravity Forms PDF Extended
Missing argument 2 for wpdb::prepare() (4 posts)

  1. ashbryant
    Member
    Posted 1 year ago #

    Hi,

    When trying to view the pdf from the admin area I get this error

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/WEBSITE/public_html/wp-content/plugins/gravity-forms-pdf-extended/pdf.php on line 159 and defined in /home/WEBSITE/public_html/wp-includes/wp-db.php on line 990
    Unable to stream pdf: headers already sent

    Any ideas why?

    I'm using your demo form that the plugin creates as a test.

    http://wordpress.org/extend/plugins/gravity-forms-pdf-extended/

  2. S. Book
    Member
    Posted 1 year ago #

    There's an easy quick-fix for this by adding an empty array argument to the function call

    Source

  3. Blue Liquid Designs
    Member
    Plugin Author

    Posted 1 year ago #

    Hi ashbryant,

    I haven't started testing with WordPress 3.5 yet which is why there's this error. S. Book seems to have provided the answer though.

    I'll be looking at releasing a WP3.5 compatible update in the next few weeks.

  4. ashbryant
    Member
    Posted 1 year ago #

    @S. Book I'll take a look today at that. Thanks.

    @Blue Liquid Designs - I'll look forward in seeing the update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic