ravin001
Forum Replies Created
-
Forum: Plugins
In reply to: [Jupiter X Core] Version 2.0.9 is broken@karimhossenbux Thanks!
They should have fixed it under a newer version.Forum: Plugins
In reply to: [404 Solution] Plugins Auto Updates stop workingGreat! Thanks, Aaron
We will let you know if we see any other issues or are able to help with contributions
Forum: Plugins
In reply to: [404 Solution] Plugins Auto Updates stop workingHi Aaron,
static function excludePluginsFromAutoUpdate($update, $item) { $pluginSlug404 = dirname(ABJ404_NAME); $pluginSlugWithPHP404 = $pluginSlug404 . '/' . basename(ABJ404_FILE); $itemSlug = property_exists($item, 'slug') ? $item->slug : '(default-value)'; $itemPlugin = property_exists($item, 'plugin') ? $item->plugin : '(default-value)'; $itemName = property_exists($item, 'Name') ? $item->Name : '(default-value)'; // if it's 404 solution then return false - do not update automatically. if ($pluginSlug404 == $itemSlug && $pluginSlugWithPHP404 == $itemPlugin && PLUGIN_NAME == $itemName) { $abj404logging = ABJ_404_Solution_Logging::getInstance(); $abj404logging->debugMessage("Disabled automatic update for a plugin" . " because it looks like " . PLUGIN_NAME . " (" . $itemSlug . "; " . $itemPlugin . "; " . $itemName . ")"); return false; } return null; }
I changed the code on Line 116 of 404-solution/includes/WordPress_Connector.php. Returning ‘null’ instead of ‘false’ for non 404 solution plugins.
I think what happens when you return true for all non 404 solution plugins is that it force enables auto updates.
To see what is happening first try with your current code
return true
and then try withreturn null
. You will see the difference it makes for other plugins installed when you look at the wordpress plugins page.Your current code is actually force enabling all non 404 solution plugins but for some reason the auto updates actually stop happening. Maybe a bug in wordpress core?
Regardless 404 solution plugin shouldn’t be force enabling auto updates for any other plugins.
Please let me know if this makes sense. Maybe I am missing something
Thanks for your help. Sorry for the delay.
Forum: Plugins
In reply to: [404 Solution] Plugins Auto Updates stop workingHi Aaron,
I have version 2.27.11 installed but it doesn’t seem to allow any manipulation of enabling/disabling auto-updates. It greys out the ‘Auto-updates enabled’ link and auto-updates links on the plugins become unclickable.
Here is the debug logs from the plugin:
2021-10-19 14:07:10 EDT (DEBUG): Processing request for action: (none) 2021-10-19 14:07:10 EDT (DEBUG): Displaying sub page: abj404_options 2021-10-19 14:07:18 EDT (DEBUG): Disabled automatic update for a plugin because it looks like 404 Solution (404-solution; 404-solution/404-solution.php; 404 Solution) 2021-10-19 14:07:29 EDT (DEBUG): Processing request for action: (none) 2021-10-19 14:07:29 EDT (DEBUG): No tab selected. Displaying the "redirects" tab. 2021-10-19 14:07:29 EDT (DEBUG): Displaying sub page: abj404_redirects 2021-10-19 14:07:29 EDT (DEBUG): Found 14 rows to display before log data and 14 rows to display after log data for page: abj404_redirects 2021-10-19 14:07:36 EDT (DEBUG): Processing request for action: (none) 2021-10-19 14:07:36 EDT (DEBUG): Displaying sub page: abj404_options 2021-10-19 14:07:52 EDT (DEBUG): Processing request for action: (none) 2021-10-19 14:07:52 EDT (DEBUG): Displaying sub page: abj404_debugfile