• Resolved jrothra

    (@jrothra)


    I’ve been having trouble with my website deactivating the theme. After many unsuccessful fix attempts, my host and I decided to install a second version on a subdomain and if it doesn’t have problems, he’ll shift it to the main site, replacing everything.

    I got an email from them today and here’s what he said:

    I noticed today that the server is making a LOT of connections back to itself, and it seems to be coming from both of your WordPress installs. Here’s just a portion:

    108.60.195.7 – – [18/Jul/2014:12:16:50 -0500] “GET /blog/wp-content/uploads/2014/06/JLR-Logo-250×1006.png HTTP/1.1” 200 11423 “-” “PHP/5.3.28”
    108.60.195.7 – – [18/Jul/2014:12:16:50 -0500] “GET /blog/wp-content/uploads/2014/06/JLR-Logo-250×1006.png HTTP/1.1” 200 11423 “-” “PHP/5.3.28”
    108.60.195.7 – – [18/Jul/2014:12:16:56 -0500] “GET /blog/wp-content/uploads/2014/06/JLR-Logo-250×1006.png HTTP/1.1” 200 11423 “-” “PHP/5.3.28”
    108.60.195.7 – – [18/Jul/2014:12:16:56 -0500] “GET /blog/wp-content/uploads/2014/06/JLR-Logo-250×1006.png HTTP/1.1” 200 11423 “-” “PHP/5.3.28”
    108.60.195.7 – – [18/Jul/2014:12:16:59 -0500] “GET /blog/wp-content/uploads/2014/06/JLR-Logo-250×1006.png HTTP/1.1” 200 11423 “-” “PHP/5.3.28”
    108.60.195.7 – – [18/Jul/2014:12:16:59 -0500] “GET /blog/wp-content/uploads/2014/06/JLR-Logo-250×1006.png HTTP/1.1” 200 11423 “-” “PHP/5.3.28”
    108.60.195.7 – – [18/Jul/2014:12:17:04 -0500] “GET /blog/wp-content/uploads/2014/06/JLR-Logo-250×1006.png HTTP/1.1” 200 11423 “-” “PHP/5.3.28”
    108.60.195.7 – – [18/Jul/2014:12:17:04 -0500] “GET /blog/wp-content/uploads/2014/06/JLR-Logo-250×1006.png HTTP/1.1” 200 11423 “-” “PHP/5.3.28”
    108.60.195.7 – – [18/Jul/2014:12:17:09 -0500] “GET /blog/wp-content/uploads/2014/06/JLR-Logo-250×1006.png HTTP/1.1” 200 11423 “-” “PHP/5.3.28”
    108.60.195.7 – – [18/Jul/2014:12:17:09 -0500] “GET /blog/wp-content/uploads/2014/06/JLR-Logo-250×1006.png HTTP/1.1” 200 11423 “-” “PHP/5.3.28” . . .

    That means WordPress is somehow triggering additional requests from the server to the server. Perhaps it’s in the theme somewhere and maybe you have a full URL to the logo instead of the relative URL. This traffic is going to cause problem though so can you fix this quickly?

    On both sites I uploaded the desired logo using the “Appearance > Customize” feature in WP. I don’t know how to fix this on the site. Help, please!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter jrothra

    (@jrothra)

    I tried removing the logo from both sites using the Appearance > Customize feature. I also permanently deleted the logo image from the media file. I then uploaded a brand new logo image (new file name) to the site https://www.johnrothra.com using the Customize option; I left the subdomain version logo-free.

    We’ll see if that made a difference.

    Thread Starter jrothra

    (@jrothra)

    According to the host, it seems to be related to how the logo is called. Here’s the source code for the logo

    <a class="site-logo" href="https://www.johnrothra.com/" title="John L. Rothra | Addressing issues from a gospel-centered perspective"><img src="https://www.johnrothra.com/blog/wp-content/uploads/2014/07/JLR-Logo-250x100.png" alt="Back Home" width="250" height="100" style="max-width:250px;max-height:100px" /></a>

    The page for that source code: https://www.johnrothra.com/racism-conservatives-promote-bigotry-guise-information/

    It seems odd if it’s just the logo causing problems because WP uses the full URL to call all images you import to the media system and add to posts/pages (according to the source code).

    Thread Starter jrothra

    (@jrothra)

    All five images in the footer are called using the full URL just like the logo at the top. However, the only difference is the logo is added using the Appearance > Customize feature, the others were manually coded into the widget. Thus, I suspect it may be related to the theme, but I have absolutely no idea.

    Theme Author presscustomizr

    (@nikeo)

    Hi @jrothra, any update on this? Do you still have issues?

    Thread Starter jrothra

    (@jrothra)

    It seems to have reduced when I shut off two plugins and switched to two others.

    SEO Ultimate —-> WordPress SEO by Yoast
    WP Super Cache —-> W3 Total Cache

    The host said it’s still going on, but not as much. The problem is not really the absolute vs. relative method of calling images, but that the server itself is calling for something within itself. It was more than the average WP site, but now that I’ve changed those two plugins it seems to be within the average range (so far, at least).

    Thread Starter jrothra

    (@jrothra)

    @nikeo

    Just talked to the host. The server is still experiencing a high volume of calls from itself to itself within the site. The reason is unknown. It’s floating between the #6 highest CPU usage site and exceeding the maximum.

    I think it’s plugin related or theme related (not sure which). Although the CPU usage is lower now, the fact that such a small site is taking so much at times is concerning to me.

    Ask your host to monitor the situation when you move to the parent theme for half an hour. This will narrow down what’s causing the issue.

    If it improves, then paste your functions.php on pastebin and link here, as the error will be in your child theme.

    If it doesn’t improve, then deactivate all plugins for half an hour and monitor again.

    Etc…

    I was also having the same problem, with about 15 images (logo twice and others were in a widget sidebar). Each time the website was opened about 5 Mb traffic was generated (with PHP as user agent) and loading took lots of time.

    I deactivated all plugins, and still saw my site generating the above mentioned call but only with logo image. So I concluded it must be the probmme with the theme.

    This led me to “getimagesize” call in the “parts/class-header-header_main.php”, which when commented would omit having the logo being fetched from inside of the server.

    Also it turned out widget in sidebar used same method, commenting it there as well, speed up my site about 400% and no unecessary traffic is generated any more.

    Hope it helps.

    Thread Starter jrothra

    (@jrothra)

    @zoowoo — I’ll have to look into that. If that fixes the problem for me, then that would seem to indicate an issue with the theme.

    Thread Starter jrothra

    (@jrothra)

    Implemented change and notified my host (they’ve been great, BTW — https://www.mediaserve.com). Now we’ll see what happens on the server.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Logo Call Causing Server Issues’ is closed to new replies.