i'm getting this error when trying to modify a panel page that previously worked. I have a date field on it and am using 'all day'. I'm not using repeated dates, but did have the Date Repeat Field and Date Repeat API modules enabled.

Disabling the Date Repeat Field module fixes this issue it seems

Comments

karens’s picture

Category: bug » support
Status: Active » Fixed

You may need to clear your caches. If that doesn't work, delete the field from the panel and re-add it. One way or another the panel probably has outdated information stuck in it.

ecafsub’s picture

Version: 7.x-2.x-dev » 7.x-2.0-rc1
Component: Code » Date Repeat API
Category: support » bug
Status: Fixed » Active

I was trying to add content to a Panel when I got this:

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /panels/ajax/editor/add-pane/panel_context%3Anode_view%3A/left/entity_field/node%3Abody/step2

I found the same PHP error message in my error log. Clearing caches did not fix anything, and I don't have a Date field anywhere (yet), only the module enabled. Disabling the Date Repeat Field module cleared the error and I was able to proceed normally. Date Repeat API was left enabled. Reverting to Date 7.x-2.x-dev did not help. Running core 7.10

acrollet’s picture

StatusFileSize
new809 bytes

I have the same error, caches cleared, etc. The $info array passed to date_repeat_field_field_formatter_info_alter() does not have a date_default member when the error occurs. (When trying to add a new panel pane) The attached patch fixes the issue, though I'm not sure if the true problem lies with ctools/panels?

Background info: I'm not using the date_repeat module for anything in particular, I saw the error when trying to add a field collection pane to a node view panels page.

acrollet’s picture

Version: 7.x-2.0-rc1 » 7.x-2.x-dev
Status: Active » Needs review

updating status.

Status: Needs review » Needs work

The last submitted patch, check_info_array-1379122-3.patch, failed testing.

karens’s picture

Title: PHP Fatal error: Unsupported operand types in... date_repeat_field.module on line 519 » Panels: PHP Fatal error: Unsupported operand types in... date_repeat_field.module on line 519

Adding Panels to the title to clarify this happens with Panels.

tim.plunkett’s picture

Status: Needs work » Needs review
StatusFileSize
new612 bytes

Rerolling the patch.

tim.plunkett’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

ambientdrup’s picture

Confirmed that the patch in #7 is working for me.

Best-

Trevor