Closed thartman94 closed 2 years ago
We use kinsta to host and generate new sites. Lately, any new sites we've made have been crashing when we activate the WP Gatsby plugin.
PHP Version: 8.0.22 WP Version: 6.0.2 WP Gatsby Version: 2.3.3
The last website we could get running is on PHP version 7.4.30 which is the only difference I've found so far.
Error Log:
2022/09/27 15:33:50 [error] 4557#4557: *301 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function RandomLib\Source\getmypid() in /www/bernstein2022_682/public/wp-content/plugins/wp-gatsby/vendor/ircmaxell/random-lib/lib/RandomLib/Source/MicroTime.php:79 Stack trace: #0 /www/bernstein2022_682/public/wp-content/plugins/wp-gatsby/vendor/ircmaxell/random-lib/lib/RandomLib/Factory.php(201): RandomLib\Source\MicroTime->__construct() #1 /www/bernstein2022_682/public/wp-content/plugins/wp-gatsby/vendor/ircmaxell/random-lib/lib/RandomLib/Factory.php(77): RandomLib\Factory->findSources(Object(SecurityLib\Strength)) #2 /www/bernstein2022_682/public/wp-content/plugins/wp-gatsby/vendor/ircmaxell/random-lib/lib/RandomLib/Factory.php(122): RandomLib\Factory->getGenerator(Object(SecurityLib\Strength)) #3 /www/bernstein2022_682/public/wp-content/plugins/wp-gatsby/src/Admin/Settings.php(163): RandomLib\Factory->getMediumStrengthGenerator() #4 /www/bernstein2022_682/public/wp-content/plugins/wp-gatsby/src/Admin/Settings.php(40): WPGatsby\A" while reading response header from upstream, client: 73.150.58.251, server: bernstein2022.kinsta.cloud, request: "GET /wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s= HTTP/1.1", upstream: "fastcgi://unix:/var/run/php8.0-fpm-bernstein2022.sock:", host: "bernstein2022.kinsta.cloud:13085", referrer: "http://bernstein2022.kinsta.cloud/wp-admin/plugins.php" 2022/09/27 15:33:53 [error] 4557#4557: *304 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function RandomLib\Source\getmypid() in /www/bernstein2022_682/public/wp-content/plugins/wp-gatsby/vendor/ircmaxell/random-lib/lib/RandomLib/Source/MicroTime.php:79 Stack trace: #0 /www/bernstein2022_682/public/wp-content/plugins/wp-gatsby/vendor/ircmaxell/random-lib/lib/RandomLib/Factory.php(201): RandomLib\Source\MicroTime->__construct() #1 /www/bernstein2022_682/public/wp-content/plugins/wp-gatsby/vendor/ircmaxell/random-lib/lib/RandomLib/Factory.php(77): RandomLib\Factory->findSources(Object(SecurityLib\Strength)) #2 /www/bernstein2022_682/public/wp-content/plugins/wp-gatsby/vendor/ircmaxell/random-lib/lib/RandomLib/Factory.php(122): RandomLib\Factory->getGenerator(Object(SecurityLib\Strength)) #3 /www/bernstein2022_682/public/wp-content/plugins/wp-gatsby/src/Admin/Settings.php(163): RandomLib\Factory->getMediumStrengthGenerator() #4 /www/bernstein2022_682/public/wp-content/plugins/wp-gatsby/src/Admin/Settings.php(40): WPGatsby\A" while reading response header from upstream, client: 73.150.58.251, server: bernstein2022.kinsta.cloud, request: "GET /wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s= HTTP/1.1", upstream: "fastcgi://unix:/var/run/php8.0-fpm-bernstein2022.sock:", host: "bernstein2022.kinsta.cloud:13085", referrer: "http://bernstein2022.kinsta.cloud/wp-admin/plugins.php" 2022/09/27 15:34:41 [error] 4557#4557: *307 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function RandomLib\Source\getmypid() in /www/bernstein2022_682/public/wp-content/plugins/wp-gatsby/vendor/ircmaxell/random-lib/lib/RandomLib/Source/MicroTime.php:79 Stack trace: #0 /www/bernstein2022_682/public/wp-content/plugins/wp-gatsby/vendor/ircmaxell/random-lib/lib/RandomLib/Factory.php(201): RandomLib\Source\MicroTime->__construct() #1 /www/bernstein2022_682/public/wp-content/plugins/wp-gatsby/vendor/ircmaxell/random-lib/lib/RandomLib/Factory.php(77): RandomLib\Factory->findSources(Object(SecurityLib\Strength)) #2 /www/bernstein2022_682/public/wp-content/plugins/wp-gatsby/vendor/ircmaxell/random-lib/lib/RandomLib/Factory.php(122): RandomLib\Factory->getGenerator(Object(SecurityLib\Strength)) #3 /www/bernstein2022_682/public/wp-content/plugins/wp-gatsby/src/Admin/Settings.php(163): RandomLib\Factory->getMediumStrengthGenerator() #4 /www/bernstein2022_682/public/wp-content/plugins/wp-gatsby/src/Admin/Settings.php(40): WPGatsby\A" while reading response header from upstream, client: 73.150.58.251, server: bernstein2022.kinsta.cloud, request: "GET /wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s= HTTP/1.1", upstream: "fastcgi://unix:/var/run/php8.0-fpm-bernstein2022.sock:", host: "bernstein2022.kinsta.cloud:13085", referrer: "http://bernstein2022.kinsta.cloud/wp-admin/plugins.php"
We use kinsta to host and generate new sites. Lately, any new sites we've made have been crashing when we activate the WP Gatsby plugin.
PHP Version: 8.0.22 WP Version: 6.0.2 WP Gatsby Version: 2.3.3
The last website we could get running is on PHP version 7.4.30 which is the only difference I've found so far.
Error Log: