WordPress.org

Ready to get started?Download WordPress

Forums

WordPress PopUp
[resolved] V. 4.3.2 Spits out errors with WordPress 3.5 (10 posts)

  1. chevymanusa
    Member
    Posted 1 year ago #

    Warning: Missing argument 2 for wpdb::prepare(), called in ... /plugins/wordpress-popup/popoverincludes/classes/popoverpublic.php on line 92 and defined in ... /wp-includes/wp-db.php on line 990

    Was a great plug-in until today when the update for 3.5 came out.

    http://wordpress.org/extend/plugins/wordpress-popup/

  2. biggeorge
    Member
    Posted 1 year ago #

    Same exact error. This is an excellent plugin, so I'm hoping to have this fixed.

  3. chevymanusa
    Member
    Posted 1 year ago #

    Fixed!

    Just add " ,null " to

    $sql = $this->db->prepare( "SELECT * FROM {$this->popover} WHERE popover_active = 1 ORDER BY popover_order ASC" );

    The FIXED code should look like this:

    $sql = $this->db->prepare( "SELECT * FROM {$this->popover} WHERE popover_active = 1 ORDER BY popover_order ASC",null );

    Let me know if it works for you.

    Regards,
    Chevyman

  4. lucholibre
    Member
    Posted 1 year ago #

    @chevymanusa thanks that helped. I'm still getting an error at the admin page for the popovers, which can probably be fixed with the same solution.

    The file that needs editing is
    /wp-content/plugins/wordpress-popup/popoverincludes/classes/popoverpublic.php

  5. jimmywags
    Member
    Posted 1 year ago #

    @lucholibre The admin file to edit is
    /wp-content/plugins/wordpress-popup/popoverincludes/classes/popoverpublic.php

    Line 386 needs to change from
    $sql = $this->db->prepare( "SELECT * FROM {$this->popover} ORDER BY popover_order ASC" );
    to this FIXED code
    $sql = $this->db->prepare( "SELECT * FROM {$this->popover} ORDER BY popover_order ASC", null );

  6. MarkasKR
    Member
    Posted 1 year ago #

    It works! Thanks. Just the line for me to edit was 98 instead of 386 :)

    still it works! Thank you very much.

  7. julian
    Member
    Posted 1 year ago #

    can't I have the fixed file to download or to my email address (julianross at email.it)? I don't have a php editor

    Thanks!!

  8. AdamKayce
    Member
    Posted 1 year ago #

    I had to change it both in popoverpublic.php and popoveradmin.php for it to work; just changing popoverpublic.php just made the error message go away, but my pop-up didn't show, either.

    Once I fixed them both up, it worked just fine.

    @julian - I put my two files here: http://jumpshare.com/b/h7hE6W - hope that helps.

  9. darkagentblog
    Member
    Posted 1 year ago #

    seems after that work-around the deactivation of a pop over has no effekt - has somebody but me the same problem and is there a fix for that?

  10. kat_indo
    Member
    Posted 1 year ago #

    Thanks @chevymanusa and @jimmywags!

    I was facing the same problems!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.