ryancramerdesign / ProcessWireUpgrade

Upgrade ProcessWire core to latest master or dev version automatically in the admin.
16 stars 6 forks source link

Error when opening "Upgrade available" link in new browser tab #5

Open adrianbj opened 9 years ago

adrianbj commented 9 years ago

If I have more than one upgrade to run I would like to be able to middle-click each one to open their upgrade processes in separate tabs so I don't need to navigate back to the main PWUpgrades page after each upgrade. The problem is that doing this results in this error when I go to upgrade from the new tab. I have tested this and it seems to happen every time.

TemplateFile: No download URL specified<pre>#0 [internal function]: ProcessModule->___executeDownload() #1 /wire/core/Wire.php(389): call_user_func_array(Array, Array) #2 /wire/core/Wire.php(344): Wire->runHooks('executeDownload', Array) #3 /wire/core/ProcessController.php(204): Wire->__call('executeDownload', Array) #4 /wire/core/ProcessController.php(204): ProcessModule->executeDownload() #5 [internal function]: ProcessController->___execute() #6 /wire/core/Wire.php(389): call_user_func_array(Array, Array) #7 /wire/core/Wire.php(344): Wire->runHooks('execute', Array) #8 /wire/core/admin.php(85): Wire->__call('execute', Array) #9 /wire/core/admin.php(85): ProcessController->execute() #10 /wire/modules/AdminTheme/AdminThemeDefault/controller.php(13): require('/wire...') #11 /site/templates/admin.php(18): require('/wire...') #12 /wire/core/TemplateFile.php(169): require('/site...') #13 [internal function]: TemplateFile->___render() #14 /wire/core/Wire.php(389): call_user_func_array(Array, Array) #15 /wire/core/Wire.php(344): Wire->runHooks('render', Array) #16 /wire/modules/PageRender.module(356): Wire->__call('render', Array) #17 /wire/modules/PageRender.module(356): TemplateFile->render() #18 [internal function]: PageRender->___renderPage(Object(HookEvent)) #19 /wire/core/Wire.php(389): call_user_func_array(Array, Array) #20 /wire/core/Wire.php(344): Wire->runHooks('renderPage', Array) #21 /wire/core/Wire.php(411): Wire->__call('renderPage', Array) #22 /wire/core/Wire.php(411): PageRender->renderPage(Object(HookEvent)) #23 /wire/core/Wire.php(344): Wire->runHooks('render', Array) #24 /wire/modules/Process/ProcessPageView.module(171): Wire->__call('render', Array) #25 /wire/modules/Process/ProcessPageView.module(171): Page->render() #26 [internal function]: ProcessPageView->___execute(true) #27 /wire/core/Wire.php(389): call_user_func_array(Array, Array) #28 /wire/core/Wire.php(344): Wire->runHooks('execute', Array) #29 /index.php(214): Wire->__call('execute', Array) #30 /index.php(214): ProcessPageView->execute(true) #31 {main}</pre>