You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This request is not a duplicate of an existing issue
I have read the docs and followed them (if applicable)
I have seached the Roots Discourse for answers and followed them (if applicable)
This is not a personal support request that should be posted on the Roots Discourse community
Description
What's wrong?
If there is no plugins folder then the autoloader does not work to autoload the mu-plugins. This is an issue as we make sites using bedrock for clients, we put every necessary plugin for the site to function as a mu-plugin via composer/bedrock, then when we deploy we exclude the plugins folder from deploy. This provides us 2 benefits, we can put dev plugins in plugins to help for dev, and clients can add/update their own plugins (or 3rd parties like seo companies) and they do not get effected by new deploys. Because of this initial deploys do not have a plugins folder. This does not appear to be a WordPress issue as the built in functions do not seam to throw any errors, and work as you would expect.
What have you tried?
Creating an empty plugins folder fixes it. Removing it again brings back the issue.
What insights have you gained?
Possible solutions
Temporary workarounds
Create an empty plugins folder.
Steps To Reproduce
Have folders in the mu-plugins folder that get autoloaded
Delete the plugins folder
mu-plugins will no longer load
Expected Behavior
Autoloader should load the mu-plugins regardless of the plugins folder, as it does not seam relevant.
Actual Behavior
mu-plugins do not get loaded if there is no plugins folder
Relevant Log Output
No response
Versions
1.0.4
The text was updated successfully, but these errors were encountered:
Terms
Description
What's wrong?
If there is no
plugins
folder then the autoloader does not work to autoload themu-plugins
. This is an issue as we make sites using bedrock for clients, we put every necessary plugin for the site to function as amu-plugin
via composer/bedrock, then when we deploy we exclude the plugins folder from deploy. This provides us 2 benefits, we can put dev plugins in plugins to help for dev, and clients can add/update their own plugins (or 3rd parties like seo companies) and they do not get effected by new deploys. Because of this initial deploys do not have a plugins folder. This does not appear to be a WordPress issue as the built in functions do not seam to throw any errors, and work as you would expect.What have you tried?
Creating an empty plugins folder fixes it. Removing it again brings back the issue.
What insights have you gained?
Possible solutions
Temporary workarounds
Create an empty plugins folder.
Steps To Reproduce
mu-plugins
folder that get autoloadedmu-plugins
will no longer loadExpected Behavior
Autoloader should load the
mu-plugins
regardless of the plugins folder, as it does not seam relevant.Actual Behavior
mu-plugins
do not get loaded if there is noplugins
folderRelevant Log Output
No response
Versions
1.0.4
The text was updated successfully, but these errors were encountered: