Hello 8theme Support Team,
I’m facing a serious performance issue with my website that is built using the XStore theme. The website frequently becomes extremely laggy, and the server CPU usage spikes to 100%, which significantly affects user experience.
Upon checking the logs, I found multiple warning and error messages that seem to be related to the theme. These issues appear to be causing the high resource usage.
I am attaching the logs/screenshots of the warnings and errors below for your review:
Errors:
PHP Fatal error: Uncaught Error: Call to a member function get_name() on null in /home/gadmnstps/public_html/wp-content/plugins/pro-elements/modules/theme-builder/documents/single-base.php:176
WordPress database error Commands out of sync; you can’t run this command now for query SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (11) ORDER BY meta_id ASC made by shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, LiteSpeed\Core->send_headers, LiteSpeed\Control->finalize, LiteSpeed\Metabox->setting, get_post_meta, get_metadata, get_metadata_raw, update_meta_cache
WordPress database error Commands out of sync; you can’t run this command now for query SELECT a.action_id FROM wp_actionscheduler_actions a WHERE 1=1 AND a.hook=’wc_schedule_pending_batch_processes’ AND a.status IN (‘in-progress’, ‘pending’) LIMIT 0, 1 made by shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Internal\BatchProcessing\BatchProcessingController->Automattic\WooCommerce\Internal\BatchProcessing\{closure}, Automattic\WooCommerce\Internal\BatchProcessing\BatchProcessingController->remove_or_retry_failed_processors, call_user_func, as_has_scheduled_action, ActionScheduler_Store->query_action, ActionScheduler_DBStore->query_actions
Warning:
PHP Warning: Undefined array key “animated_hearts” in /home/gadmnstps/public_html/wp-content/plugins/et-core-plugin/packages/xstore-wishlist/xstore-wishlist.php on line 195
PHP Warning: Undefined array key “show_icon” in /home/gadmnstps/public_html/wp-content/plugins/et-core-plugin/packages/xstore-wishlist/xstore-wishlist.php on line 214
Could you please check and guide me on how to fix or prevent these issues? I believe they might be related to some background processes or unoptimized elements in the theme.
Looking forward to your help in resolving this.