Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Sorry, you do not have permission to add post.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Elo QnA Logo Elo QnA Logo
Sign InSign Up

Elo QnA

Elo QnA Navigation

  • Home
  • EloClouds
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Home
  • EloClouds
  • Blog
  • Contact Us
Home/ Questions/Q 1056
Next
In Process

Elo QnA Latest Questions

Anna
  • 9
  • 9
AnnaTeacher
Asked: October 9, 20242024-10-09T20:18:04+00:00 2024-10-09T20:18:04+00:00In: WordPress Code Errors

Fatal error: Uncaught Error: Call to undefined function create_function

  • 9
  • 9

Hi everyone! I’m new here, so I appreciate your patience. I noticed yesterday that I can no longer log into the admin area of my site; it gives a fatal error. The public site is still up and running fine.

I used phpMyAdmin to disable all the plugins and switch to a standard theme, which worked well, but it didn’t resolve the login issue. I also didn’t receive the email that was supposed to come with the error message. Even when I visit my site, I can see the admin bar, but clicking on anything there just brings up the fatal error again.

I enabled debug mode and got this error message:

“`
Fatal error: Uncaught Error: Call to undefined function create_function() in /mnt/web206/c2/26/53922126/htdocs/WordPress_02/wp-config.php:90 Stack trace: #0 /mnt/web206/c2/26/53922126/htdocs/WordPress_02/wp-load.php(50): require_once() #1 /mnt/web206/c2/26/53922126/htdocs/WordPress_02/wp-admin/admin.php(34): require_once(‘…’) #2 /mnt/web206/c2/26/53922126/htdocs/WordPress_02/wp-admin/index.php(10): require_once(‘…’) #3 {main} thrown in /mnt/web206/c2/26/53922126/htdocs/WordPress_02/wp-config.php on line 90
“`

I’ve found out that `create_function` is related to features that aren’t supported in newer PHP versions. I’m currently using PHP 8.1, and I can only downgrade to 8.0, which doesn’t fix the issue. It’s possible the problem has been around for a while, but I hadn’t needed to access the backend until now, so I’m not sure.

Since I’m a total beginner, I would really appreciate any explanations in simple terms. Thank you!

  • 2 2 Answers
  • 352 Views
  • 0 Followers
  • 0
    • Report
  • Share
    Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

2 Answers

  • Voted
  • Oldest
  • Recent
  • Random
  1. Stephan Ulrich
    Stephan Ulrich Enlightened
    2024-10-09T20:37:59+00:00Added an answer on October 9, 2024 at 8:37 pm

    Hello where is you wordpress hosting?

      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  2. Ousama
    Ousama Begginer
    2024-10-12T09:24:13+00:00Added an answer on October 12, 2024 at 9:24 am

    I recently encountered a fatal error: Uncaught Error: Call to undefined function create_function() on my WordPress site, which caused the site to crash. I reached out to EloClouds’ Managed WordPress Support, and here’s how they helped:

    1. Quick Response: Within a few minutes of submitting my support ticket, a support hero from EloClouds got back to me and immediately started investigating the issue.
    2. PHP Version Issue: They identified that the error was caused by outdated code that wasn’t compatible with the newer versions of PHP (since create_function() is deprecated in PHP 7.2+). I had recently upgraded my site’s PHP version, which triggered the error.
    3. Swift Fix: The support team quickly replaced the deprecated create_function() with anonymous functions, which is the proper solution for compatibility with newer PHP versions. They also checked my plugins and theme to make sure no other deprecated functions were causing issues.
    4. Ongoing Support: After fixing the immediate error, they provided me with tips on keeping my plugins and themes updated to avoid similar problems in the future, along with some additional recommendations for better site performance.

    Overall, the support from EloClouds was fast, professional, and effective in resolving the issue. My site was back online quickly without me having to dive into the technical details myself!

      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 112
  • Answers 489
  • Best Answers 10
  • Users 233
  • Popular
  • Answers
  • Stephan Ulrich

    AI WordPress Web Builder

    • 36 Answers
  • Daniel A

    Any exciting WordPress projects, site launches, or new features you’re ...

    • 24 Answers
  • Stephan Ulrich

    Introducing VCN

    • 22 Answers
  • Daniel A
    Daniel A added an answer UX is the new SEO. Hosting that prioritizes speed is… June 9, 2025 at 9:35 am
  • Daniel A
    Daniel A added an answer The old-schoolers always tell it best. In today’s web, hosting… June 9, 2025 at 9:34 am
  • Daniel A
    Daniel A added an answer Googlebot is picky. If your site hiccups or hangs, it… June 9, 2025 at 9:33 am

Related Questions

  • Has anyone else encountered the dreaded 'White Screen of Death' ...

    • 7 Answers
  • White screen of death

    • 5 Answers
  • I need help

    • 4 Answers
  • Uncaught error: You tried to opt-in to unstable APIs

    • 1 Answer
  • Error Establishing a Database Connection

    • 2 Answers

Top Members

Stephan Ulrich

Stephan Ulrich

  • 7 Questions
  • 785 Points
Enlightened
Daniel A

Daniel A

  • 13 Questions
  • 386 Points
Enlightened
Morgan

Morgan

  • 2 Questions
  • 165 Points
Explainer

Trending Tags

2025 ai eloclouds francais hosting language multilingual wordpress website poll question website builder wordpress

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • Buy Theme

Footer

© 2024 EloQ&A. All Rights Reserved
Powered by EloClouds