Plugin development

  • Unknown's avatar
  • Hello there,

    Many thanks for reaching out.

    Are you able to confirm the URL of the website that you need assistance with please?

    Can you also detail more about the issue you’re having please.

  • Unknown's avatar

    I am developing a plugin for our company. The plugin requires a database on the WordPress site. The initial phase works best. But the last step is it doesn’t work. I tried the recommended method from the WordPress site. It shows this error.
    `
    WordPress database error: [Table ‘wordpress07.wp_beaglescandata’ doesn’t exist]
    SELECT * FROM wp_beaglescandata
    `

    this is the code

    `
    $charset_collate = $wpdb->get_charset_collate();

    $sql = “CREATE TABLE IF NOT EXISTS $Beagle_WP_scan_table( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, access_token VARCHAR(50) NOT NULL, application_token VARCHAR(50) NOT NULL, status VARCHAR(50) NOT NULL, result_token VARCHAR(50), verified BOOLEAN NOT NULL,title VARCHAR(20),url VARCHAR(50),runningStatus VARCHAR(10), autoVerify BOOLEAN)DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;”;
    require_once(ABSPATH . “wp-admin/includes/upgrade.php”);
    dbDelta($sql);
    `

  • Hello there,

    Many thanks for that extra information.

    WordPress.com is a support forum for those who have their sites hosted or managed by WordPress.com.

    For help with plugin development, you would need to reach out to the WordPress.org forums: https://wordpress.org/support/forum/wp-advanced/

    Please also see this developers handbook for further assistance: https://developer.wordpress.org/plugins/

    I hope this helps.

  • Unknown's avatar
  • The topic ‘Plugin development’ is closed to new replies.