There are 2 messages in the error log that might help illustrate…
PHP Warning: Invalid argument supplied for foreach() in /home/moodiest/public_html/wp-content/plugins/sunshine-photo-cart/classes/countries.class.php on line 421
PHP Fatal error: Cannot redeclare tgmpa() (previously declared in /home/moodiest/public_html/wp-content/plugins/sunshine-photo-cart/addons/addon-manager/class-tgm-plugin-activation.php:2126) in /home/moodiest/public_html/wp-content/themes/kubb/admin/class-tgm-plugin-activation.php on line 1041
Hi twodozen,
The Kubb theme is using an out-of-date version of an external library (TGMPA) and they really should upgrade to the latest version.
In the mean time, you can fix this yourself by applying the upgrade to your installation.
- Download the current version of the library from http://tgmpluginactivation.com/download/ (for your purposes, just click on the “Zipball” link below the form)
- Unzip the file and
- Copy/upload (via FTP) just the
class-tgm-plugin-activation.php file to the /home/moodiest/public_html/wp-content/themes/kubb/admin/ directory of your website, replacing the existing class-tgm-plugin-activation.php file.
Once you’ve done that, all should be fine again.
All the same, I’d highly recommend that you ask the theme author to release a new version of the theme which includes this upgrade.
Hope this helps.
Smile,
Juliette
Thanks Juliette. Such a helpful answer! I was thinking that might be the issue, comparing the 2 code segments.
Maybe I should add this to a child theme initially, just in case the author overwrites with an old version again in an update?
In case anyone else is having this issue – the child theme solution didn’t fix it so I had to overwrite the original. That did the trick.
Thanks @jrf, perfect answer!