I have to activate plugins each time I restart

What issue or error are you experiencing?

On some sites I have to reactivate plugins each time I restart the site. Almost all the sites I work with locally have the same theme and plugins. I don’t see any specific difference between the sites that have this problem and the sites that don’t.
I googled. I checked the log. But I can not figure out why this is happening.

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


System Details

  • Local Version:
    I have the latest but hade this problem on and off for about a year now.

  • Operating System (OS) and OS version:
    Mac - Ventura (but the same with earlier versions


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)


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.

It’s hard to say why exactly this would be happening. I think that in general, Plugins don’t deactivate because of PHP fatal errors.

That being said, I think WordPress will deactivate a plugin if it generates a fatal error during the plugin registration.

I bring that up because it’s possible that the plugins in question might be doing something within a function that is attached to the wrong hook.

A couple of things you might try investigating:

  • Is there anything in the site’s PHP error log. This log is different than Local’s log, and can be found at ~/Local Sites/<sitename>/logs/php/error.log You might need to enable WP_DEBUG in order to see anything: Debug WordPress
  • On what version of PHP does this happen? Do you get different behavior on newer or older versions of PHP?
1 Like

Thanks.
I always have debug on locally. And I have not seen anything suspiciously there :blush:
Will check your other suggestions and get back with an answer soon.

2 Likes

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