Title: SyntaxError: expected expression, got &#039;
Last modified: August 31, 2016

---

# SyntaxError: expected expression, got '

 *  [cq](https://wordpress.org/support/users/cq/)
 * (@cq)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/syntaxerror-expected-expression-got-3/)
 * My accordions no longer collapse.
 * The error regards this section of the js code, esp the </p><p> area (line175):
   
   class=”post-entry”><p><script>/*<![CDATA[*/jQuery(document).ready(function($){
   </p><p>$(“#accordions-1710.accordions”).accordion({collapsible:true,heightStyle:”
   content”,animated:
 * Running WP version 4.2.2 and Accordions version 2.0.3
 * I should add that I had to use php within a page b/se the shortcode would not
   work – it used to work, but won’t now (i deactivated all plugins to test and 
   it persisted). I am using insert php plugin to accomplish this. The code is formatted
   this way:
 * [insert_php]
    echo do_shortcode(“[accordions id=’1710′]”); [/insert_php]
 * [https://wordpress.org/plugins/accordions/](https://wordpress.org/plugins/accordions/)

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

 *  Thread Starter [cq](https://wordpress.org/support/users/cq/)
 * (@cq)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/syntaxerror-expected-expression-got-3/#post-7050659)
 * ooops, I meant WP version 4.4.2
 *  [paratheme](https://wordpress.org/support/users/paratheme/)
 * (@paratheme)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/syntaxerror-expected-expression-got-3/#post-7050878)
 * This might be wpautop(); issue
    I can see `<p>` inside scripts tags.
 * Can you please make demo page and paste the shortcode only inside content `[accordions
   id='1710']` and see the result.
 * Best Regards

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

The topic ‘SyntaxError: expected expression, got '’ is closed to new replies.

 * ![](https://ps.w.org/accordions/assets/icon-256x256.png?rev=2959657)
 * [Accordions](https://wordpress.org/plugins/accordions/)
 * [Support Threads](https://wordpress.org/support/plugin/accordions/)
 * [Active Topics](https://wordpress.org/support/plugin/accordions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accordions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accordions/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [paratheme](https://wordpress.org/support/users/paratheme/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/syntaxerror-expected-expression-got-3/#post-7050878)
 * Status: not resolved