{"action":"created","issue":{"url":"https://api.github.com/repos/blind-coder/rcmcarddav/issues/95","labels_url":"https://api.github.com/repos/blind-coder/rcmcarddav/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/blind-coder/rcmcarddav/issues/95/comments","events_url":"https://api.github.com/repos/blind-coder/rcmcarddav/issues/95/events","html_url":"https://github.com/blind-coder/rcmcarddav/issues/95","id":68448523,"number":95,"title":"Blank page after plugin install","user":{"login":"realriot","id":4300902,"avatar_url":"https://avatars.githubusercontent.com/u/4300902?v=3","gravatar_id":"","url":"https://api.github.com/users/realriot","html_url":"https://github.com/realriot","followers_url":"https://api.github.com/users/realriot/followers","following_url":"https://api.github.com/users/realriot/following{/other_user}","gists_url":"https://api.github.com/users/realriot/gists{/gist_id}","starred_url":"https://api.github.com/users/realriot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/realriot/subscriptions","organizations_url":"https://api.github.com/users/realriot/orgs","repos_url":"https://api.github.com/users/realriot/repos","events_url":"https://api.github.com/users/realriot/events{/privacy}","received_events_url":"https://api.github.com/users/realriot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-04-14T17:24:16Z","updated_at":"2015-04-16T00:47:21Z","closed_at":null,"body":"- Added \"roundcube/carddav\": \"dev-issue_54\" to composer.json\r\n- Installed plugin with php composer.phar install\r\n- Plugin activated in config/config.inc.php\r\n\r\nAfter calling the roundcube http://mail.mydomain.de the site remains empty\r\nWithin logs/errors I find:\r\n\r\n[14-Apr-2015 19:19:23 Europe/Berlin] PHP Fatal error:  require_once(): Failed opening required '/Library/Server/Web/Data/Sites/mail.mydomain.de/plugins/carddav/vendor/autoload.php' (include_path='/Library/Server/Web/Data/Sites/mail.mydomain.de/vendor/pear/pear_exception:/Library/Server/Web/Data/Sites/mail.mydomain.de/vendor/pear/mail_mime:/Library/Server/Web/Data/Sites/mail.mydomain.de/vendor/pear/net_smtp:/Library/Server/Web/Data/Sites/mail.mydomain.de/vendor/pear-pear.php.net/Auth_SASL:/Library/Server/Web/Data/Sites/mail.mydomain.de/vendor/pear-pear.php.net/Net_IDNA2:/Library/Server/Web/Data/Sites/mail.mydomain.de/vendor/pear/mail_mime-decode:/Library/Server/Web/Data/Sites/mail.mydomain.de/vendor/pear-pear.php.net/Console_Getopt:/Library/Server/Web/Data/Sites/mail.mydomain.de/vendor/pear-pear.php.net/Structures_Graph:/Library/Server/Web/Data/Sites/mail.mydomain.de/vendor/pear-pear.php.net/XML_Util:/Library/Server/Web/Data/Sites/mail.mydomain.de/vendor/pear-pear.php.net/PEAR:/Library/Server/Web/Data/Sites/mail.mydomain.de/vendor/pear-pear.php.net/Net_Socket:/Library/Server/ in /Library/Server/Web/Data/Sites/mail.mydomain.de/plugins/carddav/carddav_common.php on line 22\r\n"},"comment":{"url":"https://api.github.com/repos/blind-coder/rcmcarddav/issues/comments/93607657","html_url":"https://github.com/blind-coder/rcmcarddav/issues/95#issuecomment-93607657","issue_url":"https://api.github.com/repos/blind-coder/rcmcarddav/issues/95","id":93607657,"user":{"login":"evert","id":178960,"avatar_url":"https://avatars.githubusercontent.com/u/178960?v=3","gravatar_id":"","url":"https://api.github.com/users/evert","html_url":"https://github.com/evert","followers_url":"https://api.github.com/users/evert/followers","following_url":"https://api.github.com/users/evert/following{/other_user}","gists_url":"https://api.github.com/users/evert/gists{/gist_id}","starred_url":"https://api.github.com/users/evert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evert/subscriptions","organizations_url":"https://api.github.com/users/evert/orgs","repos_url":"https://api.github.com/users/evert/repos","events_url":"https://api.github.com/users/evert/events{/privacy}","received_events_url":"https://api.github.com/users/evert/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T00:47:21Z","updated_at":"2015-04-16T00:47:21Z","body":"If I understand this issue correctly, the problem is not that 'dependencies of subdirectories aren't resolved'. Dependencies _of_ dependencies are correctly included.\r\n\r\nSo if this package is added to `require` by another package, it will just work. I think the problem is that this package wants to include an autoloader at a specific location when it shouldn't.\r\n\r\nThere's no great way to fix this, but the way I always fix this is by including `autoload.php` like this:\r\n\r\nhttps://github.com/fruux/sabre-vobject/blob/3.4/bin/vobject#L8\r\n\r\nTo fix this, add something similar to carddav.common.php to make this work.\r\n\r\nBut that's only the correct solution if rcmcarddav's php files are called directly, if they are not called directly but included by roundcube then that's not needed, as the autoloader is already active."}}