Hello awesome support team,
I have some serious issues with my wordpress installation and Newspaper theme (the latest version). I have even opened a support ticket to my hosting company. They are always helpful and sorting all issues perfectly. This time their answer after deep checking of my website was different. That’s why I’m asking you for help.
The main issue is my website has awesome stats on google insights however it’s working very very slow. It’s always a problem with new posts. Connection lost. I’m struggling with managing this page now 🙁
On the server side everything is perfect, hosting support came back to me with this message:
Your site is throwing up a lot of database errors.
The nature of these errors means that a lot of the PHP scripts would depend on a successful database lookup, while those errors exist it might not be possible for the php script to complete. Without an escape method the server would increase the amount of resources at completing the script until it times out. Which is why your site is slow and failing.All the errors seem to link back to the template or theme for your wordpress. You might want to contact the developers and ask them if they can shed any light on the errors.
Would you be able to help me please? Website address: http://cafetography.co.uk/
I can share admin login details with you on PM message.
Thank you in advance
Tom
Theme works great across all our sites (and has the past year). Usually the culprit with this kind of thing is a rogue plugin not updated to work with WordPress 3.9/4.0 which introduced a lot of changes; or a social media related plugin which has to go out and retrieve data and times out, or some kind of plugin which creates dynamic content by doing dbase queries PER PAGE load and not caching that (such as “related items”, complex Ajax loading of additional content on page scroll, forums, site forms which can be pinged externally and have auto-responders, etc.).
Often the ERROR LOGS for your site can give a specific indication of the error.
There is also a great resource checker plugin for WordPress I shared with somebody the other day here, but forget what that link is — it basically tells you WHICH plugin is taking up all your resources, and allows you to remove those, and/or find alternate solution.
I’m sure Marius or Lucian will have “official response” but thought I’d share that.
We had a site become corrupted the other day (first time since WP 2.6 ?) and the only way I could fix that was to use the “reinstall” WP function in the WP admin, which reset all the permissions properly. Weird. That site just kept crashing on everything like preview of theme option, running any plugin settings, etc.
Not sure that helped; but thought I’d at least give you some moral/mental support 🙂
hi, here is one of the plugins I mentioned which is supposed to help with tracking down where all the dbase queries are going … I’ve started using this recently to double check myself on stuff:
WORDPRESS QUERY MONITOR PLUGIN:
https://wordpress.org/plugins/query-monitor/
Query Monitor is a debugging plugin for anyone developing with WordPress. It has some advanced features not available in other debugging plugins, including automatic AJAX debugging and the ability to narrow down things by plugin or theme.
Here’s an overview of what’s shown:
Database Queries
◾Shows all database queries performed on the current page
◾Shows affected rows and time for all queries
◾Show notifications for slow queries and queries with errors
◾Filter queries by query type (SELECT, UPDATE, DELETE, etc)
◾Filter queries by component (WordPress core, Plugin X, Plugin Y, theme)
◾Filter queries by calling function
◾View aggregate query information grouped by component, calling function, and type
◾Super advanced: Supports multiple instances of wpdb on one page
Filtering queries by component or calling function makes it easy to see which plugins, themes, or functions on your site are making the most (or the slowest) database queries.
Hooks
◾Shows all hooks fired on the current page, along with hooked actions and their priorities
◾Filter hooks by part of their name
◾Filter actions by component (WordPress core, Plugin X, Plugin Y, theme)
Theme
◾Shows the template filename for the current page
◾Shows the available body classes for the current page
◾Shows the active parent and child theme name
PHP Errors
◾PHP errors (warnings, notices, stricts, and deprecated) are presented nicely along with their component and call stack
◾Shows an easily visible warning in the admin toolbar
Request
◾Shows matched rewrite rules and associated query strings
◾Shows query vars for the current request, and highlights custom query vars
◾Shows the queried object details (collapsed by default)
HTTP Requests
◾Shows all HTTP requests performed on the current page (as long as they use WordPress’ HTTP API)
◾Shows the response code, call stack, transport, timeout, and time taken
◾Highlights erroneous responses, such as failed requests and anything without a 200 response code
Redirects
◾Whenever a redirect occurs, Query Monitor adds an X-QM-Redirect HTTP header containing the call stack, so you can use your favourite HTTP inspector to easily trace where a redirect has come from
AJAX
The response from any jQuery AJAX request on the page will contain various debugging information in its header that gets output to the developer console. No hooking required.
AJAX debugging is in its early stages. Currently it only includes PHP errors, but this will be built upon in future versions.
Admin Screen
Hands up who can remember the correct names for the filters and actions for custom admin screen columns?
◾Shows the correct names for custom column filters and actions on all admin screens that have a listing table
◾Shows the state of get_current_screen() and a few variables
Environment Information
◾Shows various PHP information such as memory limit and error reporting levels
◾Highlights the fact when any of these are overridden at runtime
◾Shows various MySQL information, including caching and performance related configuration
◾Highlights the fact when any performance related configurations are not optimal
◾Shows various details about WordPress and the web server
◾Shows version numbers for all the things
Everything Else
◾Shows any transients that were set, along with their timeout, component, and call stack
◾Shows all WordPress conditionals on the current page, highlighted nicely
◾Shows an overview including page generation time and memory limit as absolute values and as % of their respective limits
Authentication
By default, Query Monitor’s output is only shown to Administrators on single-site installs, and Super Admins on Multisite installs.
In addition to this, you can set an authentication cookie which allows you to view Query Monitor output when you’re not logged in (or if you’re logged in as a non-administrator). See the bottom of Query Monitor’s output for details.
Hi,
Thanks Christopher!
@Tom I have checked your site and found that all features that use ajax don’t work. I also found some js errors in your console which seem to come from a minified version of and could generate this issue.
First thing you should do is to disable all plugins leaving only the ones essential running then empty all cache files, purge files if using any CDN services and check for this again.
Here you have a screens of the errors I found in console on your homepage: http://screencast.com/t/cYPYosgR
Not sure that this is the blame for your slowly loading site but first you should make sure that aren’t and eliminate them.
On the other hand, I have check your site’s page speed using Google’s PageSpeed Insights and according to it you need to optimize your images: http://screencast.com/t/Wfn2Vq7K
You should check it yourself and also use this guide to find how you could make your site faster.
You can also find more info about page speed and how you can optimize your images following this tread: https://forum.tagdiv.com/topic/pagespeed/
Hope this helps!
Thanks