I have a page with 2 Views blocks, each with an exposed date range filter and an attached CSV export option.

Problem:
When the "apply" button is clicked for the exposed date range filter (whether or not the date was changed from the default date) and I try to download the CSV export, I get a "500 Internal Server Error" and this in the php error log:
PHP Fatal error: Cannot create references to/from string offsets nor overloaded objects in C:\web\includes\common.inc on line

This happens with Internet Explorer only, no problems with Firefox or Chrome.

Solution:
After many hours of trial and error, I discovered I don't get the error if Overlay is turned off. Maybe there's a difference in the way IE parses the URL and the hashtag before "overlay" screws it up?

Here is an example of a CSV path that throws the error:
http://www.domain.com/admin/store/reports/accounting#overlay=admin/store...

Comments

steven jones’s picture

Status: Active » Closed (cannot reproduce)

Sorry but I can't reproduce this, and anyway this would be an error with Overlay in core I think.
Feel free to re-open if you can still reproduce this, but we should probably isolate the part of the URL that breaks things, and file the issue against Drupal core's overlay component.

fonant’s picture

Issue summary: View changes

FWIW I had a very similar problem when the CSV download path started with "/admin/" - Drupal was detecting it as an administration page, so was adding the admin overlay but with no content.

Changing the path for the CSV download to not be an administration path fixed the problem.