Title: PHP Parse error: syntax error in class-enqueue.php on line 151
Last modified: September 4, 2023

---

# PHP Parse error: syntax error in class-enqueue.php on line 151

 *  [webedgeandyh](https://wordpress.org/support/users/webedgeandyh/)
 * (@webedgeandyh)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-in-class-enqueue-php-on-line-151/)
 * I’m getting the following error repeating in the error log:
 * PHP Parse error: syntax error, unexpected ” (T_ENCAPSED_AND_WHITESPACE), expecting‘-‘
   or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in/
   xx/xx/public_html/wp-content/plugins/flexible-spacer-block/classes/class-enqueue.
   php on line 151
 * Any ideas on what this could relate to. It doesn’t appear to be having any issues
   otherwise and the block appears to be acting normally.
 * Thanks!

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

 *  Plugin Author [Aki Hamano](https://wordpress.org/support/users/wildworks/)
 * (@wildworks)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-in-class-enqueue-php-on-line-151/#post-17039203)
 * Are you using a PHP version lower than 7.2? This plugin requires PHP 7.4 or higher.
 *  Thread Starter [webedgeandyh](https://wordpress.org/support/users/webedgeandyh/)
 * (@webedgeandyh)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-in-class-enqueue-php-on-line-151/#post-17039724)
 * No, using 7.4.
 *  Plugin Author [Aki Hamano](https://wordpress.org/support/users/wildworks/)
 * (@wildworks)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-in-class-enqueue-php-on-line-151/#post-17073959)
 * A parse error is a PHP syntax error, so if that error is indeed occurring, WordPress
   itself should stop working. Is the error still occurring?
 * You may want to try reinstalling the plugin once.

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

The topic ‘PHP Parse error: syntax error in class-enqueue.php on line 151’ is closed
to new replies.

 * ![](https://ps.w.org/flexible-spacer-block/assets/icon-256x256.png?rev=2658109)
 * [Flexible Spacer Block](https://wordpress.org/plugins/flexible-spacer-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flexible-spacer-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flexible-spacer-block/)
 * [Active Topics](https://wordpress.org/support/plugin/flexible-spacer-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flexible-spacer-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flexible-spacer-block/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Aki Hamano](https://wordpress.org/support/users/wildworks/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-in-class-enqueue-php-on-line-151/#post-17073959)
 * Status: not resolved