Hello Team,
why i am getting this errors ? i do not like the theme to consume alot of memory as i do not want that to affect the website overall performance,
the error below also happened when i tried to enable the countdown on the home page, it showed 500 internal server error and the log below
[17-Jul-2024 15:03:29 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 172032 bytes) in /var/www/html/wordpress/wp-includes/class-wpdb.php on line 2344
[17-Jul-2024 15:03:29 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 = ‘action_scheduler_lock_async-request-runner’ made by shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_Lock->is_locked, ActionScheduler_OptionLock->get_expiration, ActionScheduler_OptionLock->get_existing_lock
[17-Jul-2024 15:03:29 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 = ‘action_scheduler_lock_async-request-runner’ made by shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_OptionLock->set, ActionScheduler_OptionLock->get_existing_lock
[17-Jul-2024 15:03:29 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 (‘action_scheduler_lock_async-request-runner’, ‘6697dd41b727f1.87682772|1721228669’, ‘no’) made by shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_OptionLock->set
[17-Jul-2024 15:03:29 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 = ‘woocommerce_logs_logging_enabled’ LIMIT 1 made by WooCommerce->log_errors, WC_Logger->critical, WC_Logger->log, WC_Logger->should_handle, Automattic\WooCommerce\Utilities\LoggingUtil::logging_is_enabled, Automattic\WooCommerce\Internal\Admin\Logging\Settings->logging_is_enabled, WC_Admin_Settings::get_option, get_option