I have build an app which, amongst other stuff deals with plugins for multiple WP sites.
I copy plugin folders & files from the "master" app into the wp-content/plugins folder of a freshly created WP site with just the bare wp_options:
- Copy of the folders & files runs properly, with chmod at 0755 for folders & 0644 for files, to mimick the standard akismet plugin install ;
- serialize the plugin data & update the 'active_plugins' field with it, and the serialized data is well formed:
a:4:{i:0;s:14:"classic-editor";i:1;s:17:"increase_rest_get";i:2;s:34:"jwt-authentication-for-wp-rest-api";i:3;s:17:"myDashboardWidget";}
array (
0 => 'classic-editor',
1 => 'increase_rest_get',
2 => 'jwt-authentication-for-wp-rest-api',
3 => 'myDashboardWidget',
)
But, when I go to the admin, I get the below, All the activated plugins are deactivated:
Why is this ? Am I missing something in the activation / copying process ?
Many thanks,
JM