Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › segfault and admin-ajax.php
New Landing › How can we help? › Themeforest Theme Support › Dante › segfault and admin-ajax.php
- This topic has 15 replies, 3 voices, and was last updated 9 years by David Martin – Support.
-
Posted in: Dante
-
November 6, 2015 at 7:47 pm #226785
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/November 9, 2015 at 1:11 pm #227018Hi,
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
November 9, 2015 at 1:29 pm #227031Hi,
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
November 9, 2015 at 1:45 pm #227038That 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-errorAlso try to deactivate all plugins to see if it still happens.
-Rui
November 18, 2015 at 4:11 pm #229683Hi,
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
November 23, 2015 at 10:50 am #230543Hi,
I have not come across that before, you could try enabling the WP debug mode open
wp-config.php
and add indefine('WP_DEBUG', true);
.Does this article help? http://billpatrianakos.me/blog/2015/02/09/wordpress-settings-page-segfaults-apache/.
Thanks,
DavidNovember 23, 2015 at 6:11 pm #230723Hi,
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
November 23, 2015 at 6:15 pm #230727I 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 ) );
}
}
}November 23, 2015 at 6:41 pm #230735After 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.
November 23, 2015 at 7:14 pm #230743Can you add us a WP login?
Thanks,
DavidNovember 24, 2015 at 10:00 am #230873This reply has been marked as private.November 24, 2015 at 11:57 am #230911Sure, 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.November 24, 2015 at 12:13 pm #230917This reply has been marked as private.November 25, 2015 at 12:45 pm #231226This reply has been marked as private.November 25, 2015 at 1:08 pm #231237Hi,
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
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.