• Hello,

    We are using the ‘dedi’ theme, which is a child theme of ‘Twenty Seventeen.’ We are encountering an error with our theme. The error message is as follows:

    “[2023-09-11T06:31:42.456019+00:00] PHP Fatal error: Uncaught Error: Call to undefined function create_function() in /nas/content/live/prospectresstg/wp-content/themes/dedi-custom/functions.php:181#012Stack trace:#012#0 /nas/content/live/prospectresstg/wp-settings.php(600): include()#012#1 /nas/content/live/prospectresstg/wp-config.php(127): require_once(‘/nas/content/li…’)#012#2 /nas/content/live/prospectresstg/wp-load.php(50): require_once(‘/nas/content/li…’)#012#3 /nas/content/live/prospectresstg/wp-blog-header.php(13): require_once(‘/nas/content/li…’)#012#4 /nas/content/live/prospectresstg/index.php(17): require(‘/nas/content/li…’)#012#5 {main}#012 thrown in /nas/content/live/prospectresstg/wp-content/themes/dedi-custom/functions.php on line 181”

    Could you please assist us in resolving this error?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @anchalgarg ! The create_function function was removed in PHP 8.0, and your theme doesn’t seem to support this. The easiest way would be for your theme’s author to fix this in the theme.

    You can also reach out to your web host to temporarily switch your site to PHP 7.4, to get your site back up for now. The actual fix would need to come from your theme’s author, since the Twenty seventeen theme works properly with PHP 8.0.

    Thread Starter anchalgarg

    (@anchalgarg)

    Hi,

    Thank you for your response. As we are using the Twenty Seventeen theme, which is the default WordPress theme, and I’ve raised a query on the right place. Could you please check & help us to fix the issue? We have everything is up to date like WordPress, theme & plugins.

    Here is the version details :-

    WordPress version – 6.3.1
    Parent theme version – 3.2 (Twenty Seventeen)
    Child Theme version – 1.0 (Dedi Theme (dedi-custom))

    It looks like this error doesn’t occur with a fresh installation of WordPress with the Twenty seventeen theme. This line below from your error message also shows where the actual issue is coming from:

    PHP Fatal error: Uncaught Error: Call to undefined function create_function() in /nas/content/live/prospectresstg/wp-content/themes/dedi-custom/functions.php:181

    You can also verify the source of this error by temporarily switching your theme to Twenty seventeen. You can use the ‘Health Check’ plugin for troubleshooting this without making any permanent changes to your site.

    Since this theme seems to be custom, and doesn’t seem to be a publicly available, the best option here would be to contact the developer of this theme for any help with this issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Assistance Required to Resolve Theme Error’ is closed to new replies.