Title: PhP problem
Last modified: January 31, 2023

---

# PhP problem

 *  [popajp](https://wordpress.org/support/users/popajp/)
 * (@popajp)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-problem-28/)
 * Hello, I have wordpress version 6.1.1. Since PhP version was old 7.2 we had to
   update it. In CP I tried to update to the new version but it can only go to 7.4
   while 8.0 and 8.1 go and give an error. What is the problem?
    -  This topic was modified 3 years, 4 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-problem-28%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-problem-28/#post-16366770)
 * Which error is displayed exactly? If no concrete error message is visible, it
   should be found in the error log. Or you can activate debugging in WordPress:
   [https://wordpress.org/support/article/debugging-in-wordpress/](https://wordpress.org/support/article/debugging-in-wordpress/)
 * I would recommend to set PHP 7.4 or 8.0. With 8.1 WordPress itself still has 
   minor problems. I suspect the cause of your problems are plugins you use or the
   theme. Also make sure that they are up to date. On the above way in the error
   log or debugging you should be able to see what the actual cause of the error
   message.
 *  Thread Starter [popajp](https://wordpress.org/support/users/popajp/)
 * (@popajp)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-problem-28/#post-16366798)
 * Error is this:
 * `Fatal error: Uncaught Error: Call to undefined function create_function() in/
   home/rtcaribr/public_html/wp-content/plugins/date-and-time-widget/date-time.php:
   372 Stack trace: #0 /home/rtcaribr/public_html/wp-settings.php(447): include_once()#
   1 /home/rtcaribr/public_html/wp-config.php(67): require_once('/home/rtcaribr/...')#
   2 /home/rtcaribr/public_html/wp-load.php(50): require_once('/home/rtcaribr/...')#
   3 /home/rtcaribr/public_html/wp-blog-header.php(13): require_once('/home/rtcaribr/...')#
   4 /home/rtcaribr/public_html/index.php(17): require('/home/rtcaribr/...') #5 {
   main} thrown in /home/rtcaribr/public_html/wp-content/plugins/date-and-time-widget/
   date-time.php on line 372`
 *  [Miguel Martinez Lopez](https://wordpress.org/support/users/miguelmartinezlopez/)
 * (@miguelmartinezlopez)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-problem-28/#post-16398418)
 * hi! Deactivate the plugin **date-and-time-widget**. It’s not compatible with 
   php8 yet. It’s using the function **create_function**. That function is removed
   in php8.
 * [https://www.php.net/manual/en/function.create-function.php](https://www.php.net/manual/en/function.create-function.php)
    -  This reply was modified 3 years, 4 months ago by [Miguel Martinez Lopez](https://wordpress.org/support/users/miguelmartinezlopez/).
    -  This reply was modified 3 years, 4 months ago by [Miguel Martinez Lopez](https://wordpress.org/support/users/miguelmartinezlopez/).
 *  Thread Starter [popajp](https://wordpress.org/support/users/popajp/)
 * (@popajp)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-problem-28/#post-16398974)
 * I deactivated this plug-in in my site, but it still doesn’t work.
 *  [Miguel Martinez Lopez](https://wordpress.org/support/users/miguelmartinezlopez/)
 * (@miguelmartinezlopez)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-problem-28/#post-16398987)
 * hi! What is the error now when you deactivate the plugin?
 *  Thread Starter [popajp](https://wordpress.org/support/users/popajp/)
 * (@popajp)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-problem-28/#post-16399932)
 * Error:
 * [https://ibb.co/frN0CTz](https://ibb.co/frN0CTz)

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

The topic ‘PhP problem’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [popajp](https://wordpress.org/support/users/popajp/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/php-problem-28/#post-16399932)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
