Check Add-On update [Deleted]

  • Thread starter Thread starter Deleted member 232995
  • Start date Start date
I've just installed it and run the add-on and so far I'm impressed (y)
I thought I was up to date with my installed add-ons but it turned out I'd missed several
 
Would it be possible to add an option to ignore an update? There are some add-ons which I think have gone beyond what they were originally designed for and as such have purposely ignored further updates. It would be great if 'Go to update' also had the option of 'Ignore update'

Thanks
 
Would it be possible to add an option to ignore an update? There are some add-ons which I think have gone beyond what they were originally designed for and as such have purposely ignored further updates. It would be great if 'Go to update' also had the option of 'Ignore update'

Thanks
Very good idea. Noted.
 
This is a great add-on, thank you for this!

Is there a reason, that the following add-ons are marked as "Is permanently not supported", although they are listed in the resource manager with their correct version?

 
This is because I didn't have an add-on ID and the one who sent it in gave me an external URL instead of the one from XFRM.... I have changed this. Thanks.
 
Ops, this doesn't work with proxy enabled on config.php?

I got this on my admin homepage.

1663173946594.webp
 
And my addons list is blank. :|
I guess the only way to fix it is to disable all addon via config.php :(
 
Same error even without proxy set on config.php

PHP:
Server error log
GuzzleHttp\Exception\ConnectException: Macro admin:addon_list_macros :: addon_list_item_menu() error: cURL error 35: Peer reports incompatible or unsupported protocol version. (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:200
Generated by: Admin Sep 15, 2022 at 12:53 AM

Stack trace
#0 src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(155): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(105): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 src/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#3 src/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#4 src/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#5 src/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(66): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#6 src/vendor/guzzlehttp/guzzle/src/Middleware.php(29): GuzzleHttp\PrepareBodyMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#7 src/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(70): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#8 src/vendor/guzzlehttp/guzzle/src/Middleware.php(59): GuzzleHttp\RedirectMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#9 src/vendor/guzzlehttp/guzzle/src/HandlerStack.php(71): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#10 src/vendor/guzzlehttp/guzzle/src/Client.php(351): GuzzleHttp\HandlerStack->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#11 src/vendor/guzzlehttp/guzzle/src/Client.php(162): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
#12 src/vendor/guzzlehttp/guzzle/src/Client.php(182): GuzzleHttp\Client->requestAsync('post', Object(GuzzleHttp\Psr7\Uri), Array)
#13 src/vendor/guzzlehttp/guzzle/src/Client.php(95): GuzzleHttp\Client->request('post', 'https://xtest.d...', Array)
#14 src/addons/X0815/ChkAddOnUpdate/Repository/Update.php(18): GuzzleHttp\Client->__call('post', Array)
#15 src/addons/X0815/ChkAddOnUpdate/Repository/Update.php(32): X0815\ChkAddOnUpdate\Repository\Update->getCacheData()
#16 src/addons/X0815/ChkAddOnUpdate/Listener.php(22): X0815\ChkAddOnUpdate\Repository\Update->rebuildCache()
#17 src/XF/App.php(1802): X0815\ChkAddOnUpdate\Listener::X0815\ChkAddOnUpdate\{closure}(Object(XF\Container), 'addonUpdates')
#18 src/XF/Container.php(31): XF\App->XF\{closure}(Object(XF\Container))
#19 src/XF/App.php(2374): XF\Container->offsetGet('addonUpdates')
#20 src/addons/X0815/ChkAddOnUpdate/XF/Entity/AddOn.php(11): XF\App->get('addonUpdates')
#21 src/addons/X0815/ChkAddOnUpdate/XF/Entity/AddOn.php(28): X0815\ChkAddOnUpdate\XF\Entity\AddOn->getUpdateAddon()
#22 src/XF/Template/Templater.php(1191): X0815\ChkAddOnUpdate\XF\Entity\AddOn->isUnsupported()
#23 internal_data/code_cache/templates/l1/s0/admin/addon_list_macros.php(294): XF\Template\Templater->method(Object(X0815\ChkAddOnUpdate\XF\Entity\AddOn), 'isUnsupported', Array)
#24 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#25 src/addons/MaZ/AMP/XF/Template/Templater.php(139): XF\Template\Templater->callMacro('addon_list_macr...', 'addon_list_item...', Array, Array, Object(XF\Template\MacroState))
#26 internal_data/code_cache/templates/l1/s0/admin/addon_list_macros.php(116): MaZ\AMP\XF\Template\Templater->callMacro(NULL, 'addon_list_item...', Array, Array)
#27 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#28 src/addons/MaZ/AMP/XF/Template/Templater.php(139): XF\Template\Templater->callMacro('addon_list_macr...', 'addon_list_item', Array, Array, Object(XF\Template\MacroState))
#29 internal_data/code_cache/templates/l1/s0/admin/addon_list_macros.php(79): MaZ\AMP\XF\Template\Templater->callMacro(NULL, 'addon_list_item', Array, Array)
#30 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#31 src/addons/MaZ/AMP/XF/Template/Templater.php(139): XF\Template\Templater->callMacro('addon_list_macr...', 'addon_list_bloc...', Array, Array, Object(XF\Template\MacroState))
#32 internal_data/code_cache/templates/l1/s0/admin/addon_list.php(96): MaZ\AMP\XF\Template\Templater->callMacro('addon_list_macr...', 'addon_list_bloc...', Array, Array)
#33 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#34 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('addon_list', Array, true, NULL)
#35 src/XF/Template/Template.php(24): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('admin:addon_lis...', Array)
#36 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#37 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:AddOn\\Listin...', 'admin:addon_lis...', Array)
#38 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#39 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#40 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#41 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#42 src/XF.php(524): XF\App->run()
#43 admin.php(13): XF::runApp('XF\\Admin\\App')
#44 {main}

Request state
array(4) {
  ["url"] => string(19) "/admin.php?add-ons/"
  ["referrer"] => string(35) "https://xf.com/admin.php?pwa/"
  ["_GET"] => array(1) {
    ["add-ons/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 
I had to disable via CLI.
Bash:
php cmd.php xf:addon-disable X0815/ChkAddOnUpdate

You didn't have to go to all that trouble! Simply decativate the listener via Config.
As for this error (although it was posted 2 times it is the same) I can not say anything yet... Since I have to research first.
 
  • Like
Reactions: rdn
Some of my sites have a very large number of addons. Upgrading addons one by one is not doable. To cater to this, I have the following suggestion:

Please consider to add a bulk upgrade function.
Here is how it could work:
  1. Display a tickbox for each available upgrade.
  2. The admin can check the boxes of the addons that he/she wants to upgrade.
  3. Display a Bulk Upgrade button that can be clicked IF boxes have been ticked.
  4. If clicked then perform the upgrades in the same way that the 'upgrade from archive' function normally does when multiple files are selected.
 
Top Bottom