craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.29k stars 638 forks source link

3.0 Beta: Checkboxes & Select Fields Data Not Rendering in Admin UI #1619

Closed ghost closed 7 years ago

ghost commented 7 years ago

Description

Upon refresh after saving checkbox or select fields to an entry, the saved data is not reflected in the admin ui, although the data is properly saved to the content table row.

Steps to reproduce

  1. Setup checkbox or multiselect fields & configure etc
  2. Select checkbox or multiselect data in admin ui and cmd + s

-> Checkboxes 'reset' such that all options are null

Additional info

brandonkelly commented 7 years ago

I’m not able to reproduce this. What specific version of Craft 3 are you running? The latest is 3.0.0-beta.10. If you’re on something earlier, try running composer update and see if you’re still getting it.

If updating doesn’t fix (or you’re already on the latest), please send in a support ticket from your dashboard, including the DB backup, and reference this issue #. We may have better luck reproducing the bug using your DB backup.

ghost commented 7 years ago

Hey Brandon,

After a day and a half getting craft 3 setup with a docker image based on nginx-php-fmp I'm still having the same issue with checkboxes. It's really weird.

But you're right — I'm on 3.0.0-beta.3. I ssh'd into my docker container and ran composer update but got:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files

Sorry if this is a newbie question, I'm a bit new at managing composer dependencies, any idea why the latest isn't being brought in by composer update?

Really appreciate your attention!

brandonkelly commented 7 years ago

If you’re stuck on Beta 3 it’s because the environment doesn’t have all of the necessary PHP extensions, which we added as Composer dependencies in Beta 4 (fa7d2ff3da643f17e4d062b96d17671b1add068e).

You can probably find out which specific extension is missing by bumping your craftcms/cms version requirement to "^3.0.0-beta.10", forcing Composer to explain why it can’t install that version.

Or you can just have Composer completely ignore the PHP requirements, and let Craft do its own extension checking:

composer update --ignore-platform-reqs
ghost commented 7 years ago

Thanks again,

I successfully updated to beta.10, and using a new database, was able to again recreate the issue described above. I double checked the system report and all the requirements are met, seems like somethin' else is going on.

ghost commented 7 years ago

Forgot to add — I submitted a message to craft support with a db dump.