I've noticed a few of AndyB's addons erroring out on a batch update of multiple addons. I haven't paid attention to which ones but I've had other (not andy's) error out As well just never looked into why. And when I say error I mean they just don't install/update. I'll have to look at my folders now
It seems that if you run multiple updates and one doesn't conform or throws an error, it won't check the rest of the zip files, it stops and installs the ones the were ok up to the error.
Then if you go to run the individual zip that errored, it still will error and that one you have to run manually.
Confirmed this myself today after I recompiled PHP to add the zip extension on my VPS and then ran a handful of addons at the same time, it did not choke on @AndyB's Change Author but it did unzip the files into the /library/library/AndyB and library/library did not exist prior to just now. I now shows v2.5 is installed but the files are in the wrong location?@AndyB 's add-ons tend to be packaged in a way which makes using an add-on installer quite difficult.
But the 'library/library' thing definitely looks like a bug.
Server Error Log
Error Info
ErrorException: DOMDocument::loadHTML() expects parameter 1 to be a valid path, string given - library/Zend/Dom/Query.php:271
Generated By: Hondasxs, 17 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(2, 'DOMDocument::lo...', '/home/hondasxs/...', 271, Array)
#1 /home/hondasxs/public_html/library/Zend/Dom/Query.php(271): DOMDocument->loadHTML('PK\x03\x04\x14\x00\x00\x00\x00\x00\xF2J!G\x00...')
#2 /home/hondasxs/public_html/library/Zend/Dom/Query.php(231): Zend_Dom_Query->queryXpath('//html//*[conta...', 'html .LoggedIn')
#3 /home/hondasxs/public_html/library/AddOnInstaller/ControllerAdmin/AddOn.php(111): Zend_Dom_Query->query('html .LoggedIn')
#4 /home/hondasxs/public_html/library/XenForo/FrontController.php(347): AddOnInstaller_ControllerAdmin_AddOn->actionInstallUpgrade()
#5 /home/hondasxs/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#6 /home/hondasxs/public_html/admin.php(13): XenForo_FrontController->run()
#7 {main}
Request State
array(3) {
["url"] => string(53) "http://hondasxs.com/admin.php?add-ons/install-upgrade"
["_GET"] => array(1) {
["add-ons/install-upgrade"] => string(0) ""
}
["_POST"] => array(4) {
["resource_url"] => string(89) "https://xenforo.com/community/resources/solidmean-forumbackup.3605/download?version=16297"
["server_file_oldskool"] => string(0) ""
["_xfConfirm"] => string(1) "1"
["_xfToken"] => string(8) "********"
}
}
Error Info
Exception: String could not be parsed as XML - library/AddOnInstaller/Model/AddOn.php:152
Generated By: DaveM, 3 minutes ago
Stack Trace
#0 /var/www/clients/client0/web1/web/library/AddOnInstaller/Model/AddOn.php(0): SimpleXMLElement->__construct()
#1 /var/www/clients/client0/web1/web/library/AddOnInstaller/ControllerAdmin/AddOn.php(27): AddOnInstaller_Model_AddOn->getXmlType('/var/www/client...')
#2 /var/www/clients/client0/web1/web/library/XenForo/FrontController.php(347): AddOnInstaller_ControllerAdmin_AddOn->actionInstallUpgrade()
#3 /var/www/clients/client0/web1/web/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /var/www/clients/client0/web1/web/admin.php(13): XenForo_FrontController->run()
#5 {main}
Request State
array(3) {
["url"] => string(60) "http://www.triumphtalk.com/admin.php?add-ons/install-upgrade"
["_GET"] => array(1) {
["add-ons/install-upgrade"] => string(0) ""
}
["_POST"] => array(4) {
["resource_url"] => string(67) "https://xenforo.com/community/resources/xen-tr-who-has-visited.502/"
["server_file_oldskool"] => string(0) ""
["_xfConfirm"] => string(1) "1"
["_xfToken"] => string(8) "********"
}
}
Yes, working fine.Does this work ok with 1.5?
@Chris D this above question is what I asked before. When the files are installed in the library, doesn't the install procedure "lock in" on the file location where they are uploaded? So if I have newer files in library/library/xyzaddon after the upgrade via this addon, and older files in library/xyzaddon that were previously installed manually, and I delete the /library/library/xyzaddon files (which are more recent) that to me tells me that something is going to go haywire.I guess I don't fully understand how the placement of files affects XF running them. So when I upload the files via FTP and then run the xml, it knows where the files are supposed to be (in this case, /library/AndyB/etc). But when I upload the zip file through this addon, it puts them in a different location and then runs the xml, but does the xml re-adjust to run on the files in the actual location they were just placed?
Maybe it only runs when you previously installed the addon old skool, so it puts the files in the wrong location and then runs the xml on the files in the previous location, and updates the version number incorrectly?
Either way, if I just delete the files that were uploaded, and I delete the wrong ones, won't that cause XF to choke? Maybe i don't understand how addons and how the associated files that you upload work - they do have to stay there (in the uploaded location) for the addon to work, don't they? I know you can delete them after you uninstall...
We use essential cookies to make this site work, and optional cookies to enhance your experience.