• Dear all,

    I got HTTP ERROR 500 when edit or create new post. I’m using Nginx, PHP-FPM, Mysql running with centos 7.

    Please help me to fix it.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey,
    Can you link to the site you need?
    What plugins have recently been activated/installed and when did this problem begin.
    Here you can see a video that hangs up and shows you how to fix the problem. Please give more details about the problem, thanks!
    If you are unable to handle the video please write again with more information.

    Greetings,
    Plamen

    Thread Starter hautph

    (@hautph)

    Hey,

    This is link https://gocit.vn/bai-viet/network-file-system-nfs/ and another link is ok.

    I got this problem when edit or create new post.

    There is some plugin to active: Akismet Anti-Spam, All In One SEO Pack, AMP, ARVE Advanced Responsive Video Embedder, Classic Editor, Cloudflare Flexible SSL, Facebook Comments Plugin, FV Player, Glue for Yoast SEO & AMP, Google Analytics for WordPress by MonsterInsight, Insert Post Ads, Jetpack by WordPress.com, MediaElement.js – HTML5 Audio and Video, Print, PDF & Email by PrintFriendly, Shortcake (Shortcode UI), Simple Tag, Simple Yearly Archive, WordPress HTTPS, WP Super Cache

    Thanks.

    Hello,
    Sorry for the late reply.
    The problem could be related to not enough memory for WordPress for PHP or maximum execution time limit being reached in PHP.
    At first, I would recommend you to temporary enable debugging in WordPress.

    You can do this by setting this options in wp-config.php
    above the line that says:
    /* That’s all, stop editing! Happy blogging. */

    // Turn debugging on
    define('WP_DEBUG', true);
     
    // Tell WordPress to log everything to /wp-content/debug.log
    define('WP_DEBUG_LOG', true);
     
    // Turn off the display of error messages on your site
    define('WP_DEBUG_DISPLAY', false);
     
    // For good measure, you can also add the follow code, which will hide errors from being displayed on-screen
    @ini_set('display_errors', 0);

    Please do note to remove any other instances of this code if you have it in the file:

    define('WP_DEBUG', false);

    php.ini settings:

    max_input_vars = 3000
    max_input_time = 120
    max_execution_time = 120
    memory_limit = 128M

    You can experiment there and set 256M if you wish, but be careful to not specify a value that you cannot provide if you are on a shared hosting or if it is above your server limits.

    In case you do not know what I shared above, I strongly recommend that you contact your hosting provider.

    Debugging in WordPress

    Greetings,
    Plamen

    Thread Starter hautph

    (@hautph)

    Hi Plamen,

    I got this log from debug

    [04-Jan-2020 12:01:37 UTC] PHP Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
    [04-Jan-2020 12:01:44 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; SidebarGenerator has a deprecated constructor in /home/xxxx/wp-content/themes/gocit/framework/class.SidebarGenerator.php on line 21
    [04-Jan-2020 12:01:46 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 213716430 bytes) in /home/xxxx/wp-includes/wp-db.php on line 2129

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Got HTTP ERROR 500 when edit or create new post’ is closed to new replies.