Add-on Install & Upgrade

Add-on Install & Upgrade 1.4.3

No permission to download
I get this when I try to install any add-on which is Add-on installer compatible:
Code:
ZipArchive::extractTo(): Permission denied
 
XenForo_Application::handlePhpError()
ZipArchive->extractTo() in AddOnInstaller/ControllerAdmin/AddOn.php at line 21
AddOnInstaller_ControllerAdmin_AddOn->actionAutoInstall() in XenForo/FrontController.php at line 310
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
XenForo_FrontController->run() in /home/admin/domains/orpheusdroid.com/public_html/forum/admin.php at line 13

May I know what would cause this and solution for this?:)
 
I don't know to be honest.

I can only support issues with the add on itself. This is a server configuration issue.

It's something to do with whatever user your web server runs as doesn't have permission to write files to your forum directories.
 
I get this when I try to install any add-on which is Add-on installer compatible:
Code:
ZipArchive::extractTo(): Permission denied
 
XenForo_Application::handlePhpError()
ZipArchive->extractTo() in AddOnInstaller/ControllerAdmin/AddOn.php at line 21
AddOnInstaller_ControllerAdmin_AddOn->actionAutoInstall() in XenForo/FrontController.php at line 310
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
XenForo_FrontController->run() in /home/admin/domains/orpheusdroid.com/public_html/forum/admin.php at line 13

May I know what would cause this and solution for this?:)
My guess would be you're in the same situation as me where the files are owned by your Linux user ("admin" in your case it looks like) whereas the web server (Apache?) runs as a different user ("www-data"?) that doesn't have permissions to write to the library, js, styles folders etc and the files within them.
 
The ZipArchive::extractTo() happens when you don't have the proper user:group assigned to run the PHP files basically and create new folders, etc. What you want to do is either run PHP as suPHP or FCGI so that it can automatically work around with your files. With DSO and CGI I think it is you won't be able to use this addon.
 
My guess would be you're in the same situation as me where the files are owned by your Linux user ("admin" in your case it looks like) whereas the web server (Apache?) runs as a different user ("www-data"?) that doesn't have permissions to write to the library, js, styles folders etc and the files within them.
Yes.It is indeed admin.Gonna chown it to apache and see if it fixes the problem ;)
 
Thank you so much for donating. It is always appreciated!

Introduction

Add-on Install & Upgrade is an invaluable tool for Admins as it aims to make every aspect of add-on management as easy as possible. This includes installation by ZIP files, installation direct from the XenForo Resource Manager or the "good old XML import" method. Finally, it now includes a Add-on Update Manager!

Whereas the previous version of this add-on required add-ons to be packaged in a specific way, the current version contains logic to scan the files and copy the correct files to the correct directories.

Install / Upgrade Add-Ons

UxZLFTF.png

Install from ZIP file/s
f1Yf5HP.png

With Install & Upgrade you can upload either a single ZIP file or multiple ZIP files.

Install & Upgrade will work with any add-on (no specific directory structure required). There's no separate page or form to install upgrades either. If the add-on is already installed, it will be detected and perform an upgrade instead.

What's the benefit of installing from multiple ZIP files? Only one cache rebuild!


Install direct from XenForo.com Resource Manager
zUnJwvp.png


If you provide a Resource Manager URL, your XenForo username and password then you will be able to install an add-on entirely remotely.

The latest version of the add-on is grabbed from the Resource Manager and installed automatically. Once again, if the add-on is already installed it will be be upgraded automatically to the latest version.

Oh... and we keep the Resource Manager URL for another purpose... more on that later...


I'm old school
DrSio6w.png


Just in case one of the above methods isn't working, you can always revert back to the old method. If you have uploaded the add-on files already, simply provide an XML file to install as normal.

One difference is, if the add-on is already installed it will be upgraded for you instead (no need to go to another page to install an upgrade).


Update Checker
nOGq4jt.png


Remember I said we kept the Resource Manager URL? Well, this is one way we can automatically check add-ons for updates.

If you install an add-on using the Resource Manager URL it will be automatically checked for updates.

Alternatively, you can configure the updates for each add-on manually.

EOmyYh8.png


An add-on is checked for updates by checking the version number of the released resource compared to the version string of your add-on.

If there is an update available you will see an Upgrade link, and clicking the Check For Update icon
check.png
will open the details of the update:

H1FY86M.png


Sometimes, an update isn't required. You may wish to skip an update completely or maybe the add-on developer didn't update the XML file with the latest version (bad practise, I feel).

Therefore, you can Ignore an update completely. This will skip the update until the next time the version number in the RM changes.

Add-ons that have a Resource Manager URL have this icon:
allow.png


Add-ons you haven't yet configured have this icon:
deny.png


If there are updates available, it is discreetly marked in the Navigation menu:
zaAiDrf.png



Known Issues
Please be aware of these known issues:
  • Some server configurations may not support Add-on Install & Upgrade
    • If you get permissions errors, please contact your host or server person.
    • The general problem is usually the user which your web server runs as doesn't have permission on the file system to copy, delete or create files.
    • A solution for this is completely beyond the scope of any developer. A server configuration change is required.
  • If you receive an error relating to the ZipArchive class, this means your PHP wasn't compiled with this (pretty standard) feature. Consult your host or server person.
  • "Please enter a valid callback method" will intermittently occur when the files have not yet finished copying before the XML begins to import. Just press back on your browser and click the Install & Upgrade button again.
  • Due to many core changes to original files, it is NOT possible to upgrade this add-on using the old version of the Add-on Installer.
Installation

DO NOT UPGRADE USING THE ORIGINAL ADD-ON INSTALLER.

Instead:
  1. Download the zip file.
  2. Extract its contents to your hard drive.
  3. Upload the contents of the upload folder to the root of your XenForo installation.
  4. Complete install via the Admin CP using the provided XML file.
 
Ah upgrade worked great! I don't think the Update Check is working though, it says [0] but I think I am using at least 1 addon that is an old version...
 
Just upgraded this, and here is what I get when it finishes rebuilding the cache (and now any time I try to go to the admin page)
Code:
An exception occurred: Mysqli prepare error: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '=' in /home/tdperry/public_html/library/Zend/Db/Statement/Mysqli.php on line 77
 
Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
Zend_Db_Adapter_Abstract->query() in XenForo/Model.php at line 218
XenForo_Model->fetchAllKeyed() in AddOnInstaller/Model/AddOn.php at line 280
AddOnInstaller_Model_AddOn->getAllUpdateChecks() in AddOnInstaller/Listener.php at line 25
AddOnInstaller_Listener::templatePostRender()
call_user_func_array() in XenForo/CodeEvent.php at line 54
XenForo_CodeEvent::fire() in XenForo/Template/Abstract.php at line 195
XenForo_Template_Abstract->render() in XenForo/ViewRenderer/HtmlAdmin.php at line 127
XenForo_ViewRenderer_HtmlAdmin->renderContainer() in XenForo/FrontController.php at line 565
XenForo_FrontController->renderView() in XenForo/FrontController.php at line 156
XenForo_FrontController->run() in /home/tdperry/public_html/admin.php at line 13
I disabled all add-ons via the config.php and have uninstalled it and am going to try a fresh install instead of a upgrade. I've got a feeling it's because Hostgator is on 5.2.x of PHP, and you can set it up to allow up to 5.3 in your .htaccess file (but it may not be working).

Here is the server error log
Code:
Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '=' - library/Zend/Db/Statement/Mysqli.php:77
Generated By: Tracy, A moment ago
Stack Trace
#0 /home/tdperry/public_html/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('????SELECT addo...')
#1 /home/tdperry/public_html/library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), '????SELECT addo...')
#2 /home/tdperry/public_html/library/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('????SELECT addo...')
#3 /home/tdperry/public_html/library/XenForo/Model.php(218): Zend_Db_Adapter_Abstract->query('????SELECT addo...', Array, 2)
#4 /home/tdperry/public_html/library/AddOnInstaller/Model/AddOn.php(280): XenForo_Model->fetchAllKeyed('????SELECT addo...', 'addon_id')
#5 /home/tdperry/public_html/library/AddOnInstaller/Listener.php(25): AddOnInstaller_Model_AddOn->getAllUpdateChecks()
#6 [internal function]: AddOnInstaller_Listener::templatePostRender('PAGE_CONTAINER', '<!DOCTYPE html>...', Array, Object(XenForo_Template_Admin))
#7 /home/tdperry/public_html/library/XenForo/CodeEvent.php(54): call_user_func_array(Array, Array)
#8 /home/tdperry/public_html/library/XenForo/Template/Abstract.php(195): XenForo_CodeEvent::fire('template_post_r...', Array)
#9 /home/tdperry/public_html/library/XenForo/ViewRenderer/HtmlAdmin.php(127): XenForo_Template_Abstract->render()
#10 /home/tdperry/public_html/library/XenForo/FrontController.php(565): XenForo_ViewRenderer_HtmlAdmin->renderContainer(Object(XenForo_Template_Admin), Array)
#11 /home/tdperry/public_html/library/XenForo/FrontController.php(156): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlAdmin), Array)
#12 /home/tdperry/public_html/admin.php(13): XenForo_FrontController->run()
#13 {main}
Request State
array(3) {
  ["url"] => string(41) "http://twowheeldemon.com/admin.php?tools/"
  ["_GET"] => array(1) {
    ["tools/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 
Back
Top Bottom