I've got all plugins updated by manually tweaking specific file and folder permissions for now......
However, just one plugin refuses to update.
ErrorException: copy(./.DS_Store) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied - library/AddOnInstaller/Model/AddOn.php:60
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(2, 'copy(./.DS_Stor...', '/var/www/vhosts...', 60, Array)
#1 /var/{PATHTOFORUM}/library/AddOnInstaller/Model/AddOn.php(60): copy('/var/www/vhosts...', './.DS_Store')
#2 /var/{PATHTOFORUM}/library/AddOnInstaller/ControllerAdmin/AddOn.php(249): AddOnInstaller_Model_AddOn->recursiveCopy('install/addons/...', '.')
#3 /var/{PATHTOFORUM}/library/XenForo/FrontController.php(347): AddOnInstaller_ControllerAdmin_AddOn->actionInstallUpgrade()
#4 /var/{PATHTOFORUM}/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /v{PATHTOFORUM}/admin.php(13): XenForo_FrontController->run()
#6 {main}
Request State
array(3) {
["url"] => string(66) "
http://www.talkphotography.co.uk/admin.php?add-ons/install-upgrade"
["_GET"] => array(1) {
["add-ons/install-upgrade"] => string(0) ""
}
["_POST"] => array(3) {
["resource_url"] => string(91) "
http://xenforo.com/community/resources/double-click-forum-icons-to-mark-forum-as-read.2298/"
["_xfToken"] => string(8) "********"
["_xfConfirm"] => string(1) "1"
}
}
I can't for the life of me find out *why* it's trying to copy a DS_Store file over. (Yes I'm running OSX). I've searched the server itself and removed all traces of any old .DS_Store files that were lingering around from old uploads just incase.
Also, I can't find out *where* it's trying to copy due to XenForo condensing the path in the stack trace.
Admittedly this is now outside the remit of your addon, do you know of a way I can find the full path of what its trying to copy and where from/to?
Edit....aaah just realised, the .DS_Store file might be from the addon's updated zip thats being downloaded from XenForo.
That still begs the question, where is it trying to copy it to? (So I can manually adjust permissions)