X to Pro conversion is knocking my server down

Hello there.
Recently I updated my X theme to Pro Theme and used this moment to update my whole website.

The update went well but, during every night/morning my server is going down. I found the logs but cant quite understand the real reason. Here goes the log:

[24-Sep-2019 11:07:36] WARNING: [pool www] child 2610 said into stderr: “NOTICE: PHP message: PHP Fatal error: Uncaught Error: Class ‘Cornerstone_Control_Undefined’ not found in /app/wp-content/themes/pro/cornerstone/includes/classes/classic/controls/class-control.php:42”
[24-Sep-2019 11:07:36] WARNING: [pool www] child 2610 said into stderr: “Stack trace:”
[24-Sep-2019 11:07:36] WARNING: [pool www] child 2610 said into stderr: “#0 /app/wp-content/themes/pro/cornerstone/includes/classes/classic/controls/class-control-group.php(26): Cornerstone_Control::factory(‘content’, Array)”
[24-Sep-2019 11:07:36] WARNING: [pool www] child 2610 said into stderr: “#1 /app/wp-content/themes/pro/cornerstone/includes/classes/classic/elements/class-element-wrapper.php(213): Cornerstone_Control_Group::factory(Array, Array, Array)”
[24-Sep-2019 11:07:36] WARNING: [pool www] child 2610 said into stderr: “#2 /app/wp-content/themes/pro/cornerstone/includes/classes/classic/elements/class-element-wrapper.php(267): Cornerstone_Element_Wrapper->controls()”
[24-Sep-2019 11:07:36] WARNING: [pool www] child 2610 said into stderr: “#3 /app/wp-content/themes/pro/cornerstone/includes/classes/classic/elements/class-element-wrapper.php(249): Cornerstone_Element_Wrapper->get_applied_defaults()”
[24-Sep-2019 11:07:36] WARNING: [pool www] child 2610 said into stderr: “#4 /app/wp-content/themes/pro/cornerstone/includes/classes/classic/elements/class-element-orchestrator.php(284): Cornerstone_Element_Wrapper->model_data()”
[24-Sep-2019 11:07:36] WARNING: [pool www] child 2610 said into stderr: “#5 /app/wp-content/themes/pr…”
[24-Sep-2019 11:07:56] WARNING: [pool www] child 2534 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): MySQL server has gone away in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 11:07:56] WARNING: [pool www] child 2534 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): Error reading result set’s header in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:19:22] WARNING: [pool www] child 801 said into stderr: “NOTICE: PHP message: PHP Warning: Empty row packet body in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:19:22] WARNING: [pool www] child 801 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): (00000/0): in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:19:22] WARNING: [pool www] child 801 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): MySQL server has gone away in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:19:22] WARNING: [pool www] child 801 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): Error reading result set’s header in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:19:22] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 0 idle, and 29 total children
[24-Sep-2019 04:21:56] WARNING: [pool www] child 798 said into stderr: “”
[24-Sep-2019 04:21:56] WARNING: [pool www] child 796 said into stderr: “NOTICE: PHP message: PHP Warning: Empty row packet body in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:21:56] WARNING: [pool www] child 796 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): (00000/0): in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:21:56] WARNING: [pool www] child 796 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): MySQL server has gone away in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:21:56] WARNING: [pool www] child 796 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): Error reading result set’s header in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:21:56] WARNING: [pool www] child 805 said into stderr: “NOTICE: PHP message: PHP Warning: Empty row packet body in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:21:56] WARNING: [pool www] child 805 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): (00000/0): in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:21:56] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 16 children, there are 0 idle, and 34 total children
[24-Sep-2019 04:22:56] WARNING: [pool www] child 798 said into stderr: “”
[24-Sep-2019 04:22:56] WARNING: [pool www] child 805 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): MySQL server has gone away in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:22:56] WARNING: [pool www] child 805 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): Error reading result set’s header in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:22:56] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 3 idle, and 39 total children
[24-Sep-2019 04:27:08] WARNING: [pool www] child 798 said into stderr: “”
[24-Sep-2019 04:27:08] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 0 idle, and 48 total children
[24-Sep-2019 04:30:03] WARNING: [pool www] child 798 said into stderr: “”
[24-Sep-2019 04:30:03] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 16 children, there are 0 idle, and 53 total children
[24-Sep-2019 04:32:57] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 58 total children
[24-Sep-2019 04:36:28] WARNING: [pool www] child 799 said into stderr: “NOTICE: PHP message: PHP Warning: Empty row packet body in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:36:28] WARNING: [pool www] child 799 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): (00000/0): in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:36:28] WARNING: [pool www] child 799 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): MySQL server has gone away in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:36:28] WARNING: [pool www] child 799 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): Error reading result set’s header in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:36:28] NOTICE: [pool www] child 798 exited with code 0 after 49312.700176 seconds from start
[24-Sep-2019 04:37:04] NOTICE: [pool www] child 893 started
[24-Sep-2019 04:37:04] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 63 total children
[24-Sep-2019 04:37:04] WARNING: [pool www] child 812 said into stderr: “NOTICE: PHP message: PHP Warning: Empty row packet body in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:37:04] WARNING: [pool www] child 812 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): (00000/0): in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:37:05] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 68 total children
[24-Sep-2019 04:37:29] WARNING: [pool www] child 797 exited on signal 9 (SIGKILL) after 49389.886591 seconds from start
[24-Sep-2019 04:37:29] NOTICE: [pool www] child 904 started
[24-Sep-2019 04:37:29] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 73 total children
[24-Sep-2019 04:37:30] WARNING: [pool www] server reached pm.max_children setting (75), consider raising it
[24-Sep-2019 04:37:34] WARNING: [pool www] child 811 exited on signal 9 (SIGKILL) after 44218.487600 seconds from start
[24-Sep-2019 04:38:06] NOTICE: [pool www] child 907 started
[24-Sep-2019 04:38:06] WARNING: [pool www] child 794 exited on signal 9 (SIGKILL) after 49591.723816 seconds from start
[24-Sep-2019 04:38:15] NOTICE: [pool www] child 908 started
[24-Sep-2019 04:38:35] WARNING: [pool www] child 800 exited on signal 9 (SIGKILL) after 49146.567162 seconds from start
[24-Sep-2019 04:39:25] NOTICE: [pool www] child 909 started
[24-Sep-2019 04:39:25] WARNING: [pool www] child 807 exited on signal 9 (SIGKILL) after 44922.269518 seconds from start
[24-Sep-2019 04:39:33] NOTICE: [pool www] child 910 started
[24-Sep-2019 04:40:02] WARNING: [pool www] child 812 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): MySQL server has gone away in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:40:02] WARNING: [pool www] child 812 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): Error reading result set’s header in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:40:08] WARNING: [pool www] child 795 exited on signal 9 (SIGKILL) after 49675.007487 seconds from start
[24-Sep-2019 04:40:08] NOTICE: [pool www] child 911 started
[24-Sep-2019 04:40:32] WARNING: [pool www] child 804 said into stderr: “NOTICE: PHP message: PHP Warning: Empty row packet body in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:40:34] WARNING: [pool www] child 793 said into stderr: “NOTICE: PHP message: PHP Warning: Empty row packet body in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:40:37] WARNING: [pool www] child 808 exited on signal 9 (SIGKILL) after 44682.901362 seconds from start
[24-Sep-2019 04:40:37] NOTICE: [pool www] child 912 started
[24-Sep-2019 04:40:46] WARNING: [pool www] child 804 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): (00000/0): in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:40:46] WARNING: [pool www] child 793 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): (00000/0): in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:41:11] WARNING: [pool www] child 796 exited on signal 9 (SIGKILL) after 49725.268883 seconds from start
[24-Sep-2019 04:41:11] NOTICE: [pool www] child 913 started
[24-Sep-2019 04:42:10] WARNING: [pool www] child 827 exited on signal 9 (SIGKILL) after 28134.977482 seconds from start
[24-Sep-2019 04:42:10] NOTICE: [pool www] child 914 started
[24-Sep-2019 04:42:14] WARNING: [pool www] child 801 exited on signal 9 (SIGKILL) after 49326.439988 seconds from start
[24-Sep-2019 04:42:14] NOTICE: [pool www] child 915 started
[24-Sep-2019 04:43:58] WARNING: [pool www] child 841 said into stderr: “NOTICE: PHP message: PHP Warning: Empty row packet body in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:43:59] WARNING: [pool www] child 841 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): (00000/0): in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:44:07] WARNING: [pool www] child 799 exited on signal 9 (SIGKILL) after 49656.232651 seconds from start
[24-Sep-2019 04:44:08] NOTICE: [pool www] child 916 started
[24-Sep-2019 04:44:11] WARNING: [pool www] child 854 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): MySQL server has gone away in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:44:11] WARNING: [pool www] child 854 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): Error reading result set’s header in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:44:27] WARNING: [pool www] child 804 exited on signal 9 (SIGKILL) after 45265.225203 seconds from start
[24-Sep-2019 04:44:27] NOTICE: [pool www] child 917 started
[24-Sep-2019 04:46:09] WARNING: [pool www] child 858 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): MySQL server has gone away in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:46:09] WARNING: [pool www] child 858 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): Error reading result set’s header in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:46:37] WARNING: [pool www] child 839 exited on signal 9 (SIGKILL) after 2055.851054 seconds from start
[24-Sep-2019 04:46:56] NOTICE: [pool www] child 918 started
[24-Sep-2019 04:47:23] WARNING: [pool www] child 793 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): MySQL server has gone away in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:47:23] WARNING: [pool www] child 793 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): Error reading result set’s header in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:48:07] WARNING: [pool www] child 841 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): MySQL server has gone away in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:48:07] WARNING: [pool www] child 841 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): Error reading result set’s header in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:48:56] WARNING: [pool www] child 842 exited on signal 9 (SIGKILL) after 2189.966461 seconds from start
[24-Sep-2019 04:49:48] NOTICE: [pool www] child 919 started
[24-Sep-2019 04:50:49] WARNING: [pool www] child 793 exited on signal 9 (SIGKILL) after 50505.118008 seconds from start
[24-Sep-2019 04:50:49] NOTICE: [pool www] child 920 started
[24-Sep-2019 04:52:38] WARNING: [pool www] child 809 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): MySQL server has gone away in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:52:38] WARNING: [pool www] child 809 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): Error reading result set’s header in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:52:48] WARNING: [pool www] child 871 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): MySQL server has gone away in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:52:48] WARNING: [pool www] child 871 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): Error reading result set’s header in /app/wp-includes/wp-db.php on line 2007”
[24-Sep-2019 04:53:19] WARNING: [pool www] child 862 said into stderr: “NOTICE: PHP message: PHP Warning: mysqli_query(): MySQL server has gone away in /app/wp-includes/wp-db.php on line 2007”

I reset the DB and everything is back to normal, but for 4 nights the same problem occurred.
Can someone give me any idea?

My website is https://www.projuris.com.br
Warm regards

Hi @projuris ,

Did you happen to update by replacing the folder using FTP? If you did “replace files” it might try to keep some files that should actually be deleted or moved. Could you try fully deleting cornerstone and reinstalling it? Thanks!

Actually I haven`t installed cornerstone.
I uploaded the Pro theme and then excluded X theme and Cornerstone plugin. Should I do something different?

I think what may have happened is that the upload did not complete. I looks like you’re missing some files that are part of the theme. Could you try reinstalling Pro?

I have now manually updated all files inside the pro folder. Anything else I should do?

Are you still seeing the error message? The errors above were regarding missing files, so if you uploaded a fresh copy of Pro I would expect that to be resolved. The best way would be deleting Pro, then installing the pro.zip file from the WordPress admin area.

I am not seeing any error. The error starts to happen every night since I updated the theme, but not after reboting the server. At this moment everything is ok. I will reach out if anything happens.
Thanks a lot

Ok then I think it’s resolved! Sounds good, just let us know if you need anything else.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.