I'm currently running into an issue were a user receives the following fatal error if they do not have the permission to create the "Event" content type the calendar is generated from. The pages are displayed using the view templates provided and the "Add Event" link is enabled.

Unsupported operand types in public_html/sites/all/modules/calendar/calendar.module on line 172

The line in question is from the calendar_menu_local_tasks_alter() function:

// The add new content page would redirect to the new event
// if we did not override that here. This way they will
// redirect back to the calendar.
$item['localized_options'] += array('query' => array());

Let me know if there's anything else I can provide to help locate what could be causing this.


Jaws’s picture

I had the same problem, solved it by adding:

    $item['localized_options'] = array();

before line 172

marc.denning’s picture

I had the same issue, and the solution proposed by Jaws worked for me.

manuelBS’s picture

the posted solution works for me, too

pc-wurm’s picture

Thanks Jaws! I made a patch file for the added lines.

pc-wurm’s picture

Status:Active» Reviewed & tested by the community

I also change the status of the issue to RTBC.

fizk’s picture

Issue summary:View changes
Status:Reviewed & tested by the community» Fixed

Committed, thanks!

  • Commit 9334ded on 7.x-3.x by fizk:
    #1734858 Jaws, pc-wurm: Create localized_options array in...

Status:Fixed» Closed (fixed)

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