Under the context section while adding a custom page, adding the Node Add Form works fine. But once in the layout view to add a pane, the modal window loads but continues to load for some time then an alert popup appears stating: An error occured while attempting to process /panels/ajax/add-pane/panel_context%3Apage-home_panel%3Apage_home_panel_panel_context/left.
This breaks all functionality of being able to add any further panes to the layout.
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | 696402-context-node-form.patch | 1.78 KB | pokurek |
| #8 | Capturer.JPG | 37.61 KB | hdornier |
| #7 | Capturer.JPG | 20.53 KB | hdornier |
Comments
Comment #1
merlinofchaos commentedCan you update Panels and CTools to -dev and see what you get? There is increased error reporting that may help here.
Comment #2
triversedesigns commentedI updated to the dev version. For some reason the Page Manager, Views content panes and Panels were disabled after that.
The error I am getting is as follows: Unable to complete operation. Fatal error in /var/www/.../includes/form.inc on line 882: Allowed memory size of 100663296 bytes exhausted (tried to allocated 82 bytes).
Comment #3
triversedesigns commentedAny update on this?
Comment #4
merlinofchaos commentedOut of memory errors are hard to debug. Do you have a lot of modules on your site?
Comment #5
triversedesigns commentedYes quite a few actually...Organic Groups is associated with the particular node form I am trying to add to the pane.
I am curious as to why only 82 Bytes were allocated.
Comment #6
merlinofchaos commentedProbably at that time a very small variable was allocated.
It is possible that the combination of modules you're using is legitimately eating your memory limit; but that would be a LOT of modules. It is possible that some module is leaking memory during this process too. These kinds of things are really hard to debug in PHP. Your best bet is to increase the memory limit to see.
Comment #7
hdornier commentedI have the same problem as mentionned above : "Under the context section while adding a custom page, adding the Node Add Form works fine. But once in the layout view to add a pane, the modal window loads but continues to load for some time then an alert popup appears stating". I've attached a capture of the popup.
Before I updated to the 6.X-3.3 version, all was fine. I updated both ctools and panels together. What's wrong?
Thanks a lot for your help
Comment #8
hdornier commented@merlinofchaos : I've updated Panels and CTools to -dev to get the increased error reporting you tell. I've attached a capture of it.
Comment #9
TheInspector commentedI have the same problem too. The problem only appears when I add "add node" context, otherwise it works fine.
Comment #10
hdornier commentedAny suggestion? please, help us!
Comment #11
okday commentedI have the same error too.
someone have the solution?
Comment #12
pokurek commentedI use internalization module i18n (version 6.x-1.3) and a have found this cycle:
Module I18n add form process callback that calls menu_get_object function:
Everything is in order If I disable i18n module.
I hope this help with detection where the problem is.
Comment #13
triversedesigns commentedHmmm I think this may help, I had the issue originally only when using the OG module...
Comment #14
pokurek commented@merlinofchaos : Hi. I think, there is no possibility to recognize that the context is created in menu_get_item() function.
So we can only prevent to call context function recursively.
Testing static variable works for me.
Comment #15
webdevbyjoss commentedHi, the patch from #14 resolves the out of memory issue for me. Thanks! Any chance to incorporate the fix for this issue into official release?
Comment #16
shadowx commentedThis error could also be found in node_edit_form.inc. It could be solved by the #14 patch, too.
Comment #17
gunzip commentedi can confirm the patch also solves a problem i've got when adding node form from context:
i think the patch should be incorporated in latest dev. maybe set this to review and tested ?
Comment #18
pokurek commentedSending patch in attach.
Comment #19
erik seifert commentedpatch is working for me.
thx
Comment #20
merlinofchaos commentedCommitted. THis was a CTools issue, so moving.
Comment #21
merlinofchaos commentedForgot to mark fixed.
Comment #22
majdi commentedpatch is working for me
thanks