Needs work
Project:
Date
Version:
7.x-2.x-dev
Component:
Views Filter
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Mar 2012 at 15:23 UTC
Updated:
28 Dec 2018 at 22:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerThe wsod handbook page, gives you a lot of advisory to get more context about the issue: http://drupal.org/node/158043
For example it would be interesting whether there are any php errors connected with the remember issue.
Comment #2
tommann commentedOn the site log there is nothing only this saved (40 iterations) on the server log file:
[14-Mar-2012 10:21:40] PHP Fatal error: Cannot create references to/from string offsets nor overloaded objects in /home/persian/public_html/info/includes/common.inc on line 6392
Comment #3
dawehnerThanks for the bug, though this could be caused by multiple issues.
The following two things would be helpful: A backtrace at this function and a way to reproduce the problem. Most of the time fixing the issue is then not that hard anymore.
Comment #4
tommann commentedI did not know what a backtrace is so now I have added the devel module. Can you explain the steps.
To reproduce I think a significant number of nodes 400+ with a date field, then a view with two exposed date selections, >=date and <= date, using year. Then on both tick the remember option.
The page is here: http://info.bic.org/statements-and-reports/statements but currently the remember feature is off.
The reason I feel it involves the remember feature is that is always worked on first visit and then the second time errors out.
Comment #4.0
edsel commentedTest
Comment #5
esmerel commentedComment #6
calefilm commentedthe "remember" option doesn't have anything to do with it, at least not for me.
I'm getting the same error. I can't use my "expose" date selector in views. Everything shuts down on that particular view and I get a white page:
"Fatal error: Cannot create references to/from string offsets nor overloaded objects in /Users/me/Sites/acquia-drupal/includes/common.inc on line 6392"
Comment #7
calefilm commentedMore info on another thread: http://drupal.org/node/913528
Comment #8
patoshi commentedim also having the same issue.
Fatal error: Cannot create references to/from string offsets nor overloaded objects in includes/common.inc on line 6392
im getting this in my view when i check off a couple of sortable table columns under the "tabular settings" display.
http://img543.imageshack.us/img543/6341/croppercapture198.jpg
when i uncheck them, the view starts to work again. what could the cause of this be? it says overloaded, as im guessing its my view as it is loading alot of fields for tracking inventory: http://img62.imageshack.us/img62/2594/croppercapture199.jpg
** correction **
it is indeed something with the exposed filter "remember" checkbox. this error shows up now after i submit the filter once and then try to reload.
Comment #9
jehu commentedcan reproduce same error by usage of exposed filter "remember" (date field in my case)
Comment #10
benschaaf commentedSame issue here.
"Remember" setting seems to be the culprit.
Comment #11
buddaWe've seen the same PHP fatal error with and without the remember checkbox on in the Views config.
Stack trace is:
Comment #12
dawehnerThis all seems to be a problem related to the date module, not views itself, as everyone with problems actually talked about that.
Comment #13
Lann commentedI am experiencing this same issue with Dates when the filter is exposed. It only seems to occur when I am using select boxes and not when using a date popup. Also, it does not immediately occur with the select boxes but occurs after a few refreshes.
Comment #14
emilflatz commentedSame issue here. Views Page using Exposed filter with date field. Filter is exposed with select boxes and 'remember last selection' option.
Page View works without 'remember last selection' option.
Fatal error: Cannot create references to/from string offsets nor overloaded objects in /home/jedannul/public_html/dev/includes/common.inc on line 6518
E.
Comment #15
Anonymous (not verified) commentedSame issue here with an exposed filter for a date on views.
When the filter is changed to non-exposed, the view works. Make the filter exposed again, the message returns:
Fatal error: Cannot create references to/from string offsets nor overloaded objects in ..../includes/common.inc on line 6518
EDIT:
Solution that seems to work:
Before the exposed date I added an extra date filter with the operator 'Is not empty (not NULL)'. After that the query worked normal again.
A possible explanation for this behaviour is that the query contained joins wich made it possible that the Null values are selected because of missing entities. With the extra selection these date fields are omitted before the exposed filter. A better solution is to make the exposed filter more robust.
Comment #16
manicato commentedcan reproduce same error by usage of exposed filter "remember" with 2 date fields
#15 doesn't work in my case
Comment #17
hoangdk80 commentedExact same issue here.
When enabling "remember last" and reloading the page, the error occurs.
#15 doesn't work for me neither
Comment #18
karlsheaThis is happening for me in drupal_array_set_nested_value() in common.inc.
On line 6548, $ref is being reset to &$ref[$parent]. What's throwing the error here is when $ref gets down to the date (so $ref = '2013-04-26'). $parent is still 'year', so it tries to find an array index of a string.
Comment #19
Exploratus commentedHappening to me as well when I put remember last on a Date field. When I come back to the page I get the WSD.
It seems to do it when a select dropdown is enabled, rather than a text field.
Comment #20
savageanne commentedSetting Date fields to text rather than drop down also worked for me.
Comment #21
jrochate commentedI found the same exact problem/symptom: when enabling "remember last..." and using select boxes on exposed filter, I get WSOD but nothing on error.log.
keep up
Comment #22
silurius commentedI am experiencing this issue with 7.x-2.6. Is anyone else?
The symptoms are not affected by setting/unsetting "Remember last", setting as exposed/non-exposed, or changing the field from pop-up to text.
Comment #23
criznach commentedI spent some time debugging this, and I'm not sure the problem is specifically the date module. It might be the way views stores compound fields in the session when the remember option is selected. I can't think of another compound field filter to test, but I suspect others would behave the same.
My date filter is for year granularity only, and I was able to work around this issue by setting the filter to a text field and adding the code below in a custom module. The remember option now works, and the filter is shown as a select.
Comment #24
criznach commentedLooks like it is most likely a date bug. The geofield proximity filter is a compound element, and it handles the remember option fine.
Comment #25
grimal commentedSame problem here, i've an exposed date field with min/max year selects and remember option.
I've noticed that the $form_state store the date without the year/month/day date structure needed for the selects , so the year 2013 is stored in $form_state['input']['field_mydate']['min'] instead of $form_state['input']['field_mydate']['min']['year']
This fix the problem in my case:
any idea where we need to look for resolve the issue? date module, views/session serialization?
Comment #26
DnaX commentedSame issue here.
View with date field exposed with month granularity and rendered as selects (year and month select).
In my case I have this date field array (
$form_state['input']):At the second visit I have:
Comment #26.0
DnaX commentedTest
Comment #27
Bitvark commentedSolution #15 worked for me: Before the exposed date I added an extra date filter with the operator 'Is not empty (not NULL)'.
I've used the select widget and setted granularity equal to my exposed filter (month).
Comment #28
gjlook commentedhi
i got the same thing
fatal error: cannot create references to/from string offsets nor overloaded objects in my_path_and_inc_file on line 6392
took the remember my last selection check box off my view exposed filter , saved and hopefully working now - many thanks
Comment #29
jgullstr commentedAttached a feature (view + content type) for reproduction. The issue seems, as previously mentioned, to be that "Remember last" is saved and loaded as a string, but interpreted as a date array when revisiting the view.
Comment #30
jgullstr commentedThis error occurs due to date_select_validate() setting the submitted form value to a date string before views "remembers" the value. When re-visiting the form, the saved (string) value is interpreted as a date array by date_select_element_value_callback.
One workaround to this behavior is to have views save the original submitted values instead of the date string value set by date_select_validate. Another way would be to pre-process the saved date sting into a granular date array before loading the exposed form.
Attached patch works by saving the original submitted value(s) to its own array in the $form_state, and replaces the date strings generated by date_select_validate before persisting the selected values.
Comment #32
grasmash commentedThis patch was not applying cleanly via drush make. Updating.
Comment #33
daniel kortePatch #32 works for me using version 7.x-2.9. Thanks!
Comment #34
dmitryVL commentedComment #35
dmitryVL commentedbot to go
Comment #37
dmitryVL commentedCan't reproduce with Date(7.x-2.2) and Views 7.x-3.13.
Comment #38
daniel korteI can still reproduce this issue in 7.x-2.10 and the patch #32 still fixes it.
Comment #39
damienmckennaComment #40
chris matthews commentedThe latest patch in #35 does not apply to the latest 7.x-2.x-dev and needs a reroll.