Title: problem with php 8.2.7
Last modified: June 26, 2023

---

# problem with php 8.2.7

 *  Resolved [marcorossi2](https://wordpress.org/support/users/marcorossi2/)
 * (@marcorossi2)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/problem-with-php-8-2-7/)
 * hello Frank 🙂
 * for our site we have activated the generate press theme and your plugin Autoptimize(
   as recommended by gebnerate press documentation) However, we have noticed that
   it conflicts with the latest php version 8.2.7.
   is it not compatible with this
   version of php?

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/problem-with-php-8-2-7/#post-16849188)
 * Hmm, it should work just fine really; I have multiple sites on PHP8 including
   8.2 and [the unit tests are also ran on 8.2](https://app.travis-ci.com/github/futtta/autoptimize).
 * What conflicts do you get (and where)? Do you see any PHP errors from AO in the
   PHP-errorlog?
 *  Thread Starter [marcorossi2](https://wordpress.org/support/users/marcorossi2/)
 * (@marcorossi2)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/problem-with-php-8-2-7/#post-16849366)
 * until this morning everything was fine, then sites gave this error in the early
   afternoon … I don’t know if it can help, but this is the warning that i have 
   read in plesk:
 * AH01071: Got error ‘PHP message: PHP Fatal error: preg_replace(): Cannot use 
   output buffering in output buffering display handlers in /var/www/vhosts/materax.
   it/httpdocs/wp-content/plugins/autoptimize/classes/autoptimizeStyles.php on line
   858’
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/problem-with-php-8-2-7/#post-16849381)
 * weird .. no link with PHP version, but an error in a pretty simple preg_replace…
   what -if anything- got updated this morning (plugins, theme, …)?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/problem-with-php-8-2-7/#post-16949024)
 * any news [@marcorossi2](https://wordpress.org/support/users/marcorossi2/) ?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/problem-with-php-8-2-7/#post-16969513)
 * No feedback so I assume this got fixed/ worked around? Feel free to follow up
   if you still encounter issues!
 * have a nice day!
    frank

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

The topic ‘problem with php 8.2.7’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/problem-with-php-8-2-7/#post-16969513)
 * Status: resolved