voceconnect / multi-post-thumbnails

Adds multiple post thumbnails to a post type. If you've ever wanted more than one Featured Image on a post, this plugin is for you.
143 stars 63 forks source link

multi-post-thumbnails plugin makes WP run very, very slowely #145

Open SG-2012 opened 4 years ago

SG-2012 commented 4 years ago

Hello voceconnect / Chris Scott,

Back in 2013 we used your plugin to successfully power parts of the following live website: https://www.m2recruitment.co.uk/ In the past week, the website has almost ground to a halt and our clients are wanting us to resolve the issue. First step was to ask our host to help; they came back having identified this plugin as causing the issue. On disabling the plugin, the site throws an error, so can't simply be disabled.

Fatal error: Uncaught Error: Class 'MultiPostThumbnails' not found in /home/mtwortr/public_html/wp-content/themes/m2/index.php:28 Stack trace: #0 /home/mtwortr/public_html/wp-includes/template-loader.php(106): include() #1 /home/mtwortr/public_html/wp-blog-header.php(19): require_once('/home/mtwortr/p...') #2 /home/mtwortr/public_html/index.php(17): require('/home/mtwortr/p...') #3 {main} thrown in /home/mtwortr/public_html/wp-content/themes/m2/index.php on line 28

Could you offer a fix, as I'm guessing we're not the first to report issues (probably in connection with latest updates to WP)?

Many thanks in advance, SG.

rickcurran commented 4 years ago

Hi, I'm not the developer but just thought I'd jump in with a wee bit of help. That error you're seeing is because you've disabled the plugin so now where your theme is trying to make use of the additional thumbnails it is causing an error.

You'd need to either re-enable the plugin to get rid of that error or remove the code in your theme that is trying to use the plugin's functionality.

chrisscott commented 4 years ago

@rickcurran is correct. Search your theme files for MultiPostThumbnails to see where it is used. It should have a class_exists() check which seems to be missing. See the docs for details on how it should be coded.

SG-2012 commented 4 years ago

@rickcurran , @chrisscott thank you gents, will digest and revert if we get stuck. Best, SG ;-)