Wordpress not updating on my MacBook since moving to DO

November 5, 2018 445 views
WordPress

I have a strange problem where WordPress won’t update on my MacBook.The changes are seen on my computer, but in reality it is not reflected on my website. So when I check from mobile, I can see that my post is not published, my plugins are not added or deleted etc.

When I published a new post from another computer it got reflected.I can see it on my website. I tried other browsers, but has the same result.

I contacted Apple, did whatever they said to fix, updated to latest software. Now they say it must not be a problem with the MacBook, but WordPress.

And that post can’t be seen on Pinterest too (only from Mac). In fact, if I typed the link of the post on my browser on Mac, it fails to load. but I can view it from other devices.

I am at a loss of what to do. It was working fine, until I moved to Digital Ocean. I don’t understand if this is a problem with the MAC, the host or WordPress.

Any help will be greatly appreciated as I can’t work anymore due to this problem. Tried all the cache clearing too. Please help!

I contacted DO twice but the support is very very slow.

I have talked to people who have had the same problem and for some it was a problem with the host and a fix does from the host’s side solved their problem. DO support is very slow I hope they reply back soon. Meanwhile if there is anything I can do, please help me with it.

2 Answers
jarland MOD November 5, 2018
Accepted Answer

Hey friend!

Let me rephrase this to see if I understand correctly, and you can correct me if I do not.

When you post an update on your Wordpress site from your MacBook, you see the change reflected on your MacBook. When you view the site from any other location, you cannot see the change. Is this correct?

I’ll move on assuming that it is, and cover the two scenarios I think are the most likely.

  1. Your MacBook is logged in to Wordpress while the other systems are not. The Wordpress instance is using a caching plugin that has stale cache and isn’t updating, but the cache is only displaying to unauthenticated viewers. Therefore by logging in you see the new content, and by logging out you do not. In this case, remove the caching plugin and try a different one.

  2. Your MacBook is updating a different instance of Wordpress in a place that you formerly hosted it, where it may still be online. You configured the URL to point to the IP of that old hosting via /etc/hosts, to get started on editing the website prior to DNS propagation taking place, and you forgot about it and never removed it. In that case, open the Mac terminal app and run this to see if the domain is listed there:

sudo cat /etc/hosts

If it isn’t listed in there, I propose #2 here has no relevance whatsoever.

Jarland

  • Hi!

    Yes, you understood the problem correctly. Thanks for your reply!

    I think may be #2 is the problem because I had started editing and published a post within 48 hours of pointing the name servers to new host.

    I ran the command you gave me but it is asking for a password.
    And what should I look for? Is my domain name listed on the terminal after typing this command?

    And let me tell you how it started. When I first published my post, it appeared on my computer and not anywhere else. And after doing some cache clearing and all I understood whatever I do on Wordpress from my computer is in fact not appearing anywhere else.

    So I tried publishing from a different laptop and whatever I do from that computer did reflect on my site.

    But now there is a twist, as Wordpress on other devices has also started acting up. Means, the changes I make from my mobile or other computers are also not reflected properly. By properly I mean, sometimes it does and sometimes it doesn’t.

    And what I noticed on MacBook is, WP does update sometimes but only for a short period of time and then it goes back to being weird.

    For testing I did something. I published a post with just one line by logging into my mobile and checked if it appears in real. It is not shown on my site but it’s there in the WP editor of my mobile browser. And when I looked from MAC, it’s not there even in the editor.

    I hope you understand what I am saying. It is not making sense to me but that’s what is happening.

  • Hi Jarland!

    Please ignore my previous reply as the problem is now with MacBook alone.

    So looks like your second assumption is RIGHT! I typed in the command and I saw my domain name in it.
    Here I am pasting what came in the terminal:

    Host Database localhost is used to configure the loopback interface when the system is booting. Do not change this entry.

    127.0.0.1 localhost
    255.255.255.255 broadcasthost
    ::1 localhost
    77.104.138.107 habitsbuzz.com www.habitsbuzz.com

    habitsbuzz.com is my domain name.

    Can you please tell me what to do next? I can’t wait to solve this.

    Thanks!

    • Excellent! One step to resolution now. Type this in your terminal:

      sudo nano /etc/hosts

      Enter your OS X account password if asked, hit enter. Use arrow keys to move to end of the line with your domain on it, backspace until it’s gone, do Control+O and then hit enter to save, Control+X to exit. A reboot may not hurt but may also not be necessary.

  • Hi Jarland!

    It worked like a charm! I am super happy that finally someone identified my problem correctly.

    Thanks for your help. You are awesome!

Have another answer? Share your knowledge.