Support » Theme: OceanWP » Server Error 404 after changing CSS color and updating post

  • WTI

    (@wishaware)


    Hello,

    First, I want to say OceanWP is amazing, thank you for offering it.

    However, I just ran into an issue after installing a few updates. Not sure if this is related to OceanWP or Elementor, but I now get an error when trying to publish/update content via Elementor:
    “Server Error (404 Not Found)”

    This only occurs when attempting to add color to the background or text of a button, so somehow CSS related.

    The updates I did just before this started happening were:
    1) Plugins (Elementor, Duplicate Page, Under Construction)
    2) Theme (OceanWP)
    3) WordPress core

    I’m running PHP v5.6.40 with a memory limit of 256MB.

    Here are the things I tried but haven’t helped:
    -Regenerate CSS (Elementor > Tools). Then cleared browser cache (no CDN, and no WP cache plugin exists)
    -switch CSS Print Method (Elementor > Settings > Advanced): from External File to Internal Embedding

    Thank you! Any suggestions would be greatly appreciated.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Amit Singh

    (@apprimit)

    Hello,

    Try to update the PHP version to the PHP 7 and check it fixes the issue or not.

    WTI

    (@wishaware)

    Ok thanks, I’ll see if the web host is willing.

    Amit Singh

    (@apprimit)

    Okay, sure

    WTI

    (@wishaware)

    @apprimit you saved the day. Posts with custom CSS are updating properly again.

    Thank you for your quick and simple suggestion. This also pointed out the host was still using an EOL version of PHP, so good to get that updated as well.

    Amit Singh

    (@apprimit)

    Glad to hear that it is fixed!

    WTI

    (@wishaware)

    Just wanted to post an update as PHP wasn’t actually the problem — it was ModSecurity. When the host updated PHP, they also temporarily disabled ModSecurity. Unfortunately, once I re-enabled it, the 404 error returned.

    So I’m guessing the inability to save CSS is related to ModSecurity and the latest OceanWP update, or maybe the Elementor/WordPress update. I’d check permissions on the CSS file if I knew which file is used for posts.

    Just waiting on the host again, but maybe someone here has a suggestion? It’s a hassle having to disable ModSecurity every time I need to post.

    Thanks

    WTI

    (@wishaware)

    This has been resolved — the host had to whitelist a few things within ModSec.

    Amit Singh

    (@apprimit)

    Thank you for the explanation. It will help others if they have a simlar issue.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.