I have got an error from page speed insight - php

https://developers.google.com/speed/pagespeed/insights/?hl=ja&url=https%3A%2F%2Fwww.wisebk.com%2F
Our web site got an error
Sometimes it is ERROR TIMEOUT , sometimes ACCESS DENIED error.
Does anybody know why this website got an error on page speed insight?
https://www.wisebk.com/
This is wordpress website.

Because your site doesn't respond fast enough, it took nearly 30 seconds to send the first byte (for your server to respond).
This could be a regional thing as Page Speed Insights servers are in the US (and I am in UK) so perhaps read this answer on how to run Lighthouse locally (the engine behind Page Speed Insights) and see if that works (or initially just run Lighthouse in Google Chrome Developer Tools).
Other than that it is a symptom of an overloaded server or something that is wrong with your theme (perhaps trying to dynamically build the page from the database and there is a very long running database query), could be hundreds of things but that is the reason Page Speed Insights isn't working for you.

Related

Wordpress PHP what's doing the server at this moment?

I have a website (wordpress) published and it works perfectly, but from time to time it gets stuck. You try to enter the page and the server is like blocked, processing, and then for some minutes the website doesn't load.
I even added a cache system and performance optimizations, and the website is much faster now, but that keeps happening, from time to time (several times per day) the web is white, blank, loading for a long time.
I don't know what it is: a plugin? my code? it doesn't happen at a specific moment or action. So I can't identify when or where or why it happens.
So, can I somehow log the php code to know what is being executed at that moment? Where is the code stuck?
BTW, I already disabled the wp-cron. That's not it. And the web is huge so I can't start looking into every file for a loop or something, I need something faster.
I recommend checking on some query monitor which plugins / themes are responsible for the bottleneck. You can use GoDaddy's P3 Profiler plugin, which although it is not having updates, remains one of the best options for profiling a WordPress.
If you use cPanel, check the resource usage and try to identify patterns. For example, is the site slow at a specific time? On specific days of the week?
If you have access to Awstats or similar, you can check if there is any bot that accesses your site at some specific time.
If you treat only the symptom (slowness) you will continue to have the same problem. You need to find the source and then solve it at once.
Also check the access logs for detecting anomalies:
https://www.tecmint.com/find-top-ip-address-accessing-apache-web-server/
Looking on Google, I found some services that I think can help:
https://goupcloud.com [complete optimization and identification of bottlenecks (treatment in the cause and not symptom)]
https://www.wpfaster.org/ [full optimization]
https://www.wpspeedfix.com/ [full optimization]

PHP Scripting with Wordpress and Error Logs

Cry for help here.
I have a fairly simple small wordpress site, but it takes forever to load. My hosting provider said, "The server itself isn't having an issue with any other users on it and seems to be operating fine and serving other sites without issue. Almost every time an issue like this exists, where the load average is going over 500, it is usually an issue within WordPress that is causing the server to have unnecessary strain, which brings sites down.".
My developers can not find any issues with their code, and suggest that it is an issue with the root level hosting or WP install, not the sub-domain (where we did the coding). So, I'm trying to find the issue and need someone's help...
this is my first post, so I apologize if it isn't in the right format. - Adam

Sites up and down Intermittently with 'No data received' Error code: ERR_EMPTY_RESPONSE

I'm not very technical so apologies up front! Unfortunately, I've been left to figure this out though as the company who deal with my dedicated server are being less than helpful.
Really hoping someone can shed some light on this. We host around 100 websites and currently, all sites on our server are up and down like yoyos. There doesn't seem to be a pattern - it's very sporadic and intermittent. Usually, you can just click around one of the sites, for example www.innivo.com for a few mins and you’ll see the site drop out, and then after a few refreshes, it will come back, then back down – you get the idea.
In Chrome, I get: No data received
Unable to load the web page because the server sent no data.
Error code: ERR_EMPTY_RESPONSE
In Firefox I get:
The connection was reset
The connection to the server was reset while the page was loading.
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
The server doesn’t go down completely, it just doesn’t seem to serve the page. This also agrees with the firewall theory I mentioned on the call.
We have paid a lot of money to a security company who have removed a few bits of malware in the hope that it would fix the problem, but they now say that the server is completely clean and exploit free. My service provider is saying they won't help until I upgrade PHP on the server but although I'm going to do this, I'm pretty sure that this won't fix the sites dropping out all the time.
I found this post which describes EXACTLY what is happening, but he doesn’t really say how to fix it, or even if his ever got fixed but it’s the closest thing I’ve found!
http://progblog10.blogspot.co.uk/2013/09/modsecurity-causes-sporadic-no-data.html
I looked for this on the server but mod_security didn’t seem to exist otherwise I would have tried to disable it to see if it made a difference. I think though, that this firewall theory sounds plausible. I wonder if we have some other type of firewall which was maybe activated or updated when we updated CPanel last week.
I'm running WHM / CPanel / Apache
Any help would be massively appreciated. Hoping that this has happened to someone else!
My personal experience. I have xplornet. I was unable to access a local site with none of my browsers. I have my computer, my Hughes, my printer, my monitor all plugged into a power bar. I shut off the computer, Unplugged everything including the plug in on the back of the hughes. Left it for a few minutes then plugged everything back in into different outlets on the power bar. I was able to access the site after that. Why I have no idea but it worked.
ive been struggling with this error and i think i have found the solution . I ran my website on local host( MAMP ) . Its worked fine so i called my hosting provider and they said i needed an upgrade cos my existing account did not support simultaneous connections . So i upgraded and its perfectly working

Magento 500 Errors, Slowness

We're running a magento web store on Knownhost (VPS).
Most of the time the site works fine. Occasionally (every few hours?) the site will get very slow and unresponsive, and will throw '500 Internal Server Errors'. There doesn't seem to be anything relevant in the webserver or Magento system/exception logs.
Also, it seems that we're seeing high CPU usage on this account.
I have increased the memory limit to 512MB, and tried everything else I could find. No dice.
We have a managed VPS, so we can change pretty much everything. We had our hosted provider install ImageMagick after reading a suggestion online - didn't help.
Any ideas?
(website is available at myerstownsheds.com if anyone would like a look)
TL;DR; You have an under resourced server. Any code or configuration steps you take to reduce load are only going to postpone the inevitable.
It's impossible to provide a concrete answer to your question with the information given. If you could look at your server logs and see the full error message being generated it would be a big help. "Server logs" probably mean "Apache Logs" in this situation, since the error text you provided is a standard Apache/PHP error, and not a Magento error.
All that said, the most likely culprit is a PHP out of memory error. Magento's performance profile is different than most LAMP stack applications, and most generic VPS hosts are unable/unwilling to make the tweaks needed to run it. If you want to solve this problem long term you need a web host that specializes in Magento. I recommend Nexcess (affiliate link) these days, but Magento has a list of recommended hosting partners, and the Magento Speed Test site offers a nice breakdown of the top Magento hosts.
Take a look at your host's plans
The highest level plan tops out at 4GB of RAM (4096 MB).
Take a look at the starting Nexcess plans
The entry level plan provides 16GB. Four times as much RAM as your current host. Magento is a RAM hungry application. Your current host isn't equipped to handle Magento. Any code or configuration steps you take to reduce load are only going to postpone the inevitable.
I followed the instructions posted by allendar:
Backup and delete app/etc/local/local.xml
Go to site in browser, and follow the configuration process
So far, everything seems to be working fine! It's a little hard to say this soon since the issue was so intermittent, but our site has remained responsive for nearly two hours.
I'm going to mark this as Answered in a couple days. I'll look into getting a better hosting plan.
Thanks everyone!

Specific web page started to occasionally result in 500 internal error

I've come across an issue today where a specific page on my site is sometimes causing a 500 internal error. The page normally can take fairly long to load due to some database queries on large datasets, but only today has the apache 500 internal error started to happen. Obviously I will try to optimise the db queries as much as possible to improve page loading speed, but does anyone have an idea why this may have started to happen after having been fine for a couple of months? I'm not aware of any server wide configuration changes. Is it possibly a script execution time issue which needs to be modified in php.ini?
I had the same issue Here. Ended up having to move the site to a newer server. No resolution was found.
Check out http://bugs.php.net/bug.php?id=28929
without error logs its quite a guessing...
it could be memory-limit
or
execution time
check the php settings and change them.
since the data-value in your db is growing its normal that such problem shows up after a while. you'll have to refactoring the "page" specially your queries.

Categories