• Hello,

    Although everything seems to be working fine (shared server) I periodically get a whole bunch of minification errors like those here that refer to different active plugins and the site’s theme.

    [21-Mar-2025 02:12:22 UTC] WordPress database error Commands out of sync; you can't run this command now for query SELECT option_value FROM wp_options WHERE option_name = 'w3tc_minify_40d7d' LIMIT 1 made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, wp_ob_end_flush_all, ob_end_flush, W3TC\Generic_Plugin->ob_callback, W3TC\Util_Bus::do_ob_callbacks, call_user_func, W3TC\Minify_Plugin->ob_callback, W3TC\Minify_AutoJs->execute, W3TC\Minify_AutoJs->process_script_tag, W3TC\Minify_AutoJs->flush_collected, W3TC\_W3_MinifyHelpers->get_minify_url_for_files, W3TC\Minify_Core::urls_for_minification_to_minify_filename, W3TC\Minify_Core::urls_for_minification_to_minify_key, get_option

    [21-Mar-2025 02:12:22 UTC] WordPress database error Commands out of sync; you can't run this command now for query INSERT INTO
    wp_options (option_name, option_value, autoload) VALUES ('w3tc_minify_40d7d', '[\"acac\\/wp-includes\\/js\\/jquery\\/jquery.min.js\",\"acac\\/wp-includes\\/js\\/jquery\\/jquery-migrate.min.js\",\"acac\\/wp-content\\/plugins\\/accesspress-social-icons\\/js\\/frontend.js\"]', 'off') ON DUPLICATE KEY UPDATE option_name = VALUES(option_name), option_value = VALUES(option_value), autoload = VALUES(autoload) made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, wp_ob_end_flush_all, ob_end_flush, W3TC\Generic_Plugin->ob_callback, W3TC\Util_Bus::do_ob_callbacks, call_user_func, W3TC\Minify_Plugin->ob_callback, W3TC\Minify_AutoJs->execute, W3TC\Minify_AutoJs->process_script_tag, W3TC\Minify_AutoJs->flush_collected, W3TC\_W3_MinifyHelpers->get_minify_url_for_files, W3TC\Minify_Core::urls_for_minification_to_minify_filename, W3TC\Minify_Core::urls_for_minification_to_minify_key, update_option, add_option

    My minification settings are using “disk” as recommended, although I have Redis and Memcache also installed.

    Is there any thing I can do to correct this or may I send you somewhere the whole error log of this same day?

    Many thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @dsl225

    Thank You for reaching out and I am happy to help!
    Can you please share if you are using any plugin to modify DB behavior or some DB caching system outside of the W3 Total Cache?

    Thanks!

    Thread Starter John

    (@dsl225)

    Hello,
    No, none that I’m aware of. I’m using Flying Pages but I don’t think it is an issue.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @dsl225

    Thank you for yoru feedback.
    Can you please check and let me know if the option “Rewrite URL structure” is enabled in Perfomrance>Minify and pleasetry to manualy delete the /cache/minify/ folder and let me know if it helps!

    Thanks!

    Thread Starter John

    (@dsl225)

    Thanks for your feedback.
    “Rewrite URL structure” is indeed enabled. Should I leave it as is?
    I also just deleted the minify folder from server.

    As those errors used to appear once a week or two, I didn’t got them back yet since my initial post.

    I’ll monitor this closely and will let you know if and when this happens again.

    Thanks!

    Thread Starter John

    (@dsl225)

    Got them again, exactly 1 week since the last one:

    Mar 28, 19:34:13

    WordPress database error Commands out of sync; you can't run this command now for query INSERT INTO
    wp_options (option_name, option_value, autoload) VALUES ('w3tc_minify_c99c6', '[\"acac\\/wp-content\\/plugins\\/add-to-any\\/addtoany.min.js\"]', 'off') ON DUPLICATE KEY UPDATE option_name = VALUES(option_name), option_value = VALUES(option_value), autoload = VALUES(autoload) made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, wp_ob_end_flush_all, ob_end_flush, W3TC\Generic_Plugin->ob_callback, W3TC\Util_Bus::do_ob_callbacks, call_user_func, W3TC\Minify_Plugin->ob_callback, W3TC\Minify_AutoJs->execute, W3TC\Minify_AutoJs->flush_collected, W3TC\_W3_MinifyHelpers->get_minify_url_for_files, W3TC\Minify_Core::urls_for_minification_to_minify_filename, W3TC\Minify_Core::urls_for_minification_to_minify_key, update_option, add_option

    + 5 others

    I now see that I had the WP Crontrol plugin active at this site. I just deactivated it to see if this makes a difference.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hey @dsl225

    Just to confirm this.
    Is minify working as expected?
    Are you using this plugin by any chance: https://ww.wp.xz.cn/plugins/add-to-any/

    Thanks!

    Thread Starter John

    (@dsl225)

    No, I was getting cache issues with minify and I ended up disabling it.
    But yes, this site is using AddtoAny plugin.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Periodic minification errors’ is closed to new replies.