Title: PHP Parse error: syntax error.
Last modified: January 30, 2021

---

# PHP Parse error: syntax error.

 *  Resolved [Malae](https://wordpress.org/support/users/malae/)
 * (@malae)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-7/)
 * Hello Demis,
 * Regarding the error below that I posted 1 month ago and 5 months ago.Is this 
   because the plug-in needs PHP 7.4?
 * `PHP Parse error: syntax error, unexpected 'string' (T_STRING), expecting function(
   T_FUNCTION) or const (T_CONST) in /wp-content/plugins/nicescrollr/includes/class-
   nsr.php on line 68`
    -  This topic was modified 5 years, 3 months ago by [Malae](https://wordpress.org/support/users/malae/).

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

 *  [obewanz](https://wordpress.org/support/users/obewanz/)
 * (@obewanz)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-7/#post-14009142)
 * On line 68 of that class file – try removing the word “string” from the variable
   declaration.
 *  Plugin Author [Demis Patti](https://wordpress.org/support/users/demispatti/)
 * (@demispatti)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-7/#post-14066980)
 * Hi there
 * Thanks for pointing this out. It should be fixed by version 0.82.
 * Regards, Demis

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

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

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

## Tags

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

 * 2 replies
 * 3 participants
 * Last reply from: [Demis Patti](https://wordpress.org/support/users/demispatti/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-7/#post-14066980)
 * Status: resolved