Title: syntax error
Last modified: August 20, 2016

---

# syntax error

 *  Resolved [insidejazz](https://wordpress.org/support/users/insidejazz/)
 * (@insidejazz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/syntax-error-46/)
 *     ```
       SyntaxError: syntax error
       <br />
   
       ReferenceError: jQuery is not defined
       jQuery(function(){ pte.editor(); });
       ```
   
 * i’m getting this errors when open the thumbnail modal. also same when disable
   the thickbox option in settings. i’ve disabled all other extensions nothing changed…
 * in firefox bug debug screen get this ;
 *     ```
       /** SUFFIX: '' **/
       /** PATH: '/vhosts/myhost.com/http/beta//wp-includes/js/jquery/jquery.js' **/
       /** PATH: '/vhosts/myhost.com/http/beta//wp-includes/js/imgareaselect/jquery.imgareaselect.min.js' **/
       /** PATH: '/vhosts/myhost.com/http/beta//wp-content/plugins/post-thumbnail-editor/js/pte.full.js' **/
       /** PATH: '/vhosts/myhost.com/http/beta//wp-content/plugins/post-thumbnail-editor/apps/jquery.json-2.2.min.js' **/
       <br />
       <b>Warning</b>: Cannot modify header information - headers already sent by (output started at /vhosts/myhost.com/http/beta/wp-content/plugins/post-thumbnail-editor/php/load-scripts.php:133) in <b>/vhosts/myhost.com/http/beta/wp-content/plugins/post-thumbnail-editor/php/load-scripts.php</b> on line <b>167</b><br />
       <br />
       <b>Warning</b>: Cannot modify header information - headers already sent by (output started at /vhosts/myhost.com/http/beta/wp-content/plugins/post-thumbnail-editor/php/load-scripts.php:133) in <b>/vhosts/myhost.com/http/beta/wp-content/plugins/post-thumbnail-editor/php/load-scripts.php</b> on line <b>168</b><br />
       <br />
       <b>Warning</b>: Cannot modify header information - headers already sent by (output started at /vhosts/myhost.com/http/beta/wp-content/plugins/post-thumbnail-editor/php/load-scripts.php:133) in <b>/vhosts/myhost.com/http/beta/wp-content/plugins/post-thumbnail-editor/php/load-scripts.php</b> on line <b>169</b><br />
       /*! jQuery v1.8.3 jquery.com | jquery.org/license */
       ```
   
 * thanks…
 * [http://wordpress.org/extend/plugins/post-thumbnail-editor/](http://wordpress.org/extend/plugins/post-thumbnail-editor/)

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

 *  Thread Starter [insidejazz](https://wordpress.org/support/users/insidejazz/)
 * (@insidejazz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/syntax-error-46/#post-3462754)
 * just removed lines 133 and 160 in load-scripts.php. now everything is ok but 
   why ?
 *  Plugin Author [sewpafly](https://wordpress.org/support/users/sewpafly/)
 * (@sewpafly)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/syntax-error-46/#post-3462858)
 * Congrats, you found my bug! 200 points to insidejazz :D. For some reason, my 
   test system doesn’t trigger this error and I didn’t see it until after I had 
   pushed the latest version.
 * The latest version (2.0-alpha) on [github](https://github.com/sewpafly/post-thumbnail-editor/archive/77cf9054a9ce44bf666a46eab8b10c41607ef404.zip)
   has this fix as well as some other ones…
 * Thanks for your feedback!

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

The topic ‘syntax error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/post-thumbnail-editor_afafac.svg)
 * [Post Thumbnail Editor](https://wordpress.org/plugins/post-thumbnail-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-thumbnail-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-thumbnail-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/post-thumbnail-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-thumbnail-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-thumbnail-editor/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 2 replies
 * 2 participants
 * Last reply from: [sewpafly](https://wordpress.org/support/users/sewpafly/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/syntax-error-46/#post-3462858)
 * Status: resolved