While creating the first term_view page, I received the following error after saving the variant for the first time:
Strict warning: Creating default object from empty value in page_manager_http_response_admin_summary() (line 132 of sites/all/modules/contrib/ctools/page_manager/plugins/task_handlers/http_response.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | ctools-n1251474-4.patch | 1020 bytes | damienmckenna |
| #3 | ctools-n1251474.patch | 642 bytes | damienmckenna |
Comments
Comment #1
damienmckennaSorry for missing the obvious, this is a CTools bug, not Panels.
Comment #2
damienmckennaThe line in question is:
Oddly enough $display is not defined anywhere within that function? Should it have been, or should it be just an empty StdClass?
Comment #3
damienmckennaGoes this work?
Comment #4
damienmckennaAlternatively, the D6 branch just does this:
Here's a patch to change to that variable usage.
Comment #5
damienmckennaIMHO the patch from #4 would be the way to go, especially given it brings it more in line with the D6 branch.
Comment #6
merlinofchaos commentedSensible. Committed!
Comment #8
jimclegg commentedI copied from ctools-n1251474.patch the line $display = new stdClass(); into the file http_response.inc and it eliminated the Strict warning.
Is it necessary to run the patch to fix the error or is it ok to copy and paste the code into http_response.inc?
Comment #9
edbradburn commentedSorry if this is not the correct response – I'm new to the Drupal Issues pages – but I still get this behaviour (i.e. I have the exact same error message) using
Chaos tool suite (ctools) 7.x-1.0-rc1
What is the appropriate action for me to take?
Patch what I have, wait for a new release, etc.?
It's not mission-critical, but I am unsure how the bug can be reported as fixed if it isn't, if you see what I mean.
Cheers,
Ed
Comment #10
merlinofchaos commentedIt was committed to the repository and is in 7.x-1.x-dev -- however, 7.x-1.0-rc1 was released prior to the patch being committed. You'll either have to use -dev or wait for the next release. It's not too hard to check dates on releases to see that's the case.