Title: Testing a theme for PHP 8.0 compatibility
Last modified: October 26, 2022

---

# Testing a theme for PHP 8.0 compatibility

 *  [rabox66](https://wordpress.org/support/users/rabox66/)
 * (@rabox66)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/testing-a-theme-for-php-8-0-comatibility/)
 * Hi everybody,
    I frequently code themes based on the [https://underscores.me/](https://underscores.me/)
   None of these websites using that theme ever had any problems running on PHP 
   8.0 or 8.1
 * Today for the first time I have a problem after changing the PHP version the 
   site does not work at all. After switching back to PHP 7.4: I tried [https://wordpress.org/plugins/php-compatibility-checker/](https://wordpress.org/plugins/php-compatibility-checker/)
   to see where the bug is located. But the plugin did not work.
 * Does anybody know how I can locate the bug? It will be hard to check every line
   manually.
 * Thanks, for ideas!
    Raphael
    -  This topic was modified 3 years, 7 months ago by [rabox66](https://wordpress.org/support/users/rabox66/).
    -  This topic was modified 3 years, 7 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Developing with WordPress
      topic

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

 *  [barnez](https://wordpress.org/support/users/pidengmor/)
 * (@pidengmor)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/testing-a-theme-for-php-8-0-comatibility/#post-16136278)
 * > Today for the first time I have a problem after changing the PHP version the
   > site does not work at all.
 * What happens if you [enable debugging](https://wordpress.org/support/article/debugging-in-wordpress/)?
   That should signpost where the issue is/are.
 *  Thread Starter [rabox66](https://wordpress.org/support/users/rabox66/)
 * (@rabox66)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/testing-a-theme-for-php-8-0-comatibility/#post-16136326)
 * No, on PHP 7.4 everything is OK. In PHP 8.0 the website is down because of an
   fundamental error. Therefore I cannot see any debugging informations.
 * Maybe a look in the errorl logs might show where the bug is located. I will have
   a look which kind of information the hoster offers. Thanks for the idea.
 *  [barnez](https://wordpress.org/support/users/pidengmor/)
 * (@pidengmor)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/testing-a-theme-for-php-8-0-comatibility/#post-16136617)
 * I agree. Error logs are your best bet in this case. Good luck with hunting down
   the bug(s).
 *  Thread Starter [rabox66](https://wordpress.org/support/users/rabox66/)
 * (@rabox66)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/testing-a-theme-for-php-8-0-comatibility/#post-16136630)
 * Yes, I already checked it. In fact, I do not understand what it is about. I think
   the problem is caused by something the hoster is responsible for. I sent it to
   the support.
 * I switched from 7.4 to 8.0 on many sites, all of them with my hand coded themes.
   And I never had any prtoblems.

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

The topic ‘Testing a theme for PHP 8.0 compatibility’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [rabox66](https://wordpress.org/support/users/rabox66/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/testing-a-theme-for-php-8-0-comatibility/#post-16136630)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
