Working with the latest CTools / Page Manager / Panels, I found out that I cannot edit/delete my context. Instead I get browser popup "Server reports invalid input error".

Further investigation showed that ONLY the first context cannot be edited / deleted. When I added dpm(debug_backtrace()); into ctools_ajax_command_error function it told me that ctools_context_ajax_item_delete is called without the last argument, which should be '0'. Apparently the argument processing code loses it somewhere along the way.

This needs to be fixed and perhaps it is a problem not only for contexts but for other tasks.

Comments

merlinofchaos’s picture

Status: Needs review » Active

needs review means there's a patch.

dkruglyak’s picture

I don't know your code well enough to hack a patch

merlinofchaos’s picture

I was just commenting that the status was wrong and correcting it. Otherwise the issue is misfiled.

dkruglyak’s picture

Ok, but do you think you could look into why it is happening?

merlinofchaos’s picture

Yes, and I shall, when I get a chunk of time set aside for it.

merlinofchaos’s picture

Status: Active » Fixed

The actual problem here turned out to be somewhat stranger than you had indicated. I believe I have fixed it, though, and in addition improved the caching significantly. Hooray!

Status: Fixed » Closed (fixed)

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