Title: WP-CLI, error occurs when executing Duplicated Post Meta
Last modified: November 22, 2023

---

# WP-CLI, error occurs when executing Duplicated Post Meta

 *  [youropfirend](https://wordpress.org/support/users/nono520/)
 * (@nono520)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/wp-cli-error-occurs-when-executing-duplicated-post-meta/)
 * Hello
   Thanks for providing such a great pluginI’m running Delete Duplicated Post
   MetaI encountered the following error when I ran wp-cliMy Duplicated Post Meta
   number is 227,487The following message prompts that there is insufficient writing
   space, but I am sure that only 20% of the space is usedFinally, I found that 
   the temporary tmp kept growing space during execution until there was insufficient
   space.My ssd has 1.2TB
 * please help thank you so much
 * WordPress database error Error writing file ‘/tmp/MYfd=31’ (OS errno 28 – No 
   space left on device) for query SELECT GROUP_CONCAT(meta_id ORDER BY meta_id 
   DESC) AS ids, post_id, COUNT(*) AS count FROM wp_postmeta GROUP BY post_id, meta_key,
   meta_value HAVING count > 1 made by include(‘phar:///usr/local/bin/wp/php/boot-
   phar.php’), include(‘phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.
   php’), WP_CLI\bootstrap, WP_CLI\Bootstrap\LaunchRunner->process, WP_CLI\Runner-
   >start, WP_CLI\Runner->run_command_and_exit, WP_CLI\Runner->run_command, WP_CLI\
   Dispatcher\Subcommand->invoke, call_user_func, WP_CLI\Dispatcher\CommandFactory::
   WP_CLI\Dispatcher{closure}, call_user_func, WPSweep_Command->__invoke, WPSweep_Command-
   >run_sweep, WPSweep->sweep, W3TC\DbCache_WpdbNew->query, W3TC\DbCache_WpdbInjection_QueryCaching-
   >query, W3TC_CallUnderlying->query, W3TC\DbCache_WpdbNew->query, W3TC\DbCache_WpdbInjection-
   >query, W3TC\DbCache_WpdbNew->default_query
   PHP Fatal error: Uncaught TypeError:
   mysqli_num_fields(): Argument #1 ($result) must be of type mysqli_result, bool
   given in /var/www/xxxx.xxxx/wp-includes/class-wpdb.php:3868Stack trace: 0 /var/
   www/xxxx.xxxx/wp-includes/class-wpdb.php(3868): mysqli_num_fields() 1 /var/www/
   xxxx.xxxx/wp-includes/class-wpdb.php(780): wpdb->load_col_info() 2 /var/www/xxxx.
   xxxx/wp-content/plugins/w3-total-cache/DbCache_WpdbInjection_QueryCaching.php(
   218): wpdb->__get() 3 /var/www/xxxx.xxxx/wp-content/plugins/w3-total-cache/DbCache_WpdbNew.
   php(122): W3TC\DbCache_WpdbInjection_QueryCaching->query() 4 /var/www/xxxx.xxxx/
   wp-includes/class-wpdb.php(3146): W3TC\DbCache_WpdbNew->query() 5 /var/www/xxxx.
   xxxx/wp-content/plugins/wp-sweep/inc/class-wpsweep.php(686): wpdb->get_results()
   6 /var/www/xxxx.xxxx/wp-content/plugins/wp-sweep/inc/class-wpsweep-command.php(
   122): WPSweep->sweep() 7 /var/www/xxxx.xxxx/wp-content/plugins/wp-sweep/inc/class-
   wpsweep-command.php(97): WPSweep_Command->run_sweep() 8 [internal function]: 
   WPSweep_Command->__invoke() 9 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/
   WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func() 10 [internal function]:
   WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher{closure}() 11 phar:///usr/
   local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(488): 
   call_user_func() 12 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/
   Runner.php(436): WP_CLI\Dispatcher\Subcommand->invoke() 13 phar:///usr/local/
   bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(459): WP_CLI\Runner->run_command()
   14 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1284):
   WP_CLI\Runner->run_command_and_exit() 15 phar:///usr/local/bin/wp/vendor/wp-cli/
   wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start() 16 phar:///
   usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\
   LaunchRunner->proce

The topic ‘WP-CLI, error occurs when executing Duplicated Post Meta’ is closed to
new replies.

 * ![](https://ps.w.org/wp-sweep/assets/icon.svg?rev=1098912)
 * [WP-Sweep](https://wordpress.org/plugins/wp-sweep/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-sweep/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-sweep/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-sweep/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-sweep/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-sweep/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [youropfirend](https://wordpress.org/support/users/nono520/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/wp-cli-error-occurs-when-executing-duplicated-post-meta/)
 * Status: not resolved