- This topic has 15 replies, 2 voices, and was last updated 8 years, 3 months ago by Tom.
-
AuthorPosts
-
January 16, 2016 at 11:45 am #166078nanche
Hello,
My homepage is loading extremely slowly, I don’t think it’s a server issue, as the articles load quickly and according to google pagespeed the server response time should be good. I only have this problem on the homepage and category pages, maybe I did something wrong in the customize settings? headphonesguru.comJanuary 16, 2016 at 11:48 am #166083TomLead DeveloperLead DeveloperHi there,
It could be a plugin – can you try #1 on this page?: https://generatepress.com/knowledgebase/debugging/
I see a mixed content error happening which typically means you’re requesting the page as https but some elements are being loaded as http. Make sure your URLs in “Settings > General” are both set to have https.
I also see a javascript error happening in the WordFence plugin.
January 16, 2016 at 12:01 pm #166085nancheHey,
I tried disabling all plugins, but it didn’t seem to help. I tried debugging mode and in my dashboard it said there was an error in functions.php. I have added some custom code there which could be why. I added this at the end, which i use to display dates:function displaydate(){ return date('(F Y)'); } function displaydate1(){ return date('(M. Y)'); } add_shortcode('date', 'displaydate'); add_shortcode('date1', 'displaydate1'); add_filter( 'the_title', 'do_shortcode' ); add_filter( 'aioseop_title', 'do_shortcode' );
January 16, 2016 at 12:05 pm #166086nancheBtw, the articles still load very quick, only the homepage and category pages that display latest posts have loading issues.
January 16, 2016 at 12:18 pm #166089TomLead DeveloperLead DeveloperWhen you remove the code you added does it make a difference?
Are you using the latest version of GP Premium (1.2.79) and the theme (1.3.23)?
January 16, 2016 at 1:07 pm #166094nancheYes, I am using the newest versions. This is the message I get in my dashboard:
Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /home/headphonesguruc8/public_html/wp-includes/functions.php on line 3624January 16, 2016 at 1:12 pm #166097TomLead DeveloperLead DeveloperThat’s most likely being caused by a plugin that isn’t compatible with 4.4.
It looks like the images are the things taking forever to load, which doesn’t make much sense since there’s only two of them.
Not sure if you just did something but the site is loading super fast for me now?
January 16, 2016 at 1:55 pm #166105nancheI have disabled the images on the front page and it’s still very slow.
January 16, 2016 at 2:00 pm #166106TomLead DeveloperLead DeveloperThe site is loading very fast for me?
Pingdom says so as well: http://tools.pingdom.com/fpt/#!/2i9Y3/https://www.headphonesguru.com/
I tried in multiple browsers and all seem to be loading very quickly.
January 20, 2016 at 7:20 am #166934nancheHey, I’m getting the problem again. I’ve done some testing and I’m pretty sure it’s something within the theme. When I disable GP premium the site gets extremely fast, and I even tried generatepress on one of my other sites with the exact same settings as headphonesgurus and it got very slow as well. I don’t
I am clearing WP cache before i speed test btw.
http://tools.pingdom.com/fpt/#!/b014Qg/https://www.headphonesguru.com
http://tools.pingdom.com/fpt/#!/bCDQln/https://www.headphonesguru.com/best-earbudsThere seems to be some kind of problem when loading “Latest Posts”, and it only happens when I activate GP Premium.
January 20, 2016 at 11:24 am #167013TomLead DeveloperLead DeveloperOk, let’s try this.
1. Flush the cache and deactivate your caching plugin
2. Go to “Appearance > GeneratePress” and deactivate the GP Premium add-ons one by one until the issue stopsThis will tell us which add-on your server is having troubles with.
My guess is it’s the Blog add-on, possibly because of the image resizer. My guess is it’s server related since there’s thousands of other websites using it with no issues (for example: http://www.staceysrecipes.com – way more images as well).
However, if we can pinpoint it, we’ll be able to find a solution.
Let me know π
January 20, 2016 at 12:23 pm #167028nancheFlushed cache, deactivated cache and then disabled blog. Seems to have fixed the speed issue.
January 20, 2016 at 12:40 pm #167031TomLead DeveloperLead DeveloperGetting there.
Now activate Blog and add this PHP: https://gist.github.com/generatepress/fcbb9065a958e6e0f9ef
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
If that works, it means your server doesn’t like the automatic image resizing.
Not the end of the world, it just means you’ll have to regenerate your thumbnails after changing the post image sizes in the Customizer: https://wordpress.org/plugins/regenerate-thumbnails/
Let me know π
January 20, 2016 at 12:55 pm #167033nancheWorked perfectly π
January 20, 2016 at 1:11 pm #167037nancheI havn’t installed Regenerate Thumbnails plugin. It seems to work without it, should i install it?
-
AuthorPosts
- You must be logged in to reply to this topic.