So as an update,
After some time of testing, I can say that with the new plugin version, nor the Fiters, nor the Post types work. The only still working way to activate/deactivate plugins is with the on-page settings.
I hope there is a fix for this.
Again, Everything saves properly and settings stay on page reload, but do not appear to be working.
Thanks
After you go to the Post Type Plugins page and click save and then go to the edit page for one of the posts it is supposed to affect. Do you still get the on/off buttons to set the plugins? Those should no longer appear if everything saved correctly.
I go to the Post type page and save all the settings. Then on the post page there is the messega that settings are ovveridden by the post type. Everything looks good, however, they do not actually happen.
The only way to disactivate/activate plugins seems to be if I click the Override post type settings and do it on per page basis.
Update: Another curious thing I noticed is that after some time some of my plugins get disactivated automatically on the General plugins page, thus causing them to be inactive globally.
I checked what is going on on the global settings page of Plugin organizer.
The plugins which cause problems are actually active globally and disactivated only on mobile, so I guess it confuses my 14″ pc screen with mobile?
And it may be useful – in the Error logs I receive the following:
PHP Warning: array_search() expects parameter 2 to be array, string given in /home/boutiqs/public_html/wp-content/mu-plugins/PluginOrganizerMU.class.php on line 322
Duplicate entry ‘92489’ for key ‘PRIMARY’ при заявка INSERT INTO bsc_2_PO_plugins (post_id, permalink, permalink_hash, permalink_hash_args, enabled_plugins, disabled_plugins, enabled_mobile_plugins, disabled_mobile_plugins, enabled_groups, disabled_groups, enabled_mobile_groups, disabled_mobile_groups, secure, post_type, status) VALUES (…. ‘0’, ‘post’, ‘publish’) executed by do_action(‘wp_ajax_PO_save_pt_plugins’), call_user_func_array, PO_Ajax->save_pt_plugins
Sorry it has taken so long to respond. I think I know what the problem is. I will release an update tonight that will fix it.
Version 6.0.4 should fix the problem.
Thank you for the update,
Unfortunately, just upon activating the plugin I received this error
[20-May-2015 14:21:16 UTC] PHP Warning: array_search() expects parameter 2 to be array, string given in /home/boutiqs/public_html/wp-content/plugins/plugin-organizer/lib/PluginOrganizer.class.php on
Now it is installed so if you need to you may login in the website and see it functioning.
Again – no plugins can be activaed/disable from Post type board, only the global board works.
I very much hope this can be solved very soon.
You didn’t give me the full error message. It should have a line number at the end.
I don’t think I have a log in for your website.
Sorry they are these two lines actually:
[20-May-2015 14:21:16 UTC] PHP Warning: array_search() expects parameter 2 to be array, string given in public_html/wp-content/plugins/plugin-organizer/lib/PluginOrganizer.class.php on line 560
[20-May-2015 14:21:16 UTC] PHP Warning: in_array() expects parameter 2 to be array, string given in public_html/wp-content/plugins/plugin-organizer/lib/PluginOrganizer.class.php on line 1293
Can you give me an email address to send them to?
Thanks
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
I don’t think I have a log in for your website.
I hope you don’t. That’s really frowned upon in these forums.
@juddi22 Can you share the output from this plugin?
https://ww.wp.xz.cn/plugins/send-system-info/
That can provide lots of info that may help identify why you’re getting that warning.
In both of those spots it is trying to do an array search on the list of available plugins. When calling get_option(“active_plugins”) it appears your site is returning a string instead of an array. It may be a conflict with another plugin. Can you create a plugin filter with the permalink set to http://www.yoursite.com/wp-admin/admin-ajax.php and disable all plugins on it? Replace http://www.yoursite.com with the domain and path your site uses. Then try it again.
Thank you, by all plugins do you mean including Plugin Organizer?
Yes. You will also need to have selective admin loading enabled for it to work.
So I tried what you suggested. A filter to deactivate all plugins but Plugin Organizer on the admin.
What happened was all plugins were globally deactivated throughout the site.
So unfortunately there is some mysterious problem, not the other plugins.