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.
From panels_edit_style_settings_form_validate in panels_renderer_editor class
My guess is that the display render is cached as init isn't being called for it either, so validation is being called but plugins file wasn't added, and bam fatal.
(very likely could be caused by something hackish I'm doing, but don't have the headspace to spend any more time on this atm.)
Comment | File | Size | Author |
---|---|---|---|
#5 | 2024441-panels_standard_render_form_include-5.patch | 4.27 KB | hefox |
#4 | 2024441-panels_standard_render_form_include-4.patch | 3.77 KB | hefox |
panels_edit_style_settings_form_validate_include_plugins.patch | 780 bytes | hefox | |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedI suspect what is really needed here is to ensure that the plugin is part of the form_state['build_info'] which is handled by form_load_include() or the CTools analogue (which can be slightly easier to use sometimes). This would be done in the form itself, or potentially when the file was initially included if that happens after $form_state is instantiated. That would ensure that the cached form loads the file.
Comment #2
hefox CreditAttribution: hefox commentedThat sounds more reasonable than randomly including it there.
Just to clarify in case wasn't clear, the inclusion of class definition is fine, it's the plugin.inc file that is missing.
My brain is quite dead atm though
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedYeah, I believe you just need to find the right spot to put this:
Comment #4
hefox CreditAttribution: hefox commentedAdding include of plugins (via ctools_form_include) and that class file (via form_load_include) to all form definitions defined in there. It's a place that works, but not sure if it's the best place to add them though
Comment #5
hefox CreditAttribution: hefox commentedwhy in the world was my local copy of panels on branch 6.x-3.x... (I keep a lot of checked out repos to just roll patches against, not connected to any site)...
Comment #6
mpotter CreditAttribution: mpotter commentedYeah, this seems to work for me in OA2.
Comment #7
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedthe patch in the original post and in #5 are different. Are they additive or does #5 replace the original?
Comment #8
hefox CreditAttribution: hefox commented5 replaces original
Comment #9
pirog CreditAttribution: pirog commentedThis patch also seems to resolve some intermittent issues in Kalatheme as well
#2173383: Kalacustomize for panes not working
Comment #10
japerryI was having this issue as well periodically in commons, usually when on a new install. After using this patch I haven't been able to replicate the issue.
Marking fixed and committed!
http://drupalcode.org/project/panels.git/commit/856ba03