gatsbyjs / wp-gatsby

WordPress plugin for gatsby-source-wordpress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Critical site error on Kinsta-hosted sites when activated

maguijo opened this issue · comments

Installing WPGatsby on my Kinsta hosted wordpress site causes the site to "experience a critical error." It traces to line 79 of the file /wp-content/plugins/wp-gatsby/vendor/ircmaxell/random-lib/lib/RandomLib/Source/MicroTime.php.

Error message: Uncaught Error: Call to undefined function RandomLib\Source\getmypid() in /wp-content/plugins/wp-gatsby/vendor/ircmaxell/random-lib/lib/RandomLib/Source/MicroTime.php:79

Kinsta tells me that getmypid() is disabled on their servers for security reasons. That's why the function isn't defined.

Any way to remove that requirement from the plugin?

Are you using PHP 8? This plugin hasn't been updated to work with PHP 8 yet. If your hosting provider allows it, try PHP 7.4.