Title: Syntax Error in the plugin
Last modified: June 23, 2022

---

# Syntax Error in the plugin

 *  Resolved [goldgothe](https://wordpress.org/support/users/goldgothe/)
 * (@goldgothe)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-in-the-plugin/)
 * Hello. One of my website was crashed this morning. I saw that during the night,
   an update were made on this plugin to version 4.9.19
    I watched on my error log
   and saw: PHP Parse error: syntax error, unexpected ‘)’ in *******************/
   wordpress/wp-content/plugins/premium-addons-for-elementor/includes/addons-integration.
   php on line 634, referer: **************
 * I checked and on these lines (628 to 634), i had:
 *     ```
       wp_register_script(
       			'pa-headroom',
       			PREMIUM_ADDONS_URL . 'assets/frontend/' . $dir . '/headroom' . $suffix . '.js',
       			array( 'jquery' ),
       			PREMIUM_ADDONS_VERSION,
       			// true
       		);
       ```
   
 * The // true made my website crash. After PREMIUM_ADDONS_VERSION, there is a ‘,’
   so the program is waiting another arg. With ‘// true’, it doesnt get another 
   parameter and crash the website. i removed the ‘//’ and saved, my website was
   functional again.
    Is this problem something that only happened to me ?
 * I deactivated the auto update for this plugin. Can you assure me that this little
   syntax error will not be in the next version of the plugin ?
 * Thank you for your time.

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

 *  Plugin Author [Leap13](https://wordpress.org/support/users/leap13/)
 * (@leap13)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-in-the-plugin/#post-15763614)
 * Hi [@goldgothe](https://wordpress.org/support/users/goldgothe/)
 * We already fixed this in v4.9.20. Please update your version and let me know.
 * Regards
 *  Thread Starter [goldgothe](https://wordpress.org/support/users/goldgothe/)
 * (@goldgothe)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-in-the-plugin/#post-15763635)
 * Hello,
    I made the update of your plugin and the problem is fixed.
 * Thank you for your reactivity.
 *  Plugin Author [Leap13](https://wordpress.org/support/users/leap13/)
 * (@leap13)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-in-the-plugin/#post-15763648)
 * Great, I’m so glad that everything is working just fine with you now.
 * If you have any further questions, please don’t hesitate to feed me back anytime
   
   It would be great if you could please do us a BIG favor by rating Premium Addons
   for Elementor on our WordPress [page](https://wordpress.org/support/plugin/premium-addons-for-elementor/reviews/).
 * Regards

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

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

 * ![](https://ps.w.org/premium-addons-for-elementor/assets/icon-128x128.gif?rev
   =3495451)
 * [Premium Addons for Elementor - Powerful Elementor Templates & Widgets](https://wordpress.org/plugins/premium-addons-for-elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/premium-addons-for-elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/premium-addons-for-elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/premium-addons-for-elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/premium-addons-for-elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/premium-addons-for-elementor/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Leap13](https://wordpress.org/support/users/leap13/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-in-the-plugin/#post-15763648)
 * Status: resolved