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.
- The topic ‘Syntax Error in the plugin’ is closed to new replies.