Title: Compatibility with PHP8
Last modified: December 8, 2021

---

# Compatibility with PHP8

 *  Resolved [SRD75](https://wordpress.org/support/users/srd75/)
 * (@srd75)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/compatibility-with-php8/)
 * Hi Folks,
 * When we upgraded to PHP 8, our backend generated a fatal error:
 * > Parse error: syntax error, unexpected token “::”, expecting “(” in /wp-content/
   > plugins/search-regex/models/search.php on line 322
 * Uninstalling the plugin via FTP resolved the error.
 * Is your plugin compatible with PHP 8?
 * Cheers,
    Steve

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

 *  [clairedelune](https://wordpress.org/support/users/clairedelune/)
 * (@clairedelune)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/compatibility-with-php8/#post-15176027)
 * I have the same problem. Apparently there is a major upgrade in the works with
   a Bata version available on GitHub if you want to test it out.
 * A work around I tried a few months ago was rolling PHP back to an earlier version,
   doing what I needed to do on my site, and then updating to v8 again. Not ideal
   but it got the job done. I have a whole bunch of changes I need to make again…
   wish the new version was ready already.
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/compatibility-with-php8/#post-15280594)
 * As mentioned in other threads, the beta works with PHP 8
 * [https://github.com/johngodley/search-regex/releases/tag/3.0-beta](https://github.com/johngodley/search-regex/releases/tag/3.0-beta)

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

The topic ‘Compatibility with PHP8’ 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/)

 * 2 replies
 * 3 participants
 * Last reply from: [John Godley](https://wordpress.org/support/users/johnny5/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/compatibility-with-php8/#post-15280594)
 * Status: resolved