Niall a11n
Forum Replies Created
-
Hi @reghta!
Automated site performance tools give general recommendations for optimizing your site, but don’t always factor in specific software platform like WordPress and WooCommerce. For instance, Google PageSpeed Insights often recommends removing render-blocking Javascript and CSS but implementing those changes might make create a minimal performance improvement while messing up your site’s appearance: https://wordpress.com/support/site-speed/.
If your site is performing well overall, you may not need to optimize the file. Also, if the file is loaded off Facebook’s servers, as I suspect it is based on what you’re saying, you won’t be able to optimize it.
The
Remove unused JavaScript
is likely caused by the Facebook code loading on that page but not being used specifically on the page.Hope this explains the issue a bit further. I recommend posting Facebook for WooCommerce issues on the plugin’s official support forum if you need further assistance: https://www.ads-software.com/support/plugin/facebook-for-woocommerce/.
Forum: Plugins
In reply to: [WooCommerce] Need help ? WP + Woocommerce = PHP-FPM CPU @ 100%Hi @easyware!
Sorry to hear you’re having trouble with CPU spikes on your VPS.
Do these spikes coincide with anything in particular? For instance, do you get the spikes when performing specific tasks inside the WP-Admin? Or do they coincide with another event, such as a spike in traffic to one of the sites?
PLUGINS
If there’s nothing specific, a plugin is the most likely cause of the spikes. I do know that certain plugins you have installed, like Contact Form 7, are banned from many web hosts as they can cause CPU usage and other performance issues. You may want to run a conflict test to identify any plugins that might be causing the spikes.The best way to determine if the issue is being caused by a theme and/or plugin is to temporarily switch your theme to Storefront (https://woocommerce.com/storefront/?aff=10486&cid=1131038) and disable all plugins except for WooCommerce. Finally, test to see if the issue is resolved by running the set up for a while and seeing if you still get CPU spikes
To figure out which plugin is causing the problem, continue to the next step – reactivate your other plugins one by one, testing after each, until you find the one causing conflict.
Here’s a more extensive explanation in our docs: https://docs.woocommerce.com/document/how-to-test-for-conflicts/
—–
Tools to help you troubleshoot:
Meks Quick Plugin Disabler is a plugin you can install which will remember what plugins you currently have active so it’s easy to switch them back on. Link: https://www.ads-software.com/plugins/meks-quick-plugin-disabler/
Health Check is a plugin that allows you to temporarily disable other plugins and switch themes for that session without impacting your users. Link: https://www.ads-software.com/plugins/health-check/
You can clone your site to a staging environment and perform tests without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin. Link: https://www.ads-software.com/plugins/wp-staging/
PERFORMANCE
You may also want to have a look at our blog post explaining how to performance optimize your WooCommerce site: https://woocommerce.com/posts/woocommerce-site-slow-fixes/. The fixes should help boost your site’s front-end and back-end performance.Also, here’s a list of server recommendations for running WooCommerce: https://docs.woocommerce.com/document/server-requirements/. We recommend:
- PHP version 7.3 or greater
- MySQL version 5.6 or greater OR MariaDB version 10.0 or greater
Let us know how if one of these options fixes the problems you’re having.
Forum: Plugins
In reply to: [NSFW] [WooCommerce] No Vat calculation on SurchargesHi @runtatoma!
If you’ve set the taxes correctly in WooCommerce per these instructions, then they should be working correctly: https://docs.woocommerce.com/document/setting-up-taxes-in-woocommerce/. You may to double-check your tax settings using that guide.
You also said:
The payment system dosent seem to add vat to the charge sometimes.
It sounds like the problem is related to the Bambora plugin your site uses rather than WooCommerce itself. I recommend reaching out to the developers of that plugin for further assistance.
Forum: Plugins
In reply to: [WooCommerce] Sub-category products are showing doubleHi K!
I’m not sure I see the double sub-categories. Could you please explain a bit further?
This kind of problem is usually caused by a conflict with your theme or with another plugin. Have you tried performing a full conflict test and not just a theme conflict test?
?
The best way to determine this is to:- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
Forum: Plugins
In reply to: [WooCommerce] .htaccess – woocommerce_uploads folderHi @koolpal!
The folder is blocked per the .htaccess rule, which should block access to all folders and files in
/woocommerce_uploads/
. The logs show that requests to the uploads folder were blocked as expected.The
AH01797 error: client denied by server configuration
in the log you shared suggest a hosting issue. I suggest contacting your web host to confirm that, as this appears to be a server configuration or permissions issue.Hi @kopfnick!
REMOTE_ADDR
detects the nearest requesting IP and not any other. If there are other further IPs, such as a proxy or firewall, then the requesting IP might be different. You may be seeing Sucuri’s addresses rather than the IP address you’re expecting.Have you tried checking the location with the Sucuri firewall disabled first, then the Sucuri plugin disabled entirely? That should let you rule out Sucuri as affecting the IP address.
Forum: Plugins
In reply to: [WooCommerce] how can I add extra data in order apiHi @mfayaz7!
The orders API lets you create, view, update, and delete individual, or a batch, of orders: https://woocommerce.github.io/woocommerce-rest-api-docs/#orders.
You should be able to add your own custom data to the WooCommerce API order’s response using these filters: https://woocommerce.github.io/code-reference/classes/WC-REST-Orders-Controller.html#303
What kind of additional values are you trying to add?
Hi @limonrojo!
How did you export your production site to your local XAMPP-based server?
I suggest using the free WP Migrate DB plugin to do that, as that’s what we recommend for migrating from one site to another: https://docs.woocommerce.com/document/migrating-products-between-sites/#section-3.
I think the reason you didn’t have this issue before may be due to a plugin conflict or a file permissions issue.
Please let us know if the WP Migrate DB option lets you export all the products, including the downloadable items.
Forum: Plugins
In reply to: [WooCommerce] An issue with the ‘Pickup’ delivery option.Hi @mdyousufcse!
Thanks for the “history book” you shared! It’s very helpful here on the forums to share such a detailed explanation, as it allows us to better help you.
WooCommerce determines the shipping method to use based on a set of criteria. If your customer’s address matches one of those criteria, it will offer any matching shipping method.
If I understand correctly, your site always defaults to ‘ADDITIONAL DISCOUNT AND FREE SHIPPING FROM OUR STORE’ when you enable that option. Is that correct?
When I added a product and entered an address on your site’s cart page, I get the following options:
* БЕСПЛАТНАЯ ДОСТАВКА ПО РОСТОВУ-НА-ДОНУ, АКСАЮ (УСЛОВИЕ ПРИМЕНЯЕТСЯ) (Google Translation: FREE DELIVERY ACROSS ROSTOV-ON-DON, AKSAY (CONDITION APPLIES)
* БЕСПЛАТНЫЙ САМОВЫВОЗ С ДОПОЛНИТЕЛЬНОЙ СКИДКОЙ ОТ НАШЕГО МАГАЗИНА (Google Translation: FREE SHIPPING WITH AN ADDITIONAL DISCOUNT FROM OUR STORE)Is that what you were expecting to see as the shipping options? Or were also expecting to see the CDEK for WooCommerce shipping options too?
Hi @garikaib!
Sorry to hear you’re seeing errors with our PayPal plugin.
I looked at the logs you shared and identified the following error:
[L_ERRORCODE0] => 10002
You can read more about this error in PayPal’s Help Center here: https://www.paypal.com/ls/smarthelp/article/why-did-i-get-api-error-code-10002-ts1030.
This error is because the credentials you entered into the WooCommerce PayPal Checkout plugin are incorrect or invalid. Please follow this guide to enter your PayPal credentials into the plugin again: https://docs.woocommerce.com/document/paypal-express-checkout/#section-5
Please let us know how if you still get the same error after doing that.
Forum: Plugins
In reply to: [WooCommerce PayPal Checkout Payment Gateway] Can’t void PayPal authorizationHi @shadowq!
Thanks for the feature suggestion. I noticed that you’ve already added the request to GitHub, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
Hi @biznext!
This sounds like a configuration issue to me.
Please follow PayPal’s guide on why this error happens and how to fix it:
After that, make sure the plugin is set up correctly: https://docs.woocommerce.com/document/paypal-express-checkout/#section-5.
Let us know how that goes!