Critical Bug: Missing IMDb data/images causing PHP Fatal Errors and 100% CPU
-
Greetings – I have been chasing down VPS and domain errors with Gemini helping me. The following is from Gemini:
When the plugin attempts to fetch data from IMDb for a post, and that external connection fails, times out, or returns incomplete data (specifically missing a title or featured image), the plugin lacks a fallback mechanism.Instead of failing gracefully, it throws a Fatal TypeError by passing
nullto a strictly typed string parameter. This causes the PHP-FPM workers to hang indefinitely, rapidly consuming 100% of the server’s CPU, and resulting in 504 Gateway Timeouts for the entire site. This happens both when loading the frontend post and when attempting to save/update the post in the WordPress editor.
PHP Fatal error: Uncaught TypeError: Lumiere\Frontend\Link_Maker\Bootstrap_Links::get_picture(): Argument #3 ($movie_title) must be of type string, null given, called in /var/www/vhosts/spookyflix.com/httpdocs/wp-content/plugins/lumiere-movies/class/Frontend/Module/Movie/Movie_Pic.php on line 41 and defined in /var/www/vhosts/spookyflix.com/httpdocs/wp-content/plugins/lumiere-movies/class/Frontend/Link_Maker/Bootstrap_Links.php:101
Suspected Cause:get_picture()strictly expects a string for$movie_title, but receivesnullwhen the IMDb fetch fails to retrieve a title or image. The plugin needs a conditional fallback (e.g.,if ($movie_title === null)) to prevent the fatal crash and handle the missing data gracefully.
PHP Warning: Array to string conversion in /var/www/vhosts/spookyflix.com/httpdocs/wp-content/plugins/lumiere-movies/class/Frontend/Widget/Widget_Frontpage.php on line 233
Suspected Cause: The plugin appears to be grabbing an array of data on the frontpage widget but is attempting to echo or parse it as a standard string on line 233.The IMDB movie listing it was having issues with was:
https://www.imdb.com/title/tt0070869/
Thanks,James
You must be logged in to reply to this topic.