{"action":"opened","issue":{"url":"https://api.github.com/repos/humhub/humhub/issues/724","labels_url":"https://api.github.com/repos/humhub/humhub/issues/724/labels{/name}","comments_url":"https://api.github.com/repos/humhub/humhub/issues/724/comments","events_url":"https://api.github.com/repos/humhub/humhub/issues/724/events","html_url":"https://github.com/humhub/humhub/issues/724","id":57663200,"number":724,"title":"Problem in module \"Most active users\"","user":{"login":"drpacheco","id":1827229,"avatar_url":"https://avatars.githubusercontent.com/u/1827229?v=3","gravatar_id":"","url":"https://api.github.com/users/drpacheco","html_url":"https://github.com/drpacheco","followers_url":"https://api.github.com/users/drpacheco/followers","following_url":"https://api.github.com/users/drpacheco/following{/other_user}","gists_url":"https://api.github.com/users/drpacheco/gists{/gist_id}","starred_url":"https://api.github.com/users/drpacheco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drpacheco/subscriptions","organizations_url":"https://api.github.com/users/drpacheco/orgs","repos_url":"https://api.github.com/users/drpacheco/repos","events_url":"https://api.github.com/users/drpacheco/events{/privacy}","received_events_url":"https://api.github.com/users/drpacheco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-13T22:33:44Z","updated_at":"2015-02-13T22:33:44Z","closed_at":null,"body":"A problem occurs when using the module \" mostactiveusers,\" the .zip file is in trouble someone already managed to activate with success?\r\n\r\n    PHP - Version - 5.3.10-1 ubuntu3.15;\r\n\r\nDetals: \r\nThe problem occurs when trying to install the module; \r\nError below:\r\nPHP warning\r\n\r\nZipArchive::extractTo(/var/www/humhub/protected/modules/mostactiveusers/views/mostActiveUsers/list.php): failed to open stream: No such file or directory\r\n\r\n/var/www/humhub/protected/modules_core/admin/libs/OnlineModuleManager.php(90)\r\n\r\n078             $response = $http->request();\r\n079             file_put_contents($downloadTargetFileName, $response->getBody());\r\n080         } catch (Exception $ex) {\r\n081             throw new CHttpException('500', Yii::t('AdminModule.libs_OnlineModuleManager', 'Module download failed! (%error%)', array('%error%' => $ex->getMessage())));\r\n082         }\r\n083 \r\n084         // Extract Package\r\n085         if (file_exists($downloadTargetFileName)) {\r\n086             // Unzip\r\n087             $zip = new ZipArchive;\r\n088             $res = $zip->open($downloadTargetFileName);\r\n089             if ($res === TRUE) {\r\n090                 $zip->extractTo($modulePath);\r\n091                 $zip->close();\r\n092             } else {\r\n093                 throw new CHttpException('500', Yii::t('AdminModule.libs_OnlineModuleManager', 'Could not extract module!'));\r\n094             }\r\n095         } else {\r\n096             throw new CHttpException('500', Yii::t('AdminModule.libs_OnlineModuleManager', 'Download of module failed!'));\r\n097         }\r\n098 \r\n099         ModuleManager::flushCache();\r\n100 \r\n101         // Call Modules autostart\r\n102         $autostartFilename = $modulePath . DIRECTORY_SEPARATOR . $moduleId . DIRECTORY_SEPARATOR . 'autostart.php';\r\n\r\nStack Trace\r\n#0 \t\r\n–\r\n /var/www/humhub/protected/modules_core/admin/libs/OnlineModuleManager.php(90): ZipArchive->extractTo(\"/var/www/humhub/protected/modules\")\r\n\r\n85         if (file_exists($downloadTargetFileName)) {\r\n86             // Unzip\r\n87             $zip = new ZipArchive;\r\n88             $res = $zip->open($downloadTargetFileName);\r\n89             if ($res === TRUE) {\r\n90                 $zip->extractTo($modulePath);\r\n91                 $zip->close();\r\n92             } else {\r\n93                 throw new CHttpException('500', Yii::t('AdminModule.libs_OnlineModuleManager', 'Could not extract module!'));\r\n94             }\r\n95         } else {\r\n\r\n#1 \t\r\n–\r\n /var/www/humhub/protected/modules_core/admin/controllers/ModuleController.php(134): OnlineModuleManager->install(\"mostactiveusers\")\r\n\r\n129 \r\n130         $moduleId = Yii::app()->request->getQuery('moduleId');\r\n131 \r\n132         if (!Yii::app()->moduleManager->isInstalled($moduleId)) {\r\n133             $onlineModules = new OnlineModuleManager();\r\n134             $onlineModules->install($moduleId);\r\n135         }\r\n136 \r\n137         // Redirect to Module Install?\r\n138         $this->redirect(Yii::app()->createUrl('admin/module/list'));\r\n139     }\r\n\r\n#2 \t\r\n+\r\n /var/www/humhub/protected/vendors/yii/web/actions/CInlineAction.php(49): ModuleController->actionInstall()\r\n#3 \t\r\n+\r\n /var/www/humhub/protected/vendors/yii/web/CController.php(308): CInlineAction->runWithParams(array(\"r\" => \"admin/module/install\", \"moduleId\" => \"mostactiveusers\"))\r\n#4 \t\r\n+\r\n /var/www/humhub/protected/vendors/yii/web/filters/CFilterChain.php(133): CController->runAction(CInlineAction)\r\n#5 \t\r\n+\r\n /var/www/humhub/protected/vendors/yii/web/filters/CFilter.php(40): CFilterChain->run()\r\n#6 \t\r\n+\r\n /var/www/humhub/protected/vendors/yii/web/CController.php(1145): CFilter->filter(CFilterChain)\r\n#7 \t\r\n+\r\n /var/www/humhub/protected/vendors/yii/web/filters/CInlineFilter.php(58): CController->filterAccessControl(CFilterChain)\r\n#8 \t\r\n+\r\n /var/www/humhub/protected/vendors/yii/web/filters/CFilterChain.php(130): CInlineFilter->filter(CFilterChain)\r\n#9 \t\r\n+\r\n /var/www/humhub/protected/vendors/yii/web/CController.php(291): CFilterChain->run()\r\n#10 \t\r\n+\r\n /var/www/humhub/protected/vendors/yii/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array(\"accessControl\"))\r\n#11 \t\r\n+\r\n /var/www/humhub/protected/vendors/yii/web/CWebApplication.php(282): CController->run(\"install\")\r\n#12 \t\r\n+\r\n /var/www/humhub/protected/vendors/yii/web/CWebApplication.php(141): CWebApplication->runController(\"admin/module/install\")\r\n#13 \t\r\n+\r\n /var/www/humhub/protected/vendors/yii/base/CApplication.php(180): CWebApplication->processRequest()\r\n#14 \t\r\n–\r\n /var/www/humhub/index.php(39): CApplication->run()\r\n\r\n34 Yii::import('application.vendors.*');\r\n35 EZendAutoloader::$prefixes = array('Zend', 'Custom');\r\n36 Yii::import(\"ext.yiiext.components.zendAutoloader.EZendAutoloader\", true);\r\n37 Yii::registerAutoloader(array(\"EZendAutoloader\", \"loadClass\"), true);\r\n38 \r\n39 $app->run();\r\n\r\n    \r\nWhen trying to access the modules repository to manually perform the installation found that the .zip file is damaged below is the error reported when trying to unzip the .zip and the module address within the repository:\r\nRepository: https://www.humhub.org/modules/60/\r\n\r\nErro .zip: \r\n7-Zip [64] 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18\r\np7zip Version 9.20 (locale=pt_BR.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)\r\n\r\nProcessing archive: /home/user/Downloads/60.zip\r\n\r\nExtracting  mostactiveusers/views/mostActiveUsers\r\ncan not open output file /home/user/Downloads/60/mostactiveusers/views/mostActiveUsers/list.php\r\nExtracting  mostactiveusers/views/config/config.php\r\nERROR: Can not delete output file /home/user/Downloads/60/mostactiveusers/views/config\r\nERROR: Can not delete output file /home/user/Downloads/60/mostactiveusers/views\r\nExtracting  mostactiveusers/widgets/views\r\ncan not open output file /home/sales/Downloads/60/mostactiveusers/widgets/views/mostActiveUsersPanel.php\r\nERROR: Can not delete output file /home/user/Downloads/60/mostactiveusers/widgets\r\nExtracting  mostactiveusers/widgets/MostActiveUsersSidebarWidget.php\r\nExtracting  mostactiveusers/autostart.php\r\nExtracting  mostactiveusers/assets\r\ncan not open output file /home/user/Downloads/60/mostactiveusers/assets/module_image.png\r\nExtracting  mostactiveusers/forms/MostActiveUsersConfigureForm.php\r\nERROR: Can not delete output file /home/user/Downloads/60/mostactiveusers/forms\r\nExtracting  mostactiveusers/README.md\r\nExtracting  mostactiveusers/module.json\r\nExtracting  mostactiveusers/resources\r\ncan not open output file /home/sales/Downloads/60/mostactiveusers/resources/mostactiveusers.css\r\nExtracting  mostactiveusers/MostActiveUsersModule.php\r\nExtracting  /srv/www/www.humhub.org/htdocs/modules/60\r\nExtracting  mostactiveusers/controllers\r\ncan not open output file /home/user/Downloads/60/mostactiveusers/controllers/MostActiveUsersController.php\r\ncan not open output file /home/user/Downloads/60/mostactiveusers/controllers/ConfigController.php\r\nERROR: Can not delete output file /home/user/Downloads/60/mostactiveusers\r\n\r\nSub items Errors: 11"}}