Hi Karen,

I think I'm seeing a conflict between your date module and other CCK fields. date seems to prevent me from configuring other cck fields. I get a white screen when trying to configure other fields, but I can access config for the date fields without a problem. This error also does not prevent users from entering data into any fields.

Granted, i have upgraded your release candidates religiously so there may be flab in my database at some point.

My config:

Drupal 5.10
CCK 5.x-1.7
Date API 5.x-2.0-rc7
Date 5.x-2.0-rc7
Date Timezone 5.x-2.0-rc7

When this release of date is enabled I cannot go to to configure the fields:
http://www.squarefour.org/admin/content/types/customtype/fields/customfield

If I disable the module then I can access the other field configurations, though I am seeing an error throughout the process. Here is the error:


user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '>= '') ORDER BY ASC LIMIT 0, 4' at line 1 query: SELECT node.nid, field_date_value, node.title AS node_title, node.changed AS node_changed, node_data_field_date.field_date_value AS node_data_field_date_field_date_value FROM node node WHERE (.field_date_value_default >= '') ORDER BY ASC LIMIT 0, 4 in /home/crushyou/public_html/squarefour/includes/database.mysql.inc on line 172.

I have a workaround for now, but I wanted to post this for you as I know you are well invested in making your date module awesome (which it mostly is).

Comments

seaneffel’s picture

Sorry, you obviously can't access the link above, I only wanted to show you the path as an example. Now everyone knows I'm a professional playground game player. My cover is blown :)

seaneffel’s picture

Karen, I take that back about submitting nodes/fields. I am unable to submit nodes that contain non-date cck fields. I get various messages on various browsers that more or less say "unexpected error". When I disable the date modules, I have no problem submitting the nodes.

What do you think, is it a module bug or is it my sloppily updated database?

karens’s picture

Status: Active » Postponed (maintainer needs more info)

What other CCK fields are you using? It may be a conflict with a specific field, I certainly don't see this behavior on my setup.

seaneffel’s picture

Karen,

Filefield 5.x-2.3
Imagefield 5.x-2.1

I reverted back to Date 5.x-1.8 for the time being but if you want a closer look then I can certain set up up with admin access.

Sean

karens’s picture

For starters, move up to the latest -dev version of the 5.2 code. There are *lots* of fixes in there (I'm very close to another release). Then clear all your caches, especially cache_content. Then pull up your date field settings, double-check that they look OK, and re-save them just to be sure.

Where is that SQL query coming from? Do you have a view somewhere that uses a date field that you later changed or deleted? Double-check your views list and make sure any views that have date fields in them are still set up correctly with valid date fields. If the query doesn't go away after that, delete any views with date fields (you can re-create them later, but we need to be sure some view isn't trying to run).

If you see that query on every page, you may have a view in a block that has bad date field data in it, so check your blocks and get rid of any that might hold views with date fields.

Once you get rid of the query, you can re-build the views and blocks you removed.

karens’s picture

Oh, and clear cache_views, too, there could be old, bad, date field info stuck in that cache.

karens’s picture

And switching back and forth between Date 5.2 and Date 5.1 is almost certain to corrupt your data, so pulling up each date field and making sure it's set up right and re-saving it will be critical to getting things working.

karens’s picture

Status: Postponed (maintainer needs more info) » Fixed

No more information, assuming this is not really a Date issue.

Status: Fixed » Closed (fixed)

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