Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For some uncertain reason, panels no longer saves changes to panels visibility rules.
When I try to save a notice is thrown to the watchdog table.
LOCATION ht.p://localhost/../panels/ajax/editor/access-configure-test/6/57/2
REFERRER ht.p://localhost/../admin/structure/types/manage/image/display/full
MESSAGE Notice: Undefined index: #parents in field_default_form() (line 18 of C:\xampp\htdocs\..\modules\field\field.form.inc).
I've truncated the URLS because they were being formatted poorly.
Update: Panels is saving the configuration to the database, but NOT displaying it in the UI. See comment #3
Comments
Comment #0.0
bryancasler CreditAttribution: bryancasler commentedcorrection
Comment #0.1
bryancasler CreditAttribution: bryancasler commentedc
Comment #0.2
bryancasler CreditAttribution: bryancasler commentedx
Comment #0.3
bryancasler CreditAttribution: bryancasler commentedc
Comment #1
bryancasler CreditAttribution: bryancasler commentedIf I delete all the visibility rules through the panels UI then the "Access" field value becomes "a:1:{s:7:"plugins";a:0:{}}". However, all the other fields that have never had an access rule added have a value of "a:0:{}".
Not sure if this is related or not, but I thought I would share.
Comment #1.0
bryancasler CreditAttribution: bryancasler commenteda
Comment #2
bryancasler CreditAttribution: bryancasler commentedOne of my other post may be related to this bug
#1435426: Notices thrown when using visibility rules on hidden fields
Comment #3
bryancasler CreditAttribution: bryancasler commentedHere is a two minute screen-cast I recorded looking at the UI and the database.
Watch Screen-cast: http://screencast-o-matic.com/watch/cln63V4dP
Download Screen-cast: http://i.minus.com/1328997894/cMUc9B6MhInoxgMCR6Jszg/db2d27uh1E8chf.mp4
I've confirmed that values are being saved into the database, but when being viewed through the UI the default value is shown irregardless of what value has been previously saved.
Comment #3.0
bryancasler CreditAttribution: bryancasler commentedc
Comment #3.1
bryancasler CreditAttribution: bryancasler commentedd
Comment #3.2
bryancasler CreditAttribution: bryancasler commentedd
Comment #4
flefle CreditAttribution: flefle commentedCan confirm that this kind of behavior is also in the latest ctools 7.1.1. This fact is also within the Selection rule for instance if a certain taxonomy term is selected, the value is ignored and at second setting not shown. The visibility rule within the field - panel pane setting is active and works fine just the setting is canceled at second check.
Thank you for the proposals how to avoid this.
Comment #5
DamienMcKennaThis is a duplicate of #1630820: entity_field_value is completely broken which has a patch.
Comment #5.0
DamienMcKennas