When trying to click a header to sort my views table I am getting the following notice and no data or table appears, just my filters and bulk operations drop downs.

Notice: Uninitialized string offset: 0 in date_text_element_process() (line 191 of C:\wamp\www\drupal\sites\all\modules\date\date_api\date_api_elements.inc).

Any ideas?

Thanks
Sharon

Comments

merlinofchaos’s picture

Project: Views (for Drupal 7) » Date
Version: 7.x-3.0-rc1 » 7.x-2.x-dev
Component: Miscellaneous » Views Filter

Looks like a problem in date module. Though it may be http://drupal.org/node/1186824 (has patch) -- if that patch fixes, please mark this duplicate.

SharonD214@aol.com’s picture

Hmm, It doesn't seem like http://drupal.org/node/1186824, however it could be a date issue If I query the date field and then sort it works fine. It seems the click sort gives the error only if there are empty date fields without data in the table to be sorted

karens’s picture

Status: Active » Postponed (maintainer needs more info)

From the line number in the error it appears you have a very outdated version of Date. Please get the latest code and see if you still have a problem there. If so, I need exact steps I could follow to reproduce the error (what kind of date field and how is it configured, what exactly is in your view, etc).

SharonD214@aol.com’s picture

I updated date from alpha 3 to the latest alpha 4 and am still having the same issue, except now the error number is on line 288. my view is a member list and contains
MEMBER NUMBER
LAST NAME
FIRST NAME
USERNAME
ROLES
E-MAIL
EXPIRATION DATE
OPERATIONS - edit

I have 3 filters for last name, expiration date and role and bulk operations enabled to send out emails to expired users

The date field is Date(ISO format)

Thanks
Sharon

WilliamB’s picture

Facing the same issue.
Updated module date and i now have the error on line 288 too.

The views display fine on the first page, it's when i click on the pager to reach page 2 that it bugs out.

karens’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I am unable to reproduce any problem in the latest code. Get the latest code. This issue says you are using 7.x-2.x-dev, which would be the latest code, but you instead say you are using alpha4, which is NOT the latest. You also have to have the latest -dev version of both Views and CTools. Then you need to clear the caches a couple times and run update.php (which you should do any time you update your code).

After that you need to start all over with a fresh view (in case you have old values stuck in your old view) and try to create a problem. If you still have one there you can reopen, with more details about how the date field is configured and what date values there are in the pages where you are seeing problems.

SharonD214@aol.com’s picture

ok, I have all the latest dev versions of Date, Ctools and views. Do I need to create a new view from scratch or can I just clone the old one?

Sharon

karens’s picture

It depends on what was in the old one. If it used any of the handlers that have changed, that won't work. Since you probably can't tell one way or the other and you're having trouble, the safe route is to create a new view from scratch.