• Using latest WordPress version, I have a very long post, which causes a page not found error (404).

    Is there a setting in WordPress or PHP that I can modify to prevent this. All other pages load fine.

    Thanks in advance
    Peter

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello Peter, that’s weird.
    Can you share your post URL please?

    Thread Starter infonote

    (@infonote)

    Yes sure,

    I use machine translation so any text is multiplied by various languages hence the long post/text.

    I suspect it is a memory issue, or max memory settings.

    https://kaizenlog.com/weekend-deals-deals-can-use-weekend-2/

    All other posts work well E.g.
    https://kaizenlog.com/new-event-created-electric-love-productions/

    Doesn’t seem like it’s even making it to WordPress’s templates.

    How are you performing the translation? Are you doing it on every load? That could easily eat up memory and cause the page to fail. If this is the case, you should cache your translations, or perform them on post publication and store the results in the database.

    Thread Starter infonote

    (@infonote)

    I translate them outside of WordPress and then paste them, and just post.

    Thread Starter infonote

    (@infonote)

    To clarify: I just paste the text and press Update. No translation is done in WordPress.

    Try pasting a long document e.g. over 150,000 words and you should be able to replicate the error.

    It sounds like possibly a memory issue. You’ll need to talk to your host about it.

    Thread Starter infonote

    (@infonote)

    Thanks, so there is no setting in PHP.INI or WP-CONFIG etc, where I can change some settings?

    Hello Peter,
    Here are three ways to increase PHP’s memory allocation:
    1. If you can edit or override the system php.ini file, increase the memory limit. For example, memory_limit = 128M

    2. If you cannot edit or override the system php.ini file, add php_value memory_limit 128M to your .htaccess file.

    3. If neither of these work, it’s time to ask your hosting provider to temporarily increase PHP’s memory allocation on your account.

    Thread Starter infonote

    (@infonote)

    Hi

    An update. I spoke to my host, and it resulted it was due to an Ads plugin. I moved to Advanced Ads and it seems to be working now.

    Thanks for assistance.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Very Long Post Results In Page Not Found’ is closed to new replies.