I’ll explain further. I have installed the plugin and added several testimonials. When the page loads, one testimonial shows but then I get the Syntax error.
I hope you can help.
Thank you
This is a JavaScript error. First of it’s kind that I’ve heard of.
Please view the debug FAQ entry and report back your results.
Here is what I get
Deprecated: Assigning the return value of new by reference is deprecated in /home/clientap/public_html/dpr-preview2/wp-content/plugins/envato-wordpress-toolkit-master/index.php on line 207
And on the sidebar where the testimonial is I get this
Notice: Undefined variable: echo in /home/clientap/public_html/dpr-preview2/wp-content/plugins/widget-shortcode/init.php on line 75
Thank you
Did you confirm that this isn’t a theme issue per the debug FAQ entry?
How can I confirm that? The syntax error appears at the bottom of the html page inside
<script type="text/javascript">
var tw_-1 = null;
jQuery(document).ready(function() {
tw_-1 = jQuery('.testimonials-widget-testimonials-1').bxSlider({
auto: true,
autoControls: true,
autoHover: true,
controls: false,
mode: 'fade',
pager: false,
pause: 5000,
video: false,
slideMargin: 2
});
});
</script>
on the first line var tw_-1 = null;.
That is the code for the testimonials slider so I guess the error is within the testimonial plugin? Or am I misunderstanding something?
Thanks
Ah, sorry, are you using a shortcode or the widget instance?
The problem is that the -1 is coming through as the widget instance. Considering that in the code, they start at 0 and increment, than decrement, I think there’s something in your implementation that’s mucking things up.
If you’re using a widget_number in your shortcode, please remove it.
I’m using the widget instance, not using a shortcode. I wish I was though!
Please see the FAQ for resetting testimonials.
I did that, no luck. I still get the same error. This is so frustrating. I would consider using a different plugin as your one might go in conflict with the theme but I can’t find any other better than this one. Have you got any other suggestion? Thank you
Have you performed the common debugging steps per the FAQ? Things like changing theme and disabling other plugins.
I have performed the common debugging but still no luck. I have opted for a different plugin and it’s all fine now. Thank you for your support
Understood, sorry for the trouble. Curious to know why the decrement…