• Resolved mauricev2

    (@mauricev2)


    I have a multisite installed with one site having been imported with the WordPress importer. When I try to create a new page and publish it in the imported site, I get this error

    Publishing failed. You are probably offline.

    The error is specific to just this site, which seems odd. I can publish no problem in the other two sites.

Viewing 15 replies - 16 through 30 (of 30 total)
  • @novathewriter2 The answer by Steve Mitchell which recommends updating a few information in the DB with SQL.

    deepu1429

    (@deepu1429)

    When I am posting some articles it shows you appear to be offline. How to fix this

    Changing the site URL did not work for me, and in fact it broke the site and I needed to modify wp-config.php manually in order to fix it. Also, I didn’t want to risk making the database change as one reply said. Here’s what did work for me, but I don’t know why:

    // If we're behind a proxy server and using HTTPS, we need to alert WordPress of that fact
    // see also https://codex.www.ads-software.com/Administration_Over_SSL#Using_a_Reverse_Proxy
    if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
    	$_SERVER['HTTPS'] = 'on';
    }

    Nothing needs to be edited to fit your site. Just add to your wp-config.php file and viola! It probably won’t work for everyone but reply to let me know if it does.

    • This reply was modified 3 years, 11 months ago by earth_human.

    @earth_human WOW thanks my dude!

    I can say I was lucky, been looking at this problem all of last week, then took a break until tonight where I see your answer that was posted today!
    Your solution did not work for me, but I went to the link in your comment (// see also https://codex.www.ads-software.com/Administration_Over_SSL#Using_a_Reverse_Proxy) and found this, that worked for me (added in wp-config.php):

    
    define('FORCE_SSL_ADMIN', true);
    // in some setups HTTP_X_FORWARDED_PROTO might contain 
    // a comma-separated list e.g. http,https
    // so check for https existence
    if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
    $_SERVER['HTTPS']='on';
    

    My problem is that I’m using WordPress that’s included with my Godaddy subscription, and there’s no way of changing the default URL in WordPress settings. I use Cloudflare to get my SSL, so this solution just did the trick! THANKS AGAIN!

    • This reply was modified 3 years, 11 months ago by torvapor.
    • This reply was modified 3 years, 11 months ago by torvapor.

    This has to be with Gutenber. I have disabled Gutenberg with a Plugin and the page was published.
    Note: The site with problem is a subsite en.sumiowater.com. The site sumiowater.com works fine with Gutenberg.

    Thanks @waddles. I had exactly the same problem and switching from Cloudflare SSL to LetsEncrypt without proxy worked perfectly.

    I am using AWS EC2 as a hosting and Cloudflare for SSL and GoDaddy for the domain. Everything was working fine until I added the google verification code into my Cloudflare DNS to verify the google search console. And after removing the search console verification code from the Cloudflare DNS, then cached everything from Cloudflare but still, the problem was there. So I decided to wait for 24 hours. And after 24 hours the problem was solved my Elementor worked fine.

    Here is my site – eventmanagementcompaniesmumbai.com

    Good Luck.

    • This reply was modified 3 years, 8 months ago by polprasad7.

    Same problem here. I am using Cloudflare too. Seeing Cloudflare mentioned a couple of times here I logged into it to check my settings and saw that the SSL encryption mode was set to “Flexible”. I changed that to “Full” and my posts now get published. Note: if it matters I had already had the “Always Use HTTPS” option enabled.

    I have this problem. I am hosting a domain on another domain’s wbespace. The former has no webhosting attached. So, using the classic editor, I set the site url and wordpress url differently. This worked fine except that I couldn’t get the admin bar at the top – a minor nuisance. I have now moved to 5.8 and Gutenberg and can no longer update pages unless I temporarily change the site url to the hosting url and then when editing has finished change back. I would prefer a better solution!

    I have had a simple site up for just short of ten years. I update with a new post every week. Today, for the very first time, WordPress won’t let me post. When I click the Publish button in the editor, I get the message: “Publishing failed. You are probably offline.” I’m not offline.

    I’ve looked at some of the fixes in this thread. Some talk tech gobbledygook, which I do not speak; others blithely say “install the old editor” without saying how to do that.

    Can anyone help?

    ngrailreishih I have the same problem. Had the site for years and never had any problem posting. I think someone did an update somewhere. I host with GoDaddy.

    afumado

    (@afumado)

    mine solved by activate Development Mode inside Cloudflare’s setting.

    I just fixed it. My problem was from WP_SITEURL and WP_HOME

    My WordPress website is updating failed probably offline always time said I cant published my article plz help me I am a beginner pliz

    I know this is an old thread, but I solved this problem by switching back to the classic editor and turning off plugins for SEO, web cache, etc… Just went back to good old fashioned WordPress and it worked.

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘Publishing failed. You are probably offline.’ is closed to new replies.