Hello @farhad0,
I understand you are having trouble after reactivating WooCommerce, which was deactivated for a while in your localhost.
To understand the issue further, could you please share the version of WooCommerce you are using in your localhost? Also, I tried installing WooCommerce on a local environment using localwp.com, and I could run the installation wizard without any apparent issues.
Are you able to share with us your system status report which you can find via WooCommerce > Status > Get system report > Copy for support, so that we can try to understand your site setup.
You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.
Once we have more information, we’ll be able to assist you further.
@ckadenge
Hi, Thank you for your reply,
I use latest versions of everythings (Woocommerce, WordPress)
As I mentioned the plugin doesn’t activate, So I can’t get details of Woocommerce system report
However I enabled all debug flags and i checked all error_log, But nothing display or create in log files
This is very strange for me too
I think it is a database error which when activating it will hang during activation and stops the rest process
I also set the limitation of max_execution_time to 99999
Hey, @farhad0!
Thanks for the information!
I use latest versions of everythings (Woocommerce, WordPress)
Just to confirm:
WooCommerce – 8.5.2
WordPress – 6.4.3
Correct?
Do you have any custom code on the website?
Can you try using something like Advanced Database Cleaner to erase all data and try to install Woo again to see if the issue is solved?
Once you have installed and activated the plugin, you can navigate to the “Clean-up” tab and select the “WooCommerce” option. From there, you can select the data you want to remove.
Looking forward to your reply.
Have a wonderful day!
Hi,
@carolm29
Thank you for reply,
Yes, Everythings are in latest stable version,
I was removed woocommerce tables and records in wp-options tables,
I install Advanced Database Cleaner but it doesn’t display woocommerce in the options, it seems it is because i was removed woocommerce tables before
Still I can’t activate woocommerce and there isn’t error in error log at all when I activate woocommerce, but a blank page displays when I activate it
Other plugins are disabled and i test using default WP themes
The link of blank page is:
http://localhost/wordpress/wp-admin/plugins.php?action=activate&plugin=woocommerce%2Fwoocommerce.php&plugin_status=all&paged=1&s&_wpnonce=7c1fb5b5bf
This site can’t be reached
The connection was reset.
Try:
Checking the connection
- Checking the proxy and the firewall
- Running Windows Network Diagnostics
ERR_CONNECTION_RESET
Strange!!
Hey @farhad0
I’d like to gather a bit more information on this, please can you clarify the following:
- Does this issue only pop up when activating WooCommerce? Are you able to activate other plugins without any issues?
- Which server software are you using for your local environment?
- Have you restarted all your services to see if this makes any difference?
- Have you double-checked your firewall/proxy settings?
Looking forward to your response!
@beautyofcode
Hi, Thank you for your support,
- Does this issue only pop up when activating WooCommerce? Are you able to activate other plugins without any issues?
Yes, It occures only on woocommerce and I can able to activate other plugins without any issue
- Which server software are you using for your local environment?
I use XAMPP
PHP 8.2.4 (cli) (built: Mar 14 2023 17:54:25) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.2.4, Copyright (c) Zend Technologies
with Zend OPcache v8.2.4, Copyright (c), by Zend Technologies
- Have you restarted all your services to see if this makes any difference?
Yes, I did many things, But nothing helped, Very Strange
- Have you double-checked your firewall/proxy settings?
Yes, Everythings are ok, This problem is just with woocommerce
May be there is a database problem when activating woocommerce
I remember that I modified one record of options table accidentally, But I don’t know where to find it, What is important there for preventing woocommerce activation?
Thank you all
Zee
(@doublezed2)
Hello Farhad Sakhaei,
Thank you for your reply.
To help diagnose this issue further and resolve it, here are some more troubleshooting steps you can take:
1. Try setting up a different WordPress site on localhost and attempt to install and activate WooCommerce there. This will allow us to determine if the issue is specific to your current WordPress installation or a broader server environment problem.
2. Consider deleting the WooCommerce directory from the ‘wp-content/plugins’ directory and then re-downloading and activating a fresh copy of WooCommerce.
3. Check the ‘wp-config.php’ file to ensure that only the default code is present. If there have been any custom modifications, they can sometimes result in unexpected behavior.
4. If you have a ‘.htaccess’ file within your WordPress root directory, try deleting it and then re-saving your Permalinks settings from ‘Settings’ > ‘Permalinks’ in the WordPress admin area. This can often regenerate a clean ‘.htaccess’ file with the correct rules.
Please try these steps and give us an update on the situation.
Your feedback will be critical to further troubleshooting and guide you to a solution. 🙂
Best regards.
@ckadenge
@carolm29
@beautyofcode
@doublezed2
Hi,
Thank you all for your support,
I finally found the problem,
First I used a clean WordPress setup to install Woocommerce and again it didn’t activated (same before)
I downloaded previous versions of Woocommerce and revert back to previous versions one by one
At last I could activate the Woocommerce with version 8.4.0
After activating WooCommerce and ensure that all databases are ok, again I updated the woocommerce to latest version (Plugin in activated mode)
And again that problem occured even on the page:
http://localhost/wordpress/wp-admin/plugins.php
It was very strange for me, I checked php.ini settings and I disabled opcache
It seems that versions after 8.4.0 doesn’t work with opcache enabled on XAMPP !!!
I increase these values:
opcache.memory_consumption=1000
opcache.max_accelerated_files=9999
But it doesn’t work with enabled opcache at all
So I just disabled opcache for now to resolve this issue by the team
Regards
Hi @farhad0,
I’m glad you were able to find a solution to your inquiry here and thanks for sharing it with the community too! 🙂
I will mark this thread as resolved. Should you have further inquiries, kindly create a new topic here.
Thanks!
@shameemreza
Hi,
Please remember that this is not resolved completely, as currently the versions after 8.4.0 doesn’t work using enabled opcache on XAMPP and it break the WordPress completely.
I just disabled opcache to do my work, But opcache is necessary for better speed and it’s a core PHP extension
Thank you
Hello again @farhad0,
I appreciate your patience and understand the importance of the issue you’re facing.
We’re sorry to hear about the problems you’re experiencing with opcache on XAMPP for versions after 8.4.0. We acknowledge that opcache is a crucial PHP extension for enhancing speed.
In the meantime, we strongly recommend continuing with opcache disabled. We understand this is not the ideal solution, but we assure you we are doing our best to resolve this as soon as possible.
Thank you for your understanding and patience.