codedge / statamic-move-entries

Statamic 3 addon to move entries inside the Control Panel
MIT License
0 stars 1 forks source link

Does not work in mutisite configurations #103

Open Sennik opened 2 years ago

Sennik commented 2 years ago

Nice to know It only is usable in list view, nowhere to be found in tree view (took me a minute to find out, there is no explanation or manual or whatsoever)

After installation First move resulted in a server error in the Statamic Control Panel and website:

[2022-01-06 06:50:20] local.ERROR: Undefined array key 1 {"userId":"05c1294e-021e-4816-8c38-48f27dc3aada","exception":"[object] (ErrorException(code: 0): Undefined array key 1 at /var/www/testsite/vendor/statamic/cms/src/Stache/Stores/CollectionEntriesStore.php:38)

Result: CP (on collection related pages) and whole frontend website broken.

What I found The moved page landed in the target collections root directory while it should have landed in one of the folders of the multisite configuration. When I manually moved it to the 'default' folder it all worked again.

I think it is safe to say that this plugin is not multisite compatible. That's a pity because 'statamic-move-entries' could be a very usable add-on, especially on multisite configurations.

What it should be capable of (IMHO)

Nice to have

christophstockinger commented 1 year ago

I can confirm this problem!

codedge commented 1 week ago

Thanks for your detailed feedback. Some things have been fixed meanwhile.

Indeed, there is no multi-site support yet. Feel free to open an PR.