Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter EvilJeff

    (@eviljeff)

    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

    Plugin Contributor Michael Cannon

    (@comprock)

    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.

    Thread Starter EvilJeff

    (@eviljeff)

    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

    Thread Starter EvilJeff

    (@eviljeff)

    Here is the link to the site

    http://dpr-preview2.clientapproval.co.uk/

    thanks

    Plugin Contributor Michael Cannon

    (@comprock)

    Did you confirm that this isn’t a theme issue per the debug FAQ entry?

    Thread Starter EvilJeff

    (@eviljeff)

    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

    Plugin Contributor Michael Cannon

    (@comprock)

    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.

    Thread Starter EvilJeff

    (@eviljeff)

    I’m using the widget instance, not using a shortcode. I wish I was though!

    Plugin Contributor Michael Cannon

    (@comprock)

    Please see the FAQ for resetting testimonials.

    Thread Starter EvilJeff

    (@eviljeff)

    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

    Plugin Contributor Michael Cannon

    (@comprock)

    Have you performed the common debugging steps per the FAQ? Things like changing theme and disabling other plugins.

    Thread Starter EvilJeff

    (@eviljeff)

    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

    Plugin Contributor Michael Cannon

    (@comprock)

    Understood, sorry for the trouble. Curious to know why the decrement…

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Syntax Error’ is closed to new replies.