When in the Panels UI for the node_view page, errors sometimes (sporadically) popup having to do with AJAX. For example, when I edit the CSS class names for one element, it gives me the popup allowing me to edit the css class/id for that element. If I update the css class/id on that popup, then try to do the same for another element, though, I'm presented with an error and have to update+save to modify the next css class/id. (I'll try to get some exact error messages next time it happens)

After my most recent error, I'm now unable to access any part of my site (500 internal server error). I'm guessing this is because some ajax or php script is stuck and therefore consuming lots of memory on my shared server, so my website was automatically temporarily 'switched off' so to say by the host for the sake of other people on that server. The question, though, is what script is causing this high memory consumption.

I'm not sure what this means, but I also checked my server error log and this error has been showing up a lot:
[Mon Jul 27 08:07:45 2009] [error] [client [MY.IP.ADDRESS.WAS.HERE] Premature end of script headers: index.php, referer: http://myadbutler.com/admin/build/pages/nojs/operation/node_view/handler...

Comments

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

I don't know what I can do or say about 'sporadic' random failures. Without being able to reproduce them, it's very much your classic needle in a haystack.

When you do get ajax failures, I need to know a lot more data about what failed. Precisely what you were doing and what kind of error messages the server provided for that failure.

So far, I've noted two problems with -rc1 and ajax: adding context to a panel variant during the 'add variant' process completely fails, and trying to edit the css classes of a mini panel fails.

You see how specific these are? Anything less specific is more or less useless tome.

Chris Einkauf’s picture

I see what you're saying. Next time it happens I'll take note of the exact message and circumstances. By the way, by sporadic I meant that the same situation in one instance will produce an error (e.g. the error I mentioned having to do with updating the css class/id for 2 elements back-to-back), but it won't produce an error when I do the same exact thing another time.

CPyle’s picture

I have a single column panel that overrides the user view, with a single pane inside of it. When attempting to change CSS Properties on the pane, the popup appears but I get this JS alert: "An error occurred while attempting to process /panels/ajax/pane-css/panel_context%3Auser_view%3Auser_view_panel_context/5"

This is with RC1.

Edit: Updated to -dev, appears fixed.

Chris Einkauf’s picture

My error was pretty much the same as CPyle's. Here's what mine read...
"An error occurred while attempting to process /panels/ajax/pane-css/panel_context%3Anode_view%3Anode_view_panel_context/78"

I guess I'll switch over to -dev in the next day or so.

seanr’s picture

Status: Postponed (maintainer needs more info) » Active

I get the same thing. Very easily reproducible on multiple sites with the latest version:

1. Create a panel with two or more panes.

2. Click the gear icon on one and choose CSS properties.

3. Add anything and save

4. Click the gear icon on a different pane and choose CSS properties again.

Panels blows up with "An error occurred while attempting to process /panels/ajax/pane-css/panel_context%3Anode_view%3Anode_view_panel_context/78"

If you don't click save in step three and just close the popup, step four will work just fine, so there is apparently some kind of issue with the saved data screwing up the AJAX code.

Chris Einkauf’s picture

Yes, that explains the error I'm getting. Again, perhaps it's fixed in -dev, but I haven't switched to -dev yet because I've found that there's an easy workaround: just click "update" and you can go on to editing the next css class with no problem.

Chris Einkauf’s picture

Title: Various AJAX errors while in Panels UI » AJAX error when editing one css class after another in Panels UI

I went ahead and made the title a little more specific. My apologies if this issue had already been created in the queue during the time that it had a generic title.

bgilday’s picture

I am getting similar behavior on my site, which is a Panels 2 to Panels 3 upgrade site per your upgrade instructions.

I am unable to edit the CSS settings on any existing or any new panel panes.

Whenever I click CSS Properties, I get an error like this: "An error occurred while attempting to process /panels/ajax/pane-css/30/71" with the last two numbers (30/70) changing depending on the specific panel pane I am trying to edit.

The CSS settings for existing panes do work - I just cannot edit them.

Thanks.

Brian

bgilday’s picture

Title: AJAX error when editing one css class after another in Panels UI » Problem went away

The error message disappeared when I upgraded from 3.0 rc1 to 3.0

merlinofchaos’s picture

Title: Problem went away » AJAX error when editing one css class after another in Panels UI
Version: 6.x-3.0-rc1 » 6.x-3.0
Status: Active » Fixed

Reverting title, marking fixed based on #9.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.