• Resolved Mezloh

    (@sayno2odor)


    Since updating this plugin I am receiving the following error. Anyone know how to fix?

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/xxxxxxxxx/public_html/wp-content/plugins/key4ce-osticket-bridge/admin/ost-config.php on line 77 and defined in /home/xxxxxxxxx/public_html/wp-includes/wp-db.php on line 1154

    Thanks in advance. obviously my username/foldername is changed

    https://ww.wp.xz.cn/plugins/key4ce-osticket-bridge/

Viewing 1 replies (of 1 total)
  • Plugin Author m.tiggelaar

    (@mtiggelaar)

    Hello,

    Thank you for reporting this.
    We will release a update with a fix for this within 7 days.
    in the mean time you can fix it manually:

    key4ce-osticket-bridge/admin/ost-config.php
    find:

    $ost_wpdb->query($wpdb->prepare("
        CREATE TABLE IF NOT EXISTS ".$keyost_prefix."ticket__cdata (
          ticket_id int(11) unsigned NOT NULL DEFAULT '0',
          subject mediumtext,
          priority mediumtext,
          priority_id bigint(20) DEFAULT NULL,
          PRIMARY KEY (ticket_id)
        ) ENGINE=InnoDB DEFAULT CHARSET=utf8;"));

    replace with:

    $ost_wpdb->query($wpdb->prepare("
        CREATE TABLE IF NOT EXISTS %s (
          ticket_id int(11) unsigned NOT NULL DEFAULT '0',
          subject mediumtext,
          priority mediumtext,
          priority_id bigint(20) DEFAULT NULL,
          PRIMARY KEY (ticket_id)
        ) ENGINE=InnoDB DEFAULT CHARSET=utf8;",$keyost_prefix."ticket__cdata"));

    Regards,
    Marco

Viewing 1 replies (of 1 total)

The topic ‘Warning Missing Argument 2 for wpdb::prepare()’ is closed to new replies.