nextcloud / social

🎉 Social can be used for work, or to connect to the fediverse!
https://apps.nextcloud.com/apps/social
GNU Affero General Public License v3.0
488 stars 59 forks source link

Can't activate the App #1754

Closed DerTev closed 1 year ago

DerTev commented 1 year ago

Can't activate the App When I try to activate the app on Nextcloud 26.0.1, I get the following error:

{"reqId":"ev2LlFmDODFRA7thXeXZ","level":3,"time":"2023-05-02T13:27:22+00:00","remoteAddr":"censored","user":"admin","app":"index","method":"POST","url":"/settings/apps/enable","message":"Undefined constant Doctrine\\DBAL\\Types\\Type::TEXT in file '/var/www/html/custom_apps/social/lib/Migration/Version0003Date20200611000001.php' line 228","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36","version":"26.0.1.1","exception":{"Exception":"Exception","Message":"Undefined constant Doctrine\\DBAL\\Types\\Type::TEXT in file '/var/www/html/custom_apps/social/lib/Migration/Version0003Date20200611000001.php' line 228","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Settings\\Controller\\AppSettingsController"],"enableApps"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Settings\\Controller\\AppSettingsController","enableApps",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["settings.AppSettings.enableApps"]]},{"file":"/var/www/html/lib/base.php","line":1056,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/settings/apps/enable"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":169,"Previous":{"Exception":"Error","Message":"Undefined constant Doctrine\\DBAL\\Types\\Type::TEXT","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/social/lib/Migration/Version0003Date20200611000001.php","line":76,"function":"createActors","class":"OCA\\Social\\Migration\\Version0003Date20200611000001","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/DB/MigrationService.php","line":446,"function":"changeSchema","class":"OCA\\Social\\Migration\\Version0003Date20200611000001","type":"->","args":[["OC\\Migration\\SimpleOutput"],["Closure"],["oc_"]]},{"file":"/var/www/html/lib/private/DB/MigrationService.php","line":409,"function":"migrateSchemaOnly","class":"OC\\DB\\MigrationService","type":"->","args":["latest"]},{"file":"/var/www/html/lib/private/Installer.php","line":153,"function":"migrate","class":"OC\\DB\\MigrationService","type":"->","args":["latest",true]},{"file":"/var/www/html/apps/settings/lib/Controller/AppSettingsController.php","line":451,"function":"installApp","class":"OC\\Installer","type":"->","args":["social"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"enableApps","class":"OCA\\Settings\\Controller\\AppSettingsController","type":"->","args":[["social"],[]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Settings\\Controller\\AppSettingsController"],"enableApps"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Settings\\Controller\\AppSettingsController"],"enableApps"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Settings\\Controller\\AppSettingsController","enableApps",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["settings.AppSettings.enableApps"]]},{"file":"/var/www/html/lib/base.php","line":1056,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/settings/apps/enable"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/social/lib/Migration/Version0003Date20200611000001.php","Line":228},"CustomMessage":"--"},"id":"64510fbfe8932"}

Client details:

Server details **Social app version:** Latest available - 0.4.2 **Web server:** Default from Nextcloud AIO - I think it's Apache **PHP version:** Default from Nextcloud AIO - I think it's 8.0.28 **Nextcloud version:** Nextcloud Hub 4 (26.0.1)
srijansaxena11 commented 1 year ago

Either change your update channel to beta or download manually the latest 0.6 rc2. 0.4.2 was last stable release but it is very old and does not support Nextcloud 26. Next stable release should release in the future but till then use beta if you want to.

DerTev commented 1 year ago

Ok, where do I get the files and where to put them?

srijansaxena11 commented 1 year ago

Here: https://apps.nextcloud.com/apps/social

Delete the already existing social folder from <nextcloud folder>/apps/social

And extract the downloaded file in the same folder and then activate it.

DerTev commented 1 year ago

Ah, ok, thanks a lot!