xcloner_scheduler doesn’t exist
-
XCloner Version 4.6.2 & WP multisite Version 6.1.1
On a new WP multisite install, when I try to save changes in xcloner i get the following error:
WordPress database error Table '[dbnamehere].xcloner_scheduler' doesn't exist for query SELECT * FROM xcloner_scheduler made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/xcloner-backup-and-restore/xcloner.php'), run_xcloner, Watchfulli\XClonerCore\Xcloner->init, Watchfulli\XClonerCore\Xcloner->define_cron_hooks, Watchfulli\XClonerCore\Xcloner_Scheduler->update_wp_cron_hooks, Watchfulli\XClonerCore\Xcloner_Scheduler->get_scheduler_list
The dbname is correct but the table prefix isn’t being added to the search. The table tableprefix_xcloner_scheduler exists and is of the correct structure.
Xcloner_Database.php defines the table prefix as:
global $wpdb; $this->set_prefix($wpdb->prefix); parent::__construct($wpdb->dbuser, $wpdb->dbpassword, $wpdb->dbname, $wpdb->dbhost);
dbuser, dbpassword, dbname, dbhost are all set correctly.
Scheduler defines the table name like this:
public function __construct(Xcloner $xcloner_container) { $this->xcloner_container = $xcloner_container; $this->xcloner_container->get_xcloner_database()->show_errors = false; $this->scheduler_table = $this->xcloner_container->get_xcloner_database()->prefix . $this->scheduler_table; } public function get_scheduler_list($return_only_enabled = 0) { $list = $this->xcloner_container->get_xcloner_database()->get_results("SELECT * FROM " . $this->scheduler_table);
Any ideas why the Scheduler isn’t getting the table prefix from wp-config.php?
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘xcloner_scheduler doesn’t exist’ is closed to new replies.