This topic has 4 replies, 2 voices, and was last updated 4 months ago ago by Rose Tyler
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
Hello ethashots,
Thank you for reaching out and bringing these issues to our attention. We understand your concerns regarding the memory consumption and the errors you are encountering, and we are here to assist you.
The errors you’ve described suggest that the theme is exceeding the allocated memory limit, which is causing the 500 internal server error. This can happen for various reasons, including but not limited to, extensive plugin use, for example, https://gyazo.com/799104c20f1f59f05852f6077fa149c4 (temporarily disable translatepress-multilingual plugin), high website traffic, or certain features within the theme that require more resources.
To address this, we recommend the following steps:
1. **Increase the PHP Memory Limit**: You can increase the memory allocated to PHP. This can be done by editing the wp-config.php
file and adding the following line:
define('WP_MEMORY_LIMIT', '512M');
Please adjust the memory value based on your hosting environment and requirements.
Your hosting provider can do this for you, just contact them.
2. **Optimize the Website**: Check if there are any inactive plugins or unnecessary modules within the theme that can be disabled. This can significantly reduce memory usage.
3. **Check Plugin Compatibility**: Ensure that all plugins are compatible with the current version of WordPress and the theme. Sometimes, outdated plugins can cause performance issues.
In your case, we would recommend you contact the hosting provider and ask to downgrade PHP version to 8.1.
4. **Server Configuration**: Consult with your hosting provider to ensure that your server configuration is optimized for your website’s requirements.
Regarding the database errors, it appears there might be a conflict or a synchronization issue. It could be beneficial to:
– **Update WordPress and Plugins**: Ensure that all components of your website are up to date.
– **Database Optimization**: Use a plugin or consult with a specialist to optimize your WordPress database.
Best Regards,
8Theme’s Team
i am the server admin and the site admin, we have our own vps
Max execution time: min (120-180) 30
Max input vars: min (1000-2000) 1000
regarding this issue what could cause this ? i fixed the error i sent, but for this you did not answer me
Hello ethashots,
We kindly request that you increase the specified values on the server side as mentioned earlier.
Please read this article https://www.8theme.com/documentation/xstore/theme-installation/xstore-theme-requirements/
For example, max_execution_time is a limit for the execution time while running the script. For example, if you import content and scripts need more than 60 secs then you may face the problem with demo content import. But depending on other server settings script could finish its work faster. So, if you didn’t face problems with theme options then don’t worry about this parameter. But in your case would be better to increase max_execution_time.
Best Regards,
8Theme’s Team
You must be logged in to reply to this topic.Log in/Sign up