Install and Upgrade

Install and Upgrade 1.1.7 Patch Level 1

No permission to download
What's up with this? Fresh install of the plugin, getting this error spammed every few seconds.

194711
 
Looks like there's a leftover in the code that runs a Job that was deleted. You're still having the file from before the upgrade though, so it is wrongly executed. Delete src/addons/ThemeHouse/InstallAndUpgrade and reupload the add-on before doing a clean install. It'll error once after the installation and should work afterwards.
 
hi - i foolishly uploaded the latest version without reading update notes.
i am still on 2.0.x

In ACP i now get this & other errors , unable to load anything:
Code:
Exception: Could not find class ThemeHouse\InstallAndUpgrade\XF\Admin\Controller\AddOn when attempting to extend XF\Admin\Controller\AddOn in src/XF/Extension.php at line 174
XF\Extension->extendClass() in src/XF/App.php at line 2364
XF\App->extendClass() in src/XF/App.php at line 1238
XF\App->XF\{closure}() in src/XF/Container.php at line 228
XF\Container->create() in src/XF/App.php at line 2319
XF\App->controller() in src/XF/Mvc/Dispatcher.php at line 211
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1889
XF\App->run() in src/XF.php at line 328
XF::runApp() in admin.php at line 13

How do I uninstall the addon completely?
 
Last edited:
We just installed it in XF2.1 "testing forum" and got 2 server errors direct after install completed.

195241



195242


Code:
ErrorException: Template error: Cannot call method count on a non-object (array) src/XF/Template/Templater.php:963
Generated by: XXXXXX 9 Feb 2019 at 4:24 PM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', '/home/XXXX/...', 963, Array)
#1 src/XF/Template/Templater.php(963): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l1/s0/admin/th_iau_addon_install_upgrade.php(32): XF\Template\Templater->method(Array, 'count', Array)
#3 src/XF/Template/Templater.php(1294): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#4 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('th_iau_addon_in...', Array)
#5 src/XF/Mvc/Renderer/Json.php(84): XF\Template\Template->render()
#6 src/XF/Mvc/Renderer/Json.php(68): XF\Mvc\Renderer\Json->renderHtmlFallback('ThemeHouse\\Inst...', 'admin:th_iau_ad...', Array)
#7 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Json->renderView('ThemeHouse\\Inst...', 'admin:th_iau_ad...', Array)
#8 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#11 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#12 src/XF.php(390): XF\App->run()
#13 admin.php(13): XF::runApp('XF\\Admin\\App')
#14 {main}
Request state
array(4) {
  ["url"] => string(181) "/forum/admin.php?add-ons/th-install-upgrade&_xfRequestUri=%2Fforum%2Fadmin.php%3Fadd-ons%2F&_xfWithData=1&_xfToken=1549718653%2C149a8fcd86b19775fd438621c466221b&_xfResponseType=json"
  ["referrer"] => string(47) "https://www.XXXXX/forum/admin.php?add-ons/"
  ["_GET"] => array(5) {
    ["add-ons/th-install-upgrade"] => string(0) ""
    ["_xfRequestUri"] => string(25) "/forum/admin.php?add-ons/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1549718653,149a8fcd86b19775fd438621c466221b"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}
 
We just installed it in XF2.1 "testing forum" and got 2 server errors direct after install completed.

View attachment 195241



View attachment 195242


Code:
ErrorException: Template error: Cannot call method count on a non-object (array) src/XF/Template/Templater.php:963
Generated by: XXXXXX 9 Feb 2019 at 4:24 PM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', '/home/XXXX/...', 963, Array)
#1 src/XF/Template/Templater.php(963): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l1/s0/admin/th_iau_addon_install_upgrade.php(32): XF\Template\Templater->method(Array, 'count', Array)
#3 src/XF/Template/Templater.php(1294): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#4 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('th_iau_addon_in...', Array)
#5 src/XF/Mvc/Renderer/Json.php(84): XF\Template\Template->render()
#6 src/XF/Mvc/Renderer/Json.php(68): XF\Mvc\Renderer\Json->renderHtmlFallback('ThemeHouse\\Inst...', 'admin:th_iau_ad...', Array)
#7 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Json->renderView('ThemeHouse\\Inst...', 'admin:th_iau_ad...', Array)
#8 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#11 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#12 src/XF.php(390): XF\App->run()
#13 admin.php(13): XF::runApp('XF\\Admin\\App')
#14 {main}
Request state
array(4) {
  ["url"] => string(181) "/forum/admin.php?add-ons/th-install-upgrade&_xfRequestUri=%2Fforum%2Fadmin.php%3Fadd-ons%2F&_xfWithData=1&_xfToken=1549718653%2C149a8fcd86b19775fd438621c466221b&_xfResponseType=json"
  ["referrer"] => string(47) "https://www.XXXXX/forum/admin.php?add-ons/"
  ["_GET"] => array(5) {
    ["add-ons/th-install-upgrade"] => string(0) ""
    ["_xfRequestUri"] => string(25) "/forum/admin.php?add-ons/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1549718653,149a8fcd86b19775fd438621c466221b"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}
This is safe to ignore for now, a fix has been implemented and will be included in the next release ;)
 
Getting this error when trying to install from URL (Xenforo Resource Manager):

Code:
Error: Call to a member function getAttribute() on null in src\addons\ThemeHouse\InstallAndUpgrade\InstallAndUpgrade\XF2RM.php at line 58
ThemeHouse\InstallAndUpgrade\InstallAndUpgrade\XF2RM->authenticate() in src\addons\ThemeHouse\InstallAndUpgrade\InstallAndUpgrade\XF2RM.php at line 188
ThemeHouse\InstallAndUpgrade\InstallAndUpgrade\XF2RM->createProductFromUrl() in src\addons\ThemeHouse\InstallAndUpgrade\InstallAndUpgrade\XF2RM.php at line 83
ThemeHouse\InstallAndUpgrade\InstallAndUpgrade\XF2RM->createAddOnProductFromUrl() in src\addons\ThemeHouse\InstallAndUpgrade\XF\Admin\Controller\AddOn.php at line 195
ThemeHouse\InstallAndUpgrade\XF\Admin\Controller\AddOn->ThemeHouse\InstallAndUpgrade\XF\Admin\Controller\{closure}() in src\addons\ThemeHouse\InstallAndUpgrade\ControllerPlugin\Profile.php at line 76
ThemeHouse\InstallAndUpgrade\ControllerPlugin\Profile->handleReply() in src\addons\ThemeHouse\InstallAndUpgrade\XF\Admin\Controller\AddOn.php at line 201
ThemeHouse\InstallAndUpgrade\XF\Admin\Controller\AddOn->actionThInstallUpgradeUrl() in src\XF\Mvc\Dispatcher.php at line 321
XF\Mvc\Dispatcher->dispatchClass() in src\XF\Mvc\Dispatcher.php at line 245
XF\Mvc\Dispatcher->dispatchFromMatch() in src\XF\Mvc\Dispatcher.php at line 100
XF\Mvc\Dispatcher->dispatchLoop() in src\XF\Mvc\Dispatcher.php at line 50
XF\Mvc\Dispatcher->run() in src\XF\App.php at line 2177
XF\App->run() in src\XF.php at line 390
XF::runApp() in admin.php at line 13

I double checked the profile login credentials, disabled all addons and uninstalled/reinstalled the addon, checked File Health Check as well.

Thanks for any advice,
 
Which URL did you use per resource. The download button URL? The resource overview? Any other?
Sorry Lukas, I am using the resource overview URL, such as:
https://xenforo.com/community/resources/al-original-poster-highlight.6134/
 
If I understand the documentation correctly, I need to reinstall my current addons so this adds their entry to the database to automatically check if there's an update, correct?

Trying to reinstall multiple addons from URL. Regardless of which ones I try and in which order, the first one installs fine and all subsequent ones throw the error "Exception: The zip isn't an addon".

If I add them one at a time it works fine.

195710
 
The batch download probably timed out. Either due to a slow connection or limited execution time. I'd recommend adding them one at a time.
 
The batch download probably timed out. Either due to a slow connection or limited execution time. I'd recommend adding them one at a time.

That's a lot more work :)

Is there a server setting I might change to help that? It happens even when I try to add two at a time.
 
You could try raising phps max_execution_time, but I'd recommend to just swallow the pill, do them all separately once and call it a day.
 
Top Bottom