randomTestimonialWidget error
-
I installed the free version of EasyTestimonials on a site I manage, and when I activated it immediately got the error:
`Fatal error: Cannot redeclare class randomTestimonialWidget in /home/workfu01/public_html/wp-content/plugins/easy-testimonials/include/widgets/random_testimonial_widget.php on line 290
This appeared on all site pages making the site unusable, so I hastily deleted the plugin files manually and the site returned to normal. As a PHP developer I know in general what causes this error, but I can’t see what on this site is causing it. I’ve looked at the offending file cited above, and line 290 is the very end of the script! The class randomTestimonialWidget only appears once, as it should do. The site uses the Increase theme by ThemeForest, which has a testimonials feature built in, so I thought that perhaps there’s a class name clash with that, so I grepped the theme files for ‘randomTestimonialWidget‘ without result. I even grepped the whole site but the string didn’t appear in any files.
I know that the plugin works as I’d tested it on my personal site beforehand, and of course there are 00s of 000s of plugin users. I googled the error and only got one hit, a forum post which was unanswered.
Can anyone suggest what might be causing this name clash? I feel instinctively that it’s a clash with the theme but as ‘randomTestimonialWidget’ does not appear in any of the scripts I can’t see why.
I know that I could disable plugins one by one, and switch themes, to try to diagnose the problem, but a) Workfuture is a live site which I can’t fiddle about with, and b) we’re purely evaluating EasyTestimonials and I’m not going to spend hours trying to fix a test installation. Normally, with a plugin that doesn’t work for me, I’d move on and try to find another plugin with similar functionality. However, I and my client rather like EasyTestimonials, and the error is technically bugging me as it’s not one that I’ve ever come across with WordPress, which I’ve been using for many years.
- The topic ‘randomTestimonialWidget error’ is closed to new replies.