# Fatal error on successfully imported site

**URL:** <https://community.localwp.com/t/fatal-error-on-successfully-imported-site/50646>\
**Category:** Support\
**Created:** [June 26, 2025, 2:10am UTC](https://community.localwp.com/t/fatal-error-on-successfully-imported-site/50646 "2025-06-26T02:10:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smng](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@smng](https://community.localwp.com/u/smng)\
**Post date:** [June 26, 2025, 2:10am UTC](https://community.localwp.com/t/fatal-error-on-successfully-imported-site/50646/1 "2025-06-26T02:10:45Z")

</div>

### What issue or error are you experiencing?

Website imported successfully. When I visit the link the following error msg appears (xxx replace personal info):  
" **Fatal error** : Uncaught Error: Call to undefined function create\_function() in /Users/XXXXX-XXXXXXXXXX/Local Sites/XXXXX-m-wp-archive/app/public/wp-content/themes/XXXXXXXXXX/functions.php:31 Stack trace: #0 /Users/XXXXX-XXXXXXXXXX/Local Sites/XXXXX-m-wp-archive/app/public/wp-settings.php(695): include() #1 /Users/XXXXX-XXXXXXXXXX/Local Sites/XXXXX-m-wp-archive/app/public/wp-config.php(103): require\_once(‘/Users/XXXXX-XX…’) #2 /Users/XXXXX-XXXXXXXXXX/Local Sites/sonia-m-wp-archive/app/public/wp-load.php(50): require\_once(‘/Users/XXXXX-XX…’) #3 /Users/XXXXX-XXXXXXXXXX/Local Sites/XXXXX-XX-wp-archive/app/public/wp-blog-header.php(13): require\_once(‘/Users/XXXXX-XX…’) #4 /Users/XXXXX-XXXXXXXXXX/Local Sites/XXXXX-m-wp-archive/app/public/index.php(17): require(‘/Users/XXXXX-XX…’) #5 {main} thrown in **/Users/XXXXX-XXXXXXXXXX/Local Sites/XXXXX-m-wp-archive/app/public/wp-content/themes/XXXXXXXXXX/functions.php** on line **31**

* * *

### What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

* * *

### System Details

- **Local Version:**

- **Operating System (OS) and OS version:**

* * *

### Local Logs

Attach your Local Logs here ([Help Doc - Retrieving Local’s Log](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))

* * *

_ **Security Reminder** _  
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [June 26, 2025, 12:52pm UTC](https://community.localwp.com/t/fatal-error-on-successfully-imported-site/50646/2 "2025-06-26T12:52:31Z")

</div>

Hi @smng

The fatal error is calling out your theme so it could be in conflict with a plugin or some other part of the site’s configuration. For example did you create the Local site using the same WP/PHP/MySQL/server settings as the live site?

You can click on Site Shell under your Local site’s name in order to use WP-CLI commands to swap the theme or disable plugins as a workaround to get you in as well.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [September 24, 2025, 12:52pm UTC](https://community.localwp.com/t/fatal-error-on-successfully-imported-site/50646/3 "2025-09-24T12:52:34Z")

</div>

Closed on September 24, 2025, 12:52pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
