• Resolved obsidianurbex

    (@obsidianurbex)


    Hi

    When I click “Preview” I get a page loading with

    title “about:blank”

    and text

    “Please wait…

    Generating preview.”

    Nothing happens ??

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter obsidianurbex

    (@obsidianurbex)

    Dang, that gives a 500 error.

    If I alter

    RewriteCond %{REQUEST_URI} !^/wp-(admin|json)/

    to

    RewriteCond %{REQUEST_URI} !^/wp-admin)/

    or

    RewriteCond %{REQUEST_URI} !^/wp-json)/

    No error, and with wp-json excluded Gutenburg works ??

    Moderator Marius L. J.

    (@clorith)

    Ahhh, you could split it up then, as you can add as many conditions as you’d like. I guess my pattern isn’t supported, so apologies for that ??

    for me i have probably the same problem.. but..
    when i press preview button, nothing happened.
    opened new tab about:blank
    and.. generating preview.
    and thats all

    but! if i press right button to preview button and click open it in new windows it works

    pls help!

    OK.. found.
    i deactivate gutenberg in plugins, and it almost works (may be it was some conflicts between builtin gutengerg and plugin)
    why ALMOST
    when i push preview button, it generates preview in new window, but it opens an already saved copy of my post, not changed one. but if i press refresh button, it shows me the right one.

    why so?

    Hi @obsidianurbex and @clorith

    This was VERY helpful! As it turns out, this is something of an obscure issue and there was not much online to solve this.

    I had the EXACT same issue with the .htaccess code forcing the trailing slash. I had even put out my own ticket for it looking for answers, but then came across your post.

    The only problem I’m having is that when I use the modified .htaccess code, the problem repeats itself. The ONLY way I’m able to publish or modify posts is by deleting the code from .htaccess.

    Did you find a code that worked for the trailing slash and also allowed you to publish and update posts?

    Edit:
    I was able to find this code which worked just fine and allowed me to force the trailing slashes and still be able to post

    # Force trailing slash
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_METHOD} GET
    RewriteCond %{REQUEST_URI} !(.*)/$
    RewriteCond %{REQUEST_FILENAME} !\.(gif|jpg|png|jpeg|css|xml|txt|js|php|scss|webp|mp3|avi|wav|mp4|mov)$ [NC]
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1/ [L,R=301]

    I found it here: https://docs.wp-rocket.me/article/131-redirection-to-enforce-trailing-slash-on-urls

    Cheers

    • This reply was modified 5 years, 9 months ago by mesotu.
    • This reply was modified 5 years, 9 months ago by mesotu.
Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Won’t preview a post draft, or published post’ is closed to new replies.