[wp-trac] [WordPress Trac] #33261: Random php error

WordPress Trac noreply at wordpress.org
Tue Aug 4 14:54:44 UTC 2015


#33261: Random php error
--------------------------+------------------------------
 Reporter:  OKN           |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Database      |     Version:  4.2.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * milestone:   => Awaiting Review


Old description:

> Hi
>
> We have a random issue (Server Error 500) with wordpress 4.2.3 and 4.2.4.
> We don't know why this error is provocated. We thing that the error is
> related with a wordpress database connection and mysqlnd extension or
> unknown issue.
>
> Please, could you provide us with any solution (configuration or
> patch...)
>
> INFO:
> Ubuntu 14.04.2 LTS Server 64bits
> Apache/2.4.7 (Ubuntu)
> php5-fpm PHP Version => 5.5.9-1ubuntu4.11
> PHP Mod Extension for mysql= mysqlnd 5.0.11 + mysqlnd_ms 1.5.2 (API
> Extensions  mysql,mysqli,pdo_mysql), Opcache (enabled and disabled
> tested)
> mysql  Ver 14.14 Distrib 5.5.44, for debian-linux-gnu (x86_64) using
> readline 6.3
> Wordpress: 4.2.3 and 4.2.4 (md5 sum is ok) Plugins (none) Theme (Default)
>

> apache error.log
>

> [Tue Aug 04 12:40:29.658117 2015] [fastcgi:error] [pid 16895:tid
> 140665899882240] (104)Connection reset by peer: [client MYCLIENTIP:35852]
> FastCGI: comm with server "/usr/local/fastcgi/php5.fastcgi" aborted: read
> failed, referer: http://MYDOMAINNAME/wp-admin/
> [Tue Aug 04 12:40:29.658179 2015] [core:error] [pid 16895:tid
> 140665899882240] [client MYCLIENTIP:35852] AH00524: Handler for fastcgi-
> script returned invalid result code 1, referer: http://MYDOMAINNAME/wp-
> admin/
> [Tue Aug 04 12:40:29.905614 2015] [fastcgi:error] [pid 16880:tid
> 140665925060352] (104)Connection reset by peer: [client MYCLIENTIP:35854]
> FastCGI: comm with server "/usr/local/fastcgi/php5.fastcgi" aborted: read
> failed, referer: http://MYDOMAINNAME/wp-admin/plugins.php
> [Tue Aug 04 12:40:29.905674 2015] [core:error] [pid 16880:tid
> 140665925060352] [client MYCLIENTIP:35854] AH00524: Handler for fastcgi-
> script returned invalid result code 1, referer: http://MYDOMAINNAME/wp-
> admin/plugins.php
> [Tue Aug 04 12:40:31.863521 2015] [fastcgi:error] [pid 16883:tid
> 140665773991680] (104)Connection reset by peer: [client MYCLIENTIP:35853]
> FastCGI: comm with server "/usr/local/fastcgi/php5.fastcgi" aborted: read
> failed, referer: http://MYDOMAINNAME/wp-admin/
> [Tue Aug 04 12:40:31.863569 2015] [core:error] [pid 16883:tid
> 140665773991680] [client MYCLIENTIP:35853] AH00524: Handler for fastcgi-
> script returned invalid result code 1, referer: http://MYDOMAINNAME/wp-
> admin/
>

> /wp-content/debug.log
>
> PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and
> will be removed in the future: use mysqli or PDO instead in
> /www/wordpress-4.2.3/wp-includes/wp-db.php on line 1473
>
> [04-Aug-2015 12:30:16 UTC] PHP Stack trace:
> [04-Aug-2015 12:30:16 UTC] PHP   1. {main}()
> /www/wordpress-4.2.3/index.php:0
> [04-Aug-2015 12:30:16 UTC] PHP   2. require()
> /www/wordpress-4.2.3/index.php:17
> [04-Aug-2015 12:30:16 UTC] PHP   3. require_once() /www/wordpress-4.2.3
> /wp-blog-header.php:12
> [04-Aug-2015 12:30:16 UTC] PHP   4. require_once() /www/wordpress-4.2.3
> /wp-load.php:37
> [04-Aug-2015 12:30:16 UTC] PHP   5. require_once() /www/wordpress-4.2.3
> /wp-config.php:84
> [04-Aug-2015 12:30:16 UTC] PHP   6. require_wp_db() /www/wordpress-4.2.3
> /wp-settings.php:79
> [04-Aug-2015 12:30:16 UTC] PHP   7. wpdb->__construct()
> /www/wordpress-4.2.3/wp-includes/load.php:352
> [04-Aug-2015 12:30:16 UTC] PHP   8. wpdb->db_connect()
> /www/wordpress-4.2.3/wp-includes/wp-db.php:647
> [04-Aug-2015 12:30:16 UTC] PHP   9. mysqli_real_connect()
> /www/wordpress-4.2.3/wp-includes/wp-db.php:1443
> [04-Aug-2015 12:30:50 UTC] PHP Warning:  mysqli_real_connect():
> (mysqlnd_ms) (mysqlnd_ms) Failed to parse config file
> [/etc/php5/PHPMYSQLBALANCER.ini]. Please, verify the JSON in
> /www/wordpress-4.2.3/wp-includes/wp-db.php on line 1443
>
> [04-Aug-2015 12:30:50 UTC] PHP Stack trace:
> [04-Aug-2015 12:30:50 UTC] PHP   1. {main}()
> /www/wordpress-4.2.3/index.php:0
> [04-Aug-2015 12:30:50 UTC] PHP   2. require()
> /www/wordpress-4.2.3/index.php:17
> [04-Aug-2015 12:30:50 UTC] PHP   3. require_once() /www/wordpress-4.2.3
> /wp-blog-header.php:12
> [04-Aug-2015 12:30:50 UTC] PHP   4. require_once() /www/wordpress-4.2.3
> /wp-load.php:37
> [04-Aug-2015 12:30:50 UTC] PHP   5. require_once() /www/wordpress-4.2.3
> /wp-config.php:84
> [04-Aug-2015 12:30:50 UTC] PHP   6. require_wp_db() /www/wordpress-4.2.3
> /wp-settings.php:79
> [04-Aug-2015 12:30:50 UTC] PHP   7. wpdb->__construct()
> /www/wordpress-4.2.3/wp-includes/load.php:352
> [04-Aug-2015 12:30:50 UTC] PHP   8. wpdb->db_connect()
> /www/wordpress-4.2.3/wp-includes/wp-db.php:647
> [04-Aug-2015 12:30:50 UTC] PHP   9. mysqli_real_connect()
> /www/wordpress-4.2.3/wp-includes/wp-db.php:1443

New description:

 Hi

 We have a random issue (Server Error 500) with wordpress 4.2.3 and 4.2.4.
 We don't know why this error is provocated. We thing that the error is
 related with a wordpress database connection and mysqlnd extension or
 unknown issue.

 Please, could you provide us with any solution (configuration or patch...)

 INFO:
 Ubuntu 14.04.2 LTS Server 64bits
 Apache/2.4.7 (Ubuntu)
 php5-fpm PHP Version => 5.5.9-1ubuntu4.11
 PHP Mod Extension for mysql= mysqlnd 5.0.11 + mysqlnd_ms 1.5.2 (API
 Extensions  mysql,mysqli,pdo_mysql), Opcache (enabled and disabled tested)
 mysql  Ver 14.14 Distrib 5.5.44, for debian-linux-gnu (x86_64) using
 readline 6.3
 Wordpress: 4.2.3 and 4.2.4 (md5 sum is ok) Plugins (none) Theme (Default)


 apache error.log

 {{{
 [Tue Aug 04 12:40:29.658117 2015] [fastcgi:error] [pid 16895:tid
 140665899882240] (104)Connection reset by peer: [client MYCLIENTIP:35852]
 FastCGI: comm with server "/usr/local/fastcgi/php5.fastcgi" aborted: read
 failed, referer: http://MYDOMAINNAME/wp-admin/
 [Tue Aug 04 12:40:29.658179 2015] [core:error] [pid 16895:tid
 140665899882240] [client MYCLIENTIP:35852] AH00524: Handler for fastcgi-
 script returned invalid result code 1, referer: http://MYDOMAINNAME/wp-
 admin/
 [Tue Aug 04 12:40:29.905614 2015] [fastcgi:error] [pid 16880:tid
 140665925060352] (104)Connection reset by peer: [client MYCLIENTIP:35854]
 FastCGI: comm with server "/usr/local/fastcgi/php5.fastcgi" aborted: read
 failed, referer: http://MYDOMAINNAME/wp-admin/plugins.php
 [Tue Aug 04 12:40:29.905674 2015] [core:error] [pid 16880:tid
 140665925060352] [client MYCLIENTIP:35854] AH00524: Handler for fastcgi-
 script returned invalid result code 1, referer: http://MYDOMAINNAME/wp-
 admin/plugins.php
 [Tue Aug 04 12:40:31.863521 2015] [fastcgi:error] [pid 16883:tid
 140665773991680] (104)Connection reset by peer: [client MYCLIENTIP:35853]
 FastCGI: comm with server "/usr/local/fastcgi/php5.fastcgi" aborted: read
 failed, referer: http://MYDOMAINNAME/wp-admin/
 [Tue Aug 04 12:40:31.863569 2015] [core:error] [pid 16883:tid
 140665773991680] [client MYCLIENTIP:35853] AH00524: Handler for fastcgi-
 script returned invalid result code 1, referer: http://MYDOMAINNAME/wp-
 admin/
 }}}

 /wp-content/debug.log
 {{{
 PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and
 will be removed in the future: use mysqli or PDO instead in
 /www/wordpress-4.2.3/wp-includes/wp-db.php on line 1473

 [04-Aug-2015 12:30:16 UTC] PHP Stack trace:
 [04-Aug-2015 12:30:16 UTC] PHP   1. {main}()
 /www/wordpress-4.2.3/index.php:0
 [04-Aug-2015 12:30:16 UTC] PHP   2. require()
 /www/wordpress-4.2.3/index.php:17
 [04-Aug-2015 12:30:16 UTC] PHP   3. require_once() /www/wordpress-4.2.3
 /wp-blog-header.php:12
 [04-Aug-2015 12:30:16 UTC] PHP   4. require_once() /www/wordpress-4.2.3
 /wp-load.php:37
 [04-Aug-2015 12:30:16 UTC] PHP   5. require_once() /www/wordpress-4.2.3
 /wp-config.php:84
 [04-Aug-2015 12:30:16 UTC] PHP   6. require_wp_db() /www/wordpress-4.2.3
 /wp-settings.php:79
 [04-Aug-2015 12:30:16 UTC] PHP   7. wpdb->__construct()
 /www/wordpress-4.2.3/wp-includes/load.php:352
 [04-Aug-2015 12:30:16 UTC] PHP   8. wpdb->db_connect()
 /www/wordpress-4.2.3/wp-includes/wp-db.php:647
 [04-Aug-2015 12:30:16 UTC] PHP   9. mysqli_real_connect()
 /www/wordpress-4.2.3/wp-includes/wp-db.php:1443
 [04-Aug-2015 12:30:50 UTC] PHP Warning:  mysqli_real_connect():
 (mysqlnd_ms) (mysqlnd_ms) Failed to parse config file
 [/etc/php5/PHPMYSQLBALANCER.ini]. Please, verify the JSON in
 /www/wordpress-4.2.3/wp-includes/wp-db.php on line 1443

 [04-Aug-2015 12:30:50 UTC] PHP Stack trace:
 [04-Aug-2015 12:30:50 UTC] PHP   1. {main}()
 /www/wordpress-4.2.3/index.php:0
 [04-Aug-2015 12:30:50 UTC] PHP   2. require()
 /www/wordpress-4.2.3/index.php:17
 [04-Aug-2015 12:30:50 UTC] PHP   3. require_once() /www/wordpress-4.2.3
 /wp-blog-header.php:12
 [04-Aug-2015 12:30:50 UTC] PHP   4. require_once() /www/wordpress-4.2.3
 /wp-load.php:37
 [04-Aug-2015 12:30:50 UTC] PHP   5. require_once() /www/wordpress-4.2.3
 /wp-config.php:84
 [04-Aug-2015 12:30:50 UTC] PHP   6. require_wp_db() /www/wordpress-4.2.3
 /wp-settings.php:79
 [04-Aug-2015 12:30:50 UTC] PHP   7. wpdb->__construct()
 /www/wordpress-4.2.3/wp-includes/load.php:352
 [04-Aug-2015 12:30:50 UTC] PHP   8. wpdb->db_connect()
 /www/wordpress-4.2.3/wp-includes/wp-db.php:647
 [04-Aug-2015 12:30:50 UTC] PHP   9. mysqli_real_connect()
 /www/wordpress-4.2.3/wp-includes/wp-db.php:1443
 }}}

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33261#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list