Support » Installing WordPress » PhP problem

  • 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?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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/

    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

    (@popajp)

    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

    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

    Thread Starter popajp

    (@popajp)

    I deactivated this plug-in in my site, but it still doesn’t work.

    hi! What is the error now when you deactivate the plugin?

    Thread Starter popajp

    (@popajp)

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.