• Resolved jellowned

    (@jellowned)


    Hey all. Recently I encountered a problem. I searched for it and I didn’t find a solution.

    When I’m creating an article, if I apply a color to a word, the article will return a 404, same with the preview. If I center the text, the article will infinite save the draft and I have to refresh the page to bring back the uncentered text or will show a 404 in the preview and won’t post. Those are the only 2 things that crashes my article. I don’t know what to do to fix it.

    What I did :

    • Update WordPress to the last version
    • Used an old backup
    • Check permalinks
    • Update PHP

    I’m out of ideas.

Viewing 9 replies - 1 through 9 (of 9 total)
  • w

    (@woptimize)

    Can you also try to switch to a default theme like Twentyseventeen and see if the issue is still there?

    Thread Starter jellowned

    (@jellowned)

    Thanks for the reply ! I switched to Twenty Seven and tried with other like Twenty Fifteen, it does the same thing. When I change the color of a word and press Preview, I got a 404 on my page. Not the admin panel, the article page that I try to preview.

    • This reply was modified 7 years ago by jellowned.
    w

    (@woptimize)

    That’s weird. Try also to save again your permalink structure.

    Which plugins do you have installed on your website?

    Thread Starter jellowned

    (@jellowned)

    Alright, I’ll do that.

    Here’s all my plugins :

    • All In One WP Security
    • Better RSS Widget
    • Contact Form 7
    • Google Analytics Dashboard for WP (GADWP)
    • oAuth twitter sidebar widget
    • Polylang
    • Post Types Order
    • Yoast SEO
    w

    (@woptimize)

    Maybe it’s an issue with Polylang.

    Check if this resolves it:
    https://polylang.pro/doc/i-activated-the-plugin-and-my-posts-are-not-displayed-anymore/

    Thread Starter jellowned

    (@jellowned)

    I disabled the plugin, same thing. There’s already a default language.

    I can post anything and it’s all good. The site is working fine, everything’s fine except when I want to center the text or apply color in an article. It redirects me to a 404 on https://[SITE_URL]/wp-admin/post.php when I press Preview, Save draft or Publish.

    It’s a really weird issue.

    • This reply was modified 7 years ago by jellowned.
    Thread Starter jellowned

    (@jellowned)

    I found something interesting. I made some tests and it’s somewhat related to the style attribute. If I enter the following in the text editor, it will work:
    <span>Some text</span>

    But if I change the style of an element like the color or the text-align, it will do a 404.
    <span style="color: #008000;">Some text</span>
    <p style="text-align: center;">Some text</p>

    I don’t know how to fix this but it may be CSS related.

    Thread Starter jellowned

    (@jellowned)

    I found a way to solve my problem but I’m sure there’s a way around.

    I need to disable the ModSecurity in CPanel -> Security -> ModSecurity.

    If someone find another way, please feel free to share it !

    w

    (@woptimize)

    Ummm, without access to the dashboard it’s difficult to understand what the cause could be.

    Other things that comes to my mind is to check if there are Javascript errors (https://codex.www.ads-software.com/Using_Your_Browser_to_Diagnose_JavaScript_Errors), and to activate the debug mode and check if there are php errors (https://codex.www.ads-software.com/Debugging_in_WordPress)

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Center or colored text in article brings a 404 page’ is closed to new replies.