Wordpress unknow request slowing down my website - wordpress

I am optimizing a wordpress site using woocommerce plugin.
All seems fine except one unknown request reported by gtmetrix.
It seems that this variable is being appended on every url on my site:
?resource=cart
This specific request takes 2 to 3 seconds to load
and here is the response:
{"cart":{"token":"","item_count":0,"total_price":0,"items":[]}}
Any ideas how to disable this?

Perfect! I advise you to disable all the plugins and reactivate one by one to figure out which to be the error on your site.
30 Plugins are many, and therefore they can try various contrasts between them, between the version of Wordpress and the version of Woocommerce.
After finding the wrong plugin, you can contact the developer to report the bug and have it updated.
Otherwise you will have to delete it and implement the PHP code yourself.

Related

Remove unwanted Url variable when WooCommerce is active in Wordpress

I've been facing some issues lately with our new business website. Basically, when the homepage is loaded www.motionitalia.it it looks like to redirect to another page https://www.motionitalia.it/?v=e0c86157e86f. I've asked a friend and he suggested that it might be related to the cache.
I tested the website using Site Health's tool called diagnostic mode and I deactivated all the plugins. It turned out that the ?v=e0c86157e86f appears when I activate Woocommerce.
I would like to remove it from the URL because it slows down the website and it doesn't even look professional. Has anyone of you ever experienced it? If so, could you suggest to me a way to fix it?
This is due to WooCommerce geolocation with page caching support enabled
To disable ?v=e0c86157e86f like from WordPress Urls when WooCommerce plugin is active, Go to WooCommerce Settings > General (tab), then for "Default customer location" select "Geolocate" instead of "Geolocate (with page caching support)", then save.
As you will see, the Urls are now clean without ?v=e0c86157e86f like.

Wordpress website stops working for a particular IP after updating a page

Weirdest problem ever. I use wordpress (last version) for my website and I use WP-bakery page builder. It has worked without problems for years. All my plugins are updated to the latest version, except WP bakery page builder because i'm not paying for it.
Today, i decided to update the website, and I go to the contact page of my website and change 1 word in the page and click "update". The website ends up showing a "timeout" and the website stopped working.
"This site can’t be reached. Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_TIMED_OUT"
In opera the error is DNS_PROBE_FINISHED_NXDOMAIN
Then I tried with a VPN and the website works, so I try to update the page again and "timeout" again and the website is down
Then I changed the VPN ip again and my website is working on that new IP. I try to change a blog post, no problem, I add new pages with the testimonial plugin and no problem, then, thinking that everything is ok, i go to the contact page again and i change 1 word and boom... time out and the website is dead for that IP
Now I run out of VPNs to test and I can't access my website anymore, but this problem is very strange.
I tried https://www.isitdownrightnow.com/ and that website says that my site is up, but i can't access it anymore due to this change that produced the same awful result 3 or 4 times.
Who knows about this mysterious issue and a potential solution?
The following is the list of plugins i use:
Akismet
Contact Form 7
Cookie Notice
Google Analytics for WordPress by MonsterInsights:
Hello Dolly
Hide Featured Image:
Jivo Chat
Maintenance and WP Maintenance mode:
PageBuilder by Site Origin and WPBakery page builder:
Read More without refresh and WP Show More:
ShortPixel image optimizer:
Show Hide Author:
Simple Custom CSS:
Slider Revolution:
ThemesFlat by Themesflat.com:
WP Downgrade | Specific core version:
I don't know why it happened, but I discovered that a rule of modsecurity blocked my IP whenever I attempted to update my page... Seems to be a security thing with wordpress to avoid attacks... This shows up in the server log.
To solve it I removed the rule for my website... which may cause some security issues, but who cares about security.
But I don't know where this blocking comes from...

Plugin content type URLs break after Wordpress plugin upgrades

We use a plugin that creates a content type and dynamically generates pages for that type. It works fine except that when when we upgrade plugins (especially The Event Calendar, which also creates a content type, but doesn't experience this problem), this sometimes (but not reliably) causes all of the page URLs generated by the plugin to stop existing. When you go to those URLs, you get a 404 error.
This problem can be fixed by going to the site's permalinks page and (without making any changes) saving the settings.
I looked for a solution that would prevent the problem from happening, but have not been able to find one. I wasn't able to figure out a way to mimic what happens when you save the permalinks settings for each site, and I haven't been able to figure out what might be triggering the problem. I currently "solve" the problem by using a Selenium script to go through each permalinks page in our multisite and click the save button on each automatically after I update plugins.
How can I:
Track down the source of the problem.
Set up a content type that will not unset itself in the wrong circumstances.
Failing either of those things, implement a backend solution that will do what I am currently doing on the frontend, but in a fully automatic way.

wordpress Request 404/410 responses missing fonts

I try to fix the website speed for that I visit gtmetrix to check the exact speed and errors from last seven days one error continuously display there its called web fonts, even I try a lot but still didn't find the proper way to resolve this issue.
I tried turning off plugin one-by-one, but that didn't make any difference, so I know it's not a plugin conflict. I'm looking at the font files on the server, so I know they are there. Any ideas what to try next?
Currently, i am using Fetch Wordpress Theme its free, for reference, I provide the web page test result link please advise.
This Issue Happen Because of the Usage Of Plugin Wp-Hide, Once You Use The Plugin Very Carefully Because If You Mis Configure The Page Speed & Web Page Score Effected.

Unable to remove page from Google Amp cache

I'm having trouble using Google's API to update amp pages from a site I'm working on. The site is a Wordpress based site using WP Amp to generate amp pages, it appends /amp to any enabled pages.
I've read the documentation here and it seems like it should be a simple GET request using this structure:
https://cdn.ampproject.org/update-ping/c/s/www.example.com/example-category/example-page/amp
..which gives me a 204 No Content reply (to be expected Google's docs say). However, when retesting via my phone (with cache cleared etc) it is showing the same old amp page not the updated one.
Surely I'm missing something obvious, look forward to finding out what it is.
Figured this out finally after leaving it for a while and coming back to it.
The URL format for updating Google's cache is:
https://www-example-com.cdn.ampproject.org/c/s/www.example.com/example-category/example-page/amp
Google states that to update you need to have the /update-ping/ prefixing the /c/s switches but that never worked for me. After much trial and effort using the above format works for me every time.
If you run it in your browser expect to see the old version on first page load but if you refresh after that the updated amp page should show.

Resources