Plugins Completely Deactivate on Sitewide
-
Hi,
Could you please help me with this case? FDP is conflicted with InfiniteWP – Client plugin:
- FDP version 1.8.8.6 and older is working fine
- FDP version 1.8.8.7 and newer => when I disable plugins some pages, it completely deactive plugins sitewide.
I tested to remove InfiniteWP – Client and the 1.8.8.7 or newest version of FDP is working well, but I want to use InfiniteWP – Client plugin on my website.
Could you please help me?
Best Regards
-
Hi @quanle1003
InfiniteWP requires an account, so I will need your help to understand what is going on.
Can you please follow the following instructions?:
– Edit your file wp-config.php and enable the debugging by setting to true WP_DEBUG
You should have this:
define( 'WP_DEBUG','true' ); define( 'WP_DEBUG_LOG','true' ); define( 'WP_DEBUG_DISPLAY','false' );– Open the file wp-content/plugins/iwp-client/init.php. With version 1.9.6 you should find the function iwp_mmb_remove_site at line 594:
if( !function_exists ( 'iwp_mmb_remove_site' )) { function iwp_mmb_remove_site($params) { ... if ($deactivate) { deactivate_plugins($plugin_slug, true); } ... }replace this:
if ($deactivate) { deactivate_plugins($plugin_slug, true); }with this:
if ($deactivate) { error_log('request function iwp_mmb_remove_site'); error_log(print_r($_REQUEST,true)); deactivate_plugins($plugin_slug, true); }– Open the file wp-content/plugins/iwp-client/installer.class.php.
At line 1138 you should find the function edit_plugins
function edit_plugins($args) { ... case 'deactivate': $result = deactivate_plugins(array( $item['path'] )); break; ... return $return; }Replace this:
case 'deactivate': $result = deactivate_plugins(array( $item['path'] )); break;with this:
case 'deactivate': error_log('request function edit_plugins'); error_log(print_r($_REQUEST,true)); $result = deactivate_plugins(array( $item['path'] )); break;– Activate Freesoul Deactivate Plugins
– Try to reproduce the same problem. Do all the actions you did before you saw the issue.
– Provide me with all that you see in the file wp-content/debug.logIf something is not clear let me know
-
This reply was modified 4 years, 3 months ago by
Jose Mortellaro.
-
This reply was modified 4 years, 3 months ago by
Jose Mortellaro.
Please change also the following code.
– Open the file wp-content/plugins/iwp-client/init.php
You will find the function iwp_mmb_set_plugin_priority at line 3232
at line 3250 replace this:
array_unshift($activePlugins, $pluginBasename); update_option('active_plugins', array_values($activePlugins));with this:
error_log('request function iwp_mmb_set_plugin_priority'); error_log(print_r($_REQUEST,true)); array_unshift($activePlugins, $pluginBasename); update_option('active_plugins', array_values($activePlugins));If you do what was suggested in my previous comment and the changes above, we should find the information we need in the file wp-content/debug.log if you trigger the problem again.
Let me know
Hi @giuse,
This is the debug log:
[17-Feb-2022 02:54:34 UTC] request function iwp_mmb_set_plugin_priority [17-Feb-2022 02:54:34 UTC] Array ( ) [17-Feb-2022 02:54:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /mnt/volume-sgp1-01/dev.digitalhitmen.com.au/public_html/chriskitchen/wp-content/plugins/eltdf-core/core-dashboard/sub-pages/import/import.php on line 283 [17-Feb-2022 02:54:35 UTC] request function iwp_mmb_set_plugin_priority [17-Feb-2022 02:54:35 UTC] Array ( [doing_wp_cron] => 1645066475.1366930007934570312500 ) [17-Feb-2022 02:54:35 UTC] PHP Notice: Trying to access array offset on value of type bool in /mnt/volume-sgp1-01/dev.digitalhitmen.com.au/public_html/chriskitchen/wp-content/themes/sweettooth/vc-templates/vc_row.php on line 265 [17-Feb-2022 02:54:35 UTC] PHP Notice: Trying to access array offset on value of type bool in /mnt/volume-sgp1-01/dev.digitalhitmen.com.au/public_html/chriskitchen/wp-content/themes/sweettooth/vc-templates/vc_row.php on line 265 [17-Feb-2022 02:54:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /mnt/volume-sgp1-01/dev.digitalhitmen.com.au/public_html/chriskitchen/wp-content/plugins/eltdf-core/core-dashboard/sub-pages/import/import.php on line 283 [17-Feb-2022 02:54:37 UTC] request function iwp_mmb_set_plugin_priority [17-Feb-2022 02:54:37 UTC] Array ( [plugin_status] => all [paged] => 1 [s] => ) [17-Feb-2022 02:54:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /mnt/volume-sgp1-01/dev.digitalhitmen.com.au/public_html/chriskitchen/wp-content/plugins/eltdf-core/core-dashboard/sub-pages/import/import.php on line 283You can re produce by your self following these steps:
- Install FDP and InfiniteWP – Client plugin (don’t need to connect InfiniteWP account).
- Disable some plugins on Homepage.
- Try to access homepage on frontend.
- Go to plugin list in the backend, the list plugins disabled above on homepage now completely deactive sitewide.
Regards,
QuanHi @quanle1003 thank you very much for your detailed information.
Thanks to your steps I was able to reproduce the problem and solve it on my testing installation.
Is it possible for you to test the beta version 1.8.9.0.4.1? You can download it from here:
https://downloads.wp.xz.cn/plugin/freesoul-deactivate-plugins.1.8.9.0.4.1.zip
You should upload the zip from the page of plugins, but if for any reason you prefer to use FTP, remember to deactivate and activate again Freesoul Deactivate Plugins. In that case, you would need it to update the mu-plugin included in wp-content/mu-plugins.
Please, let me know if you still have the same issue.
-
This reply was modified 4 years, 3 months ago by
Jose Mortellaro.
-
This reply was modified 4 years, 3 months ago by
Jose Mortellaro.
Hi @giuse,
You’re brilliant!
I tested a few sites and they are working well now. Could you please release this version soon, so I can update a lot of my websites?
Thank you so much,
QuanHi @quanle1003 many thanks to you!
Perfect. Discovering this issue was very important. Really thank you for reporting this bug.
I’ve right now published the new version 1.8.9.0.5.Jose
-
This reply was modified 4 years, 3 months ago by
The topic ‘Plugins Completely Deactivate on Sitewide’ is closed to new replies.