johngodley / search-regex

Search Regex adds a powerful set of search and replace functions to WordPress that go beyond the standard searching capabilities, with full regex support.
https://searchregex.com
GNU General Public License v3.0
32 stars 9 forks source link

Parse error: syntax error, unexpected token "::", expecting "(" in /var/www/html/wp-content/plugins/search-regex/models/search.php on line 322 #105

Closed geeknotnerd closed 2 years ago

geeknotnerd commented 2 years ago

Summary

Getting this error while activating the plugin and it fails to be activated Parse error: syntax error, unexpected token "::", expecting "(" in /var/www/html/wp-content/plugins/search-regex/models/search.php on line 322

Plugin version : 2.4.1 PHP version: PHP 8.0.10 Wordpress version: 5.8.1

johngodley commented 2 years ago

That version doesn't work with PHP 8. You will need to use the 3.0 beta

https://github.com/johngodley/search-regex/releases/tag/3.0-beta

geeknotnerd commented 2 years ago

ok, thank you for pointing me to 3.0.