"Call to undefined function nocache_headers()" & "Call to undefined function wp()"

Issue Summary

Imported a Flywheel backup and am getting a “Call to undefined function nocache_headers()” and “Call to undefined function wp()” when trying to open it. Here is a 45sec screen recording of it: LocalWP Errors for LocalWP .... Thanks ahead of time to whoever may be able to help!

Troubleshooting Questions

  • Do you know if this might be because it was a Flywheel backup, or perhaps because it was/is so big!


System Details

  • Which version of Local is being used? = 6.4.2+6012

  • What Operating System (OS) and OS version is being used? = macOS 12.5.1

  • Attach the Local Log. See this Help Doc for instructions on how to do so:
    local-logs.zip (3.6 KB)

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.

Hi @calebweeks! My first instinct here is plugin or theme conflict. I checked the logs for the live site on Flywheel and I’m seeing a lot of slow errors for ebay-integration-for-woocommerce and some fatal errors for elementor-pro. If the site were only a couple of GBs I’d load it to my own Local and try to give you a more definitive answer, but since it’s 60+ GBs that might take me some hours :sweat_smile:

As a start, you could open your site shell for the site and try deactivating some plugins or swapping the theme with a default to see if it loads up. Image 2022-08-27 at 9.48.23 AM

Keep us posted and we’d be happy to help further!

Or that some script kiddie is calling those files directly outside of WP.

1 Like

Hi @Nick-B - thanks so much for your reply and willingness to even attempt to take a look! I totally know what you mean about the sheer size of the site, oh man.

@afragen - Andy, thank you for your idea on an external script kiddie as well.

I was ultimately unable to figure this out, but I ended up solving the issue I was hoping to solve in Local on the LIVE site without needing the backup (thankfully), so we made it through.

Thank you both for jumping in on this! I so appreciate it! I hope you both have a great rest of your day! :slight_smile:

1 Like

I’m glad you were able to get this resolved Caleb! Please come back if you ever have more questions!

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