Problem:
When upgrading to PHP8 I get the following fatal error:
Parse error: syntax error, unexpected token “\” in /home/xxxxxx/public_html/wp-content/themes/neve/inc/compatibility/amp.php on line 44
Solution:
The following solution provided in WordPress.org support:
Unfortunately, that’s a small bug in Neve which can cause that error in few cases. We will release an update for it, most likely next week, but until then, what you can do is contact your hosting provider and ask them to make this small change in your Neve theme:
in inc > compatibility > amp.php
remove \
from the end of this line:
add_filter( 'walker_nav_menu_start_el', array( $this, 'wrap_content' ), 10, 4 );\