nextcloud / assistant

✨ Nextcloud Assistant
GNU Affero General Public License v3.0
35 stars 6 forks source link

PHP Fatal error: Cannot declare class OCA\Assistant\Migration\Version010003Date20231208083112, because the name is already in use in #87

Open marcelklehr opened 6 months ago

marcelklehr commented 6 months ago

Which version of assistant are you using?

latest

Which version of Nextcloud are you using?

28

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

-

Describe the Bug

When updating the app I get

PHP Fatal error:  Cannot declare class OCA\Assistant\Migration\Version010003Date20231208083112, because the name is already in use in /opt/nextcloud/28.0.0/apps/assistant/lib/Migration/Version010003Date20231208083112.php on line 16

Expected Behavior

No error

To Reproduce

Update app

julien-nc commented 6 months ago

I don't think we are doing anything wrong here. It only happens in your setup. Could you restart php-fpm if you're using it?

marcelklehr commented 6 months ago

Seemed like an autoloader thing, it happened in production on zitsh

julien-nc commented 6 months ago

"Seemed"? So has the migration step ran eventually?

marcelklehr commented 6 months ago

Idk, nothing seems broken though