humhub / custom-pages

Create custom pages and widgets and share them with your users. Take advantage of a wide range of editing options, including HTML and Markdown.
27 stars 51 forks source link

Exception 'ReflectionException' with message 'Class humhub\modules\custom_pages\Module does not exist' #109

Closed gituser317 closed 4 years ago

gituser317 commented 4 years ago

Hello,

i am trying to migrate humhub from Windows Server to Linux Server (Ubuntu 18). After migrating the database dump i have copied the humhub folder to the new server. When i run the command php yii migrate/up --includeModuleMigrations=1 i got the following error message:

Yii Migration Tool (based on Yii v2.0.15)

Exception 'ReflectionException' with message 'Class humhub\modules\custom_pages\Module does not exist'

in /var/www/humhub/protected/humhub/commands/MigrateController.php:160

Stack trace:
#0 /var/www/humhub/protected/humhub/commands/MigrateController.php(160): ReflectionClass->__construct('humhub\\modules\\...')
#1 /var/www/humhub/protected/humhub/commands/MigrateController.php(99): humhub\commands\MigrateController->getMigrationPaths()
#2 /var/www/humhub/protected/vendor/yiisoft/yii2/console/controllers/BaseMigrateController.php(166): humhub\commands\MigrateController->getNewMigrations()
#3 [internal function]: yii\console\controllers\BaseMigrateController->actionUp(0)
#4 /var/www/humhub/protected/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#5 /var/www/humhub/protected/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#6 /var/www/humhub/protected/vendor/yiisoft/yii2/console/Controller.php(148): yii\base\Controller->runAction('up', Array)
#7 /var/www/humhub/protected/vendor/yiisoft/yii2/base/Module.php(528): yii\console\Controller->runAction('up', Array)
#8 /var/www/humhub/protected/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('migrate/up', Array)
#9 /var/www/humhub/protected/vendor/yiisoft/yii2/console/Application.php(147): yii\console\Application->runAction('migrate/up', Array)
#10 /var/www/humhub/protected/vendor/yiisoft/yii2/base/Application.php(386): yii\console\Application->handleRequest(Object(yii\console\Request))
#11 /var/www/humhub/protected/yii(29): yii\base\Application->run()
#12 {main}

Humhub 1.3.8 with Custom Pages 0.8.10 Same issue with Custom Pages 1.0.5

buddh4 commented 4 years ago

This does not seem to be related to the module, rather an general issue with your server, perhaps you need to clear the cache.