Title: PHP error
Last modified: November 25, 2022

---

# PHP error

 *  [danmeek](https://wordpress.org/support/users/danmeek/)
 * (@danmeek)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-error-555/)
 * I’m getting the following error on my posts in a self-hosted P2:
 * Warning: preg_match_all(): Compilation failed: invalid range in character class
   at offset 7 in /home/customer/www/spatter.blog/public_html/wp-content/themes/
   p2/inc/mentions.php on line 77
 * I see there’s a post about this from three years ago! Any fix in sight?

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

 *  [Adam Leone](https://wordpress.org/support/users/aleone89/)
 * (@aleone89)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-error-555/#post-16234167)
 * Hey there!
 * Thanks for reaching out.
 * Out of curiosity, which version of PHP is running on the site?
 *  Thread Starter [danmeek](https://wordpress.org/support/users/danmeek/)
 * (@danmeek)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-error-555/#post-16235941)
 * Thanks for the speedy response! It’s running 7.4.33.
 *  [Sophie – a11n](https://wordpress.org/support/users/sophiegy/)
 * (@sophiegy)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-error-555/#post-16240881)
 * Ok, thanks. The post you mentioned suggested reverting to PHP 7.2 though that’s
   obviously not something we’d suggest at this time. It could be worth testing 
   on a higher version of PHP since 7.4 is fast approaching End of Life:
    [https://www.php.net/supported-versions](https://www.php.net/supported-versions)
 * As it is, the P2 theme isn’t being actively maintained; it’s been superceded 
   by this hosted version on WordPress.com:
    [https://wordpress.com/p2/](https://wordpress.com/p2/)
 * It might be worth trying P2 Breathe theme (downloadable from Github) along with
   the O2 plugin (also available from Github) as that is the “2.0” version of P2,
   but the same applies there – it’s also not in active development having been 
   superceded by the hosted version above.

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

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

 * ![](https://i0.wp.com/themes.svn.wordpress.org/p2/1.5.8/screenshot.png)
 * P2
 * [Support Threads](https://wordpress.org/support/theme/p2/)
 * [Active Topics](https://wordpress.org/support/theme/p2/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/p2/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/p2/reviews/)

## Tags

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

 * 3 replies
 * 3 participants
 * Last reply from: [Sophie – a11n](https://wordpress.org/support/users/sophiegy/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/php-error-555/#post-16240881)
 * Status: not resolved