Hi @danishhaidri
Thanks for reaching out.
Almost all the critical errors you shared above are related to ElementorPro
.
Elementor is a third-party plugin, which limits us from being able to provide support for it. I’d suggest reaching out to the plugin developer directly at https://elementor.com/support/ since they’d be more familiar with how it works than we would be. You can also open a topic in their forum: https://wordpress.org/support/plugin/elementor/
I hope this points you in the right direction.
Cheers
Thread Starter
CamZL1
(@danishhaidri)
Sorry @margaretwporg, shared the wrong ones. Here are the WC errors.
2022/05/28 14:22:40 [error] 1118320#1118320: *1942288 FastCGI sent in stderr: “PHP message: The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 3.1.PHP message: The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 3.1” while reading response header from upstream, client: 5.193.85.81, server: xyz.com, request: “GET /wp-json/wc-admin/options?options=woocommerce_task_list_reminder_bar_hidden&_locale=user HTTP/2.0”, upstream: “fastcgi://unix:/var/run/xyz.sock:”, host: “xyz.com”, referrer: ”
https://xyz.com/wp-admin/admin.php?_wpnonce=875b3738ca&page=wc-status&tab=tools&action=clear_transients
”
2022/05/28 14:22:38 [error] 1118320#1118320: *1942244 FastCGI sent in stderr: “PHP message: PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home/xyz/webapps/xyz/wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-options.php on line 54PHP message: PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home/xyz/webapps/xyz/wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-options.php on line 54” while reading response header from upstream, client: 5.193.85.81, server: jobsfornationals.com, request: “GET /wp-admin/admin.php?_wpnonce=875b3738ca&page=wc-status&tab=tools&action=clear_transients HTTP/2.0”, upstream: “fastcgi://unix:/var/run/xyz.sock:”, host: “xyz.com”, referrer: ”
https://xyz.com/wp-admin/admin.php?page=wc-status&tab=tools
-
This reply was modified 2 years, 3 months ago by CamZL1.
Thanks for getting back to us @danishhaidri!
The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 3.1
This issue is already reported and will get fixed in WooCommerce 6.6.0. You can keep track of progress from this page. → https://github.com/woocommerce/woocommerce/pull/32891
PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home/xyz/webapps/xyz/wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-options.php on line 54
Are you using the latest version of WooCommerce(which is 6.5.1)?
In the past several users faced the issue. You can follow the suggestions of the following threads, hopefully, that will solve the issue.
* https://wordpress.org/support/topic/class-wc-helper-options-php/
* https://wordpress.org/support/topic/warning-array_key_exists-expects-parameter-2-to-be-array-boolean-given-in-3/
I hope that helps.
Roxy
(@roxannestoltz)
Hi @danishhaidri ,
Thanks for providing the correct errors!
PHP message: The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 3.1
According to the Github pull request that was raised, the fix will be released with WooCommerce core 6.6.0.
https://github.com/woocommerce/woocommerce/issues/32863#issuecomment-1128327458
PHP message: PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home/xyz/webapps/xyz/wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-options.php on line 54
It seems like the code is trying to retrieve an option from the wp_options
table which is being passed as boolean
instead of an array
.
As a first step, please could you navigate to WooCommerce > Status > Tools and run the tools to Clear Transients and Clear WooCommerce Transients
If this makes no difference on your end, please could you share a screenshot of what you see and where you are seeing it? I recommend https://snipboard.io for easily sharing screenshots – please follow the instructions on the page, then paste the URL in your reply here.
Additionally, please share a copy of your System Status which you can find via WooCommerce > Status. Select ‘Get system report’ and then ‘Copy for support’.
Once you do this, you can paste your response here.
Thanks!
-
This reply was modified 2 years, 3 months ago by Roxy.
Thread Starter
CamZL1
(@danishhaidri)
Hello @roxannestoltz & @shaonback2,
Thank you for your prompt reply.
I have cleared both the transients: https://snipboard.io/ktZVTK.jpg
May I have the support email address to send the System Report?
Hi @danishhaidri!
Requests made on the WooCommerce forum are handled in the forum; there is no email address for forum support.
You may want to redact or remove any sensitive information on the System Status Report. Most users find removing their site URL sufficient.
Also, you could use a service such as Pastebin and set the deadline to a week or two weeks, giving us enough time to look at it and help you with the issue. Setting an expiration date will automatically remove the paste in Pastebin.
I hope this helps!
Thread Starter
CamZL1
(@danishhaidri)
Thread Starter
CamZL1
(@danishhaidri)
BTW we are using this WC Version: https://snipboard.io/0FqmCH.jpg
Hello,
Thanks for sending the system status report.
Failed: 1
Pending: 21
Can you please go to WooCommerce > status > scheduled actions and run the pending actions? Please allow some time for them to run appropriately.
You can use a plugin like https://wordpress.org/plugins/wp-crontrol/ to help you manage your cron events.
Let us know if this works for you.
Thread Starter
CamZL1
(@danishhaidri)
@ihereira most of these are pending tasks for future dates https://snipboard.io/ojCWqv.jpg
Thread Starter
CamZL1
(@danishhaidri)
Hi @danishhaidri
It seems that the error in the Sceduled Actions is a timeout generated by Rank Math SEO: by Rank Math – 1.0.89.1
. This is a third party plugin, and you can contact their support here: https://wordpress.org/support/plugin/seo-by-rank-math/
The timeout means that the script did not complete in time. That means either it took to long to run, or it failed silently, probably leaving no error log entry.
Your server is currently set to timeout events after 300 seconds, or 5 minutes, which we would recommend. We do not generally recommend going longer than that. If there is only one event, it may not be of any consequence – your server may have been busy handling traffic or product updates at the time. If it becomes a pattern, it should probably be raised on the Rank Math forum.
Thread Starter
CamZL1
(@danishhaidri)
@nicw thank you for your suggest. I will keep any other errors in observation.
Sure! We’ll be here if you have more questions.