Title: PHP 8.0 Parse error
Last modified: January 31, 2021

---

# PHP 8.0 Parse error

 *  Resolved [Malae](https://wordpress.org/support/users/malae/)
 * (@malae)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php-8-0-parse-error/)
 * Hello John,
 * The plugin is throwing a deprecated code error in PHP 8.0. Could you please fix
   this?
 * `Parse error: syntax error, unexpected token "::", expecting "(" in /wp-content/
   plugins/search-regex/models/search.php on line 322`

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

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php-8-0-parse-error/#post-13984804)
 * Yes, it is not compatible with PHP 8 at the moment.
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [5 years ago](https://wordpress.org/support/topic/php-8-0-parse-error/#post-14442139)
 * A beta version can be found here:
 * [https://wordpress.org/support/topic/search-regex-3-0-beta/](https://wordpress.org/support/topic/search-regex-3-0-beta/)
 *  Thread Starter [Malae](https://wordpress.org/support/users/malae/)
 * (@malae)
 * [5 years ago](https://wordpress.org/support/topic/php-8-0-parse-error/#post-14443373)
 * Many thanks John for your work with this very useful plugin. Initial tests with
   WP 5.7.2 and PHP 8.0.6 have shown no issues.

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

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

 * ![](https://ps.w.org/search-regex/assets/icon-256x256.jpg?rev=1030025)
 * [Search Regex](https://wordpress.org/plugins/search-regex/)
 * [Support Threads](https://wordpress.org/support/plugin/search-regex/)
 * [Active Topics](https://wordpress.org/support/plugin/search-regex/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-regex/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-regex/reviews/)

## Tags

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

 * 3 replies
 * 7 participants
 * Last reply from: [Malae](https://wordpress.org/support/users/malae/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/php-8-0-parse-error/#post-14443373)
 * Status: resolved