After import all plugins are not found

Issue Summary

After importing an existing site, all plugins seem to be enabled in frontend, except I don’t see any related menu in the sidebar. As soon as I visit the ‘plugins’ folder, all plugins state as ‘The plugin XYZ has been deactivated due to an error: Plugin file does not exist.’ even though the folders/files exists and the permissions seem to be correct. After this all plugins gets disabled globally.
(also the themes are not working in backend, but does in frontend)

Troubleshooting Questions

We as a company usually install WP with a custom folder structure, instead of we use


After having imported the zip, I connect to the database and update the ‘siteurl’ in the ‘options’ table.
At this point with a PHP library I search-replace the database to update to the new path.
All various links/images are now linked correctly

Schermata 2021-12-22 alle 17.42.58

System Details

  • Which version of Local is being used?

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

    • macOS Big Sur 11.6
  • Attach the Local Log. See this Community Forum post for instructions on how to do so:

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.

I guess I fixed it,
I still had declared WP_CONTENT_DIR and WP_CONTENT_URL, but renamed to ‘wp-content’.

By removing this 2 lines all plugins and themes are now working.

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