New Landing How can we help? Themeforest Theme Support Dante segfault and admin-ajax.php

Viewing 15 posts - 1 through 15 (of 16 total)
  • Posted in: Dante
  • #226785
    fprati
    Member
    Post count: 13

    Hello,
    I noticed that I get an admin-ajax error in the site log and at the same time a segfault error in the system log, a few times per day. Not sure what causes what, but it happens when browsing happily on the website.

    Here it is:

    System log:
    Nov 6 18:59:50 vps67022 kernel: php-cgi[13641]: segfault at 21 ip 0000000000643077 sp 00007ffec6099490 error 4 in php-cgi[400000
    +3a3000]

    Website Log:
    [Fri Nov 06 18:59:50 2015] [warn] [client 89.157.184.75] (104)Connection reset by peer: mod_fcgid: error reading data from FastCG
    I server, referer: http://www.vinoptimo.com/grands-crus/vendre-son-vin/
    [Fri Nov 06 18:59:50 2015] [error] [client 89.157.184.75] Premature end of script headers: admin-ajax.php, referer: http://www.vi
    noptimo.com/grands-crus/vendre-son-vin/

    #227018
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    This seems to be related with the FastCGI settings on your server.
    Contact your host provider to see what they have to say about it.

    -Rui

    #227031
    fprati
    Member
    Post count: 13

    Hi,

    I manage the VM and have full control of it, including security and tuning. Can you let me know what settings are involved in that, which make admin-ajax behave badly? I run plenty of other WP websites which I monitor and, at the moment, Dante is only the theme that creates such segfaults. Sometimes I get other sources of that, but it usually is a programming issue, not a hosting one. However, I am willing to investigate and review the hosting environment if you give me some indications, please. FYI, that website has been granted plenty of resources, thus further increasing them may not be the smartest option.

    Regards

    #227038
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    That was based in what I found in the internet.

    Check this links

    http://www.liquidweb.com/kb/apache-error-premature-end-of-script-headers/
    http://support.forcg.com/topic/error500-internal-server-error

    Also try to deactivate all plugins to see if it still happens.

    -Rui

    #229683
    fprati
    Member
    Post count: 13

    Hi,
    I have looked at the pages you indicated and investigated some of those recommendations, where possible, but I made no progress.
    However, it seems pretty clear that a segfault is primarily a programming error and not a hosting issue. There should be a way to debug it and obtain more informaiton on where it occurs (the php line). One thing is for sure: it is generated by the admin-ajax.php code. Can we create a version with debug statements to narrow down the context, perhaps?

    -Franco

    #230543
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    I have not come across that before, you could try enabling the WP debug mode open wp-config.php and add in define('WP_DEBUG', true);.

    Does this article help? http://billpatrianakos.me/blog/2015/02/09/wordpress-settings-page-segfaults-apache/.

    Thanks,
    David

    #230723
    fprati
    Member
    Post count: 13

    Hi,

    I will look at the article, thanks. In the meantime switching on debug takes the site down completely with another segfault:
    Nov 23 17:55:34 vps67022 kernel: php-cgi[9831]: segfault at 14 ip 00000000006551e8 sp 00007ffde889ed70 error 4 in php-cgi[400000+3a3000]

    And the error_log lsts a long repetition of the following message:

    mod_fcgid: stderr: PHP Notice: La méthode constructor appelée pour WP_Widget est obsolète depuis la version 4.3.0 ! Veuillez utiliser __construct() à la place. in /var/www/vhosts/vinoptimo.com/httpdocs/wp-includes/functions.php on line 3457

    #230727
    fprati
    Member
    Post count: 13

    I think it fails here, but what’s the cause?

    if ( WP_DEBUG && apply_filters( ‘deprecated_function_trigger_error’, true ) ) {
    if ( function_exists( ‘__’ ) ) {
    if ( ! is_null( $replacement ) )
    trigger_error( sprintf( __(‘%1$s is deprecated since version %2$s! Use %3$s instead.’), $function, $version, $replacement ) );
    else
    trigger_error( sprintf( __(‘%1$s is deprecated since version %2$s with no alternative available.’), $function, $version ) );
    } else {
    if ( ! is_null( $replacement ) )
    trigger_error( sprintf( ‘%1$s is deprecated since version %2$s! Use %3$s instead.’, $function, $version, $replacement ) );
    else
    trigger_error( sprintf( ‘%1$s is deprecated since version %2$s with no alternative available.’, $function, $version ) );
    }
    }
    }

    #230735
    fprati
    Member
    Post count: 13

    After some search I decided to upgrade the included woocommerce plugin and now, when switching debug on, I get the same type of faults, but this one in addition:

    mod_fcgid: stderr: PHP Notice: Undefined index: sidebar_width in /var/www/vhosts/vinoptimo.com/httpdocs/wp-content/themes/dante/page.php on line 11

    which is pretty similar to this http://www.swiftideas.com/forums/topic/notice-on-home-page/, but there’s no solution offered in clear.

    #230743
    David Martin – Support
    Moderator
    Post count: 20834

    Can you add us a WP login?

    Thanks,
    David

    #230873
    fprati
    Member
    Post count: 13
    This reply has been marked as private.
    #230911
    David Martin – Support
    Moderator
    Post count: 20834

    Sure, I do not intend on changing anything. I wanted to take a look at the errors.

    Whilst your there, you should also add your FTP details.

    None of us can replicate this error so it would imply a hosting issue. Please activate and test Twenty15.

    Thanks,
    David.

    #230917
    fprati
    Member
    Post count: 13
    This reply has been marked as private.
    #231226
    David Martin – Support
    Moderator
    Post count: 20834
    This reply has been marked as private.
    #231237
    fprati
    Member
    Post count: 13

    Hi,

    the theme update is just a minor one and, by the look of it, it does not modify core theme files. I can try just ot make sure, though.
    The other update, the WPML plugin 3.3 is a major one and just out. I invite you to read their release notes : it’s a scary one and I’d be very afraid of doing that, it will introduce more issues than it can solve. I won’t do it yet, at least until proven stable on other, simpler sites that I have.

    On the other hand, is it possible to know how the issue mentioned here was resolved, please? http://www.swiftideas.com/forums/topic/notice-on-home-page/

    Regards

Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register