• Resolved viktor2112

    (@viktor2112)


    Hello, I wanted to change my theme and when I looked at the Website following Error was shown:

    Fatal error: Uncaught Error: Call to undefined function create_function() in /home/.sites/922/site568/web/blog/wp-content/themes/waipoua/functions.php:274 Stack trace: #0 /home/.sites/922/site568/web/blog/wp-settings.php(611): include() #1 /home/.sites/922/site568/web/blog/wp-config.php(88): require_once(‘/home/.sites/92…’) #2 /home/.sites/922/site568/web/blog/wp-load.php(50): require_once(‘/home/.sites/92…’) #3 /home/.sites/922/site568/web/blog/wp-blog-header.php(13): require_once(‘/home/.sites/92…’) #4 /home/.sites/922/site568/web/blog/index.php(17): require(‘/home/.sites/92…’) #5 {main} thrown in /home/.sites/922/site568/web/blog/wp-content/themes/waipoua/functions.php on line 274

    Could someone please help?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The error you’re encountering, “Fatal error: Uncaught Error: Call to undefined function create_function()”, is typically related to a PHP version incompatibility issue. The create_function() function was deprecated in PHP 7.2 and completely removed in PHP 7.4. This suggests that the theme you are trying to use, Waipoua, may not be fully compatible with the PHP version running on your server.

    Here are steps to resolve this issue:

    1. Switch Back to a Default Theme: Firstly, to regain access to your site, you need to revert to a default WordPress theme like Twenty Twenty-One. You can do this by either renaming the Waipoua theme folder via FTP or File Manager in your hosting control panel, which will force WordPress to revert to a default theme.
    2. Update the Theme or PHP Version:
      • If an updated version of the Waipoua theme is available that supports newer PHP versions, update the theme.
      • Alternatively, if you’re comfortable with it and it’s feasible, you could downgrade your PHP version to an earlier version (like 7.1), but this isn’t recommended due to security and performance reasons.
    3. Contact the Theme Developer: If there’s no updated version of the theme, you might want to contact the theme developer for a patch or update.
    4. Modify the Theme Code: As a last resort, if you’re familiar with PHP, you could attempt to replace the create_function() calls in the theme’s code with anonymous functions, which is the recommended approach in newer PHP versions. This, however, should be done carefully as it might lead to further issues if not done correctly.
    5. Choose a Different Theme: If none of the above solutions work, consider using a different theme that is compatible with your current PHP version
    Thread Starter viktor2112

    (@viktor2112)

    Thanks for your reply.

    When I change the Theme Name following error pops up: “The theme directory “waipoua” does not exist.”

    Thread Starter viktor2112

    (@viktor2112)

    Solved

    Hi, you can also follow this step-by-step guide on how to fix the wp-blog-header.php issue with your WordPress website.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error after activating Theme’ is closed to new replies.