-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined constant OCA\Keeweb\Migration\RegisterMimeType trace during Update attempt to Nectcloud 28 #236
Comments
Indeed, this constant is not defined. I wonder why this didn't show up earlier. Thanks for pointing this out, I'll have a look into it as soon as possible. |
thanks for the quick answer. |
I stand corrected - no, the constant is defined. I don't understand, how this error can happen at all.
and the base class
I have no idea why this should not work. |
I suggest you remove the app first, then upgrade Nextcloud to NC 28 and then install the app again - this should work. I assume, the app is not updated first prior to the NC 28 upgrade - but this is needed since older Keeweb version will not work with NC 28 at all. |
I will try this next week and let you know how it went. |
Keeweb does not have any settings which are stored in Nextcloud. All settings are only stored locally in the browser, in which you use it. But Nextcloud also does not delete settings from the database when an app is removed. So removing an app and installing the latest version again after an upgrade of Nextcloud should bring it back as it was before. |
thanks, good to know. |
Hello and a good Monday morning. |
Hi. I experienced the same issue while upgrading and now the code integrity check fails 😢
Is this related? I tried to remove keeweb and draw.io and added them after that but the check still fails. |
Sorry, I don't have any solution for this and KeeWeb itself is outdated and not maintained any longer anyway. I will add a deprecation warning to the app that it should not be used any longer. Edit: the problems with Draw.io are not related - that's another issue cuased by Draw.io itself. |
I had the same problem when updating to NC 28. I didn't need to revert the upgrade, though, but instead restarted the upgrade via the occ command. Maybe that saves someone else some time. |
The revert was merely a precaution until I knew what went wrong during
the upgrade. Frankly, the v28 is the most buggy release so far, keeweb
was the least of its issues.
…On 07/03/2024 08.58, Benedikt Nyqvist wrote:
I had the same problem when updating to NC 28. I didn't need to revert the upgrade, though, but instead restarted the upgrade via the occ command. Maybe that saves someone else some time.
|
during an attempt to upgrade our Nextcloud instance from 27.1.5 to 28.0.1 I got the following trace:
An unhandled exception has been thrown: Error: Undefined constant OCA\Keeweb\Migration\RegisterMimeType::CUSTOM_MIMETYPEALIASES in /var/www/nextcloud/apps/keeweb/lib/Migration/RegisterMimeType.php:25 Stack trace: #0 /var/www/nextcloud/apps/keeweb/lib/Migration/RegisterMimeType.php(41): OCA\Keeweb\Migration\RegisterMimeType->registerForNewFiles() #1 /var/www/nextcloud/lib/private/Repair.php(127): OCA\Keeweb\Migration\RegisterMimeType->run() #2 /var/www/nextcloud/lib/private/legacy/OC_App.php(836): OC\Repair->run() #3 /var/www/nextcloud/lib/private/Installer.php(166): OC_App::executeRepairSteps() #4 /var/www/nextcloud/lib/private/legacy/OC_App.php(264): OC\Installer->installApp() #5 /var/www/nextcloud/lib/private/Updater.php(431): OC_App->enable() #6 /var/www/nextcloud/lib/private/Updater.php(284): OC\Updater->upgradeAppStoreApps() #7 /var/www/nextcloud/lib/private/Updater.php(140): OC\Updater->doUpgrade() #8 /var/www/nextcloud/core/Command/Upgrade.php(222): OC\Updater->upgrade() #9 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(298): OC\Core\Command\Upgrade->execute() #10 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run() #11 /var/www/nextcloud/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand() #12 /var/www/nextcloud/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun() #13 /var/www/nextcloud/lib/private/Console/Application.php(206): Symfony\Component\Console\Application->run() #14 /var/www/nextcloud/console.php(100): OC\Console\Application->run() #15 /var/www/nextcloud/occ(11): require_once('...') #16 {main}
So I rolled back the whole update for now. Has anyone seen this before?
The text was updated successfully, but these errors were encountered: