# PHP Fatal error: Uncaught Error: Class 'WpeCommon' not found

**URL:** <https://community.localwp.com/t/php-fatal-error-uncaught-error-class-wpecommon-not-found/28510>\
**Category:** Support\
**Tags:** local-connect-wpe\
**Created:** [October 27, 2021, 4:25am UTC](https://community.localwp.com/t/php-fatal-error-uncaught-error-class-wpecommon-not-found/28510 "2021-10-27T04:25:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fishnyc22](https://avatars.discourse-cdn.com/v4/letter/f/ac91a4/32.png) [@fishnyc22](https://community.localwp.com/u/fishnyc22)\
**Post date:** [October 27, 2021, 4:25am UTC](https://community.localwp.com/t/php-fatal-error-uncaught-error-class-wpecommon-not-found/28510/1 "2021-10-27T04:25:55Z")

</div>

### Issue Summary

Hey there. I’m new to local. I’m helping a friend/client with a project and struggling to get the project running on my local machine. This is an existing site in development environment on WP Engine.

#### Troubleshooting Questions

This is the first project I’ve developed with LOCAL.

- Are you able to create a new, plain WordPress site in Local and access it in a Browser?  
YES, a new site works fine

#### Replication

Describe the steps that others can take to replicate this issue. If you have screenshots that can help clarify what is happening, please include them!

I connected to WP Engine and download the site. It downloads and I get “Warning , the sites Wordpress URL settings do not match the host set in LOCAL.”  
I click FIX IT  
I get an error: Unable to change site domain to host. Error, command failed…  
and then if I try to load the site I get the error below.

#### System Details

- Which version of Local is being used?  
6.15+5536

- What Operating System (OS) and OS version is being used?

- Attach the Local Log. See this Community Forum post for instructions on how to do so:

```auto
[26-Oct-2021 20:56:29 UTC] PHP Fatal error: Uncaught Error: Class 'WpeCommon' not found in /Users/myhomedir/Local Sites/sios2021/app/public/wp-content/mu-plugins/wpe-cache-plugin/wpe-common-adapter.php:17
Stack trace:
#0 /Users/myhomedir/Local Sites/sios2021/app/public/wp-content/mu-plugins/wpe-cache-plugin/register-rest-endpoints.php(25): wpengine\cache_plugin\WpeCommonAdapter::get_instance()
#1 /Users/myhomedir/Local Sites/sios2021/app/public/wp-content/mu-plugins/wpe-cache-plugin/register-rest-endpoints.php(16): wpengine\cache_plugin\RegisterRestEndpoint::initialize()
#2 /Users/myhomedir/Local Sites/sios2021/app/public/wp-content/mu-plugins/wpe-cache-plugin.php(46): include_once('/Users/myusername...')
#3 /Users/myhomedir/Local Sites/sios2021/app/public/wp-content/mu-plugins/wpe-cache-plugin.php(43): wpengine\cache_plugin\include_rest_registration()
#4 /Users/myhomedir/Local Sites/sios2021/app/public/wp-settings.php(340): include_once('/Users/myusername...')
#5 phar:///Applications/Local.app/Contents/Resources/extraResources/bin/wp-cli/wp-cli.phar in /Users/myhomedir/Local Sites/sios2021/app/public/wp-content/mu-plugins/wpe-cache-plugin/wpe-common-adapter.php on line 17

```

My host file looks like this. Not sure if this is helpful.

```auto
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
127.0.0.1 figmadaemon.com

## Local by Flywheel - Start ##
::1 sios2021.local #Local Site
127.0.0.1 sios2021.local #Local Site
::1 www.sios2021.local #Local Site
127.0.0.1 www.sios2021.local #Local Site
::1 daves-test.local #Local Site
127.0.0.1 daves-test.local #Local Site
::1 www.daves-test.local #Local Site
127.0.0.1 www.daves-test.local #Local Site
## Local by Flywheel - End ##

```

Thanks in advance for any guidance to get this up and running!

---

<div class="post-metadata">

**Author:** ![fishnyc22](https://avatars.discourse-cdn.com/v4/letter/f/ac91a4/32.png) [@fishnyc22](https://community.localwp.com/u/fishnyc22)\
**Post date:** [October 27, 2021, 6:32pm UTC](https://community.localwp.com/t/php-fatal-error-uncaught-error-class-wpecommon-not-found/28510/2 "2021-10-27T18:32:12Z")

</div>

I found another post from last night that said to remove `/mu-plugins/wpe-cache-plugin.php`. That solved the problem for me.

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [October 27, 2021, 7:20pm UTC](https://community.localwp.com/t/php-fatal-error-uncaught-error-class-wpecommon-not-found/28510/3 "2021-10-27T19:20:49Z")

</div>

Here’s that related topic:

> [@"Critical Error" when pushing or pulling to WP Engine](http://community.localwp.com/t/critical-error-when-pushing-or-pulling-to-wp-engine/28429):
>
> Issue Summary Oddly enough, I’m having this issue with my MacBook but not my iMac. Every time I go to push or pull a site, it kicks a Critical Error or Host Issue. Troubleshooting Questions Does this happen for all sites in Local, or just one in particular? All sites Are you able to create a new, plain WordPress site in Local and access it in a Browser? Yes but I can not push it to WP Engine System Details Which version of Local is being used? …

I’ll close this topic in favor of the other one!

---

<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:** [October 29, 2021, 7:21am UTC](https://community.localwp.com/t/php-fatal-error-uncaught-error-class-wpecommon-not-found/28510/4 "2021-10-29T07:21:00Z")

</div>

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