Closed (fixed)
Project:
Daily
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
22 Jan 2006 at 16:19 UTC
Updated:
15 Jul 2006 at 17:31 UTC
The daily node type displays an incorrect date when the story is published. The date is shown as:
, December 31, 1969
No matter what date is chosen for the node.
Comments
Comment #1
Frodo Looijaard commentedI need some more information, as I can not reproduce it at the moment.
Did you run update from a 4.6.0 installation or is this a fresh 4.7.0 install? In the first case, did you run the database update script?
Are you running 4.7.0beta3 or an earlier version or current DRUPAL-4-7 CVS?
Can you explain step by step what you are doing?
Thank you,
Frodo
Comment #2
jacobson commentedFrodo.
I upgraded from 4.6.5. I did run the update.php. I am running beta3.
All I do is create a daily item choosing a date in the future. I post the item. I get the bad date.
HAJ
Comment #3
Frodo Looijaard commentedCan you please run some queries on your database, presuming you have SQL access to it?
First determine the nid of daily item you created. You can see this in the URL when you select the node; for example,
node/15means nid 15.Run the following queries, replacing %NID% by the just found nid:
The first query will probably return 0 for the date field.
Thank you,
Frodo
Comment #4
Frodo Looijaard commentedAnd yet another question: does this only happen for dates in the future, or for all dates?
Thanks,
Frodo
Comment #5
jacobson commentedFrodo.
Did as you asked.
Query: SELECT * FROM daily WHERE nid = 1
Returns: nid 1 / date 20060122 / autopublish 1
Query: SELECT * FROM node WHERE nid = 1
Returns: 1 daily-daily SilverDeer Announces Launch of Rick Deckelbaum & A... 1 1 1137880755 1137946586 0 1 0 0 1
It doesn't matter what date I put in for the daily item -- past or future -- the same date is displayed -- ", December 31, 1969".
HAJ
Comment #6
jacobson commentedAnother piece of information. I tried creating some new daily items today. I successfully created new events and a new news item, but none show up as records in the daily table.
Comment #7
Frodo Looijaard commentedFor the moment, I have no idea where to look for the problem.
Some more questions/suggestions:
Frodo
Comment #8
jacobson commentedFrodo.
PHP version is 4.4.1. I will download the latest module and install. Thanks.
Comment #9
jacobson commentedFrodo.
I installed the latest update. No change in behavior. Still get the wrong date when the node is published. Here are some other observations that may help you.
+ THe published node doesn't display "News" in front of the date.
+ Although the date displays as December 31, 1969, the date that is shown if I try to edit the node is January 1, 1900.
+ If I correct the date and preview the node, the preview correctly shows "News, January 28, 2006", but when the item gets published, the date is incorrect again.
HAJ
Comment #10
jacobson commentedFrodo.
Another observation that may help.
+ I have a vocabulary that is associated with Daily nodes in addition to the "daily" vocabulary. The vocabulary is not required. When I create a new daily node, I choose "" for this vocabulary. When I edit the node, I have to set this vocabulary to "" again. The setting for this vocabulary is NOT remembered.
Comment #11
jacobson commentedFrodo.
I've solved the problem. I was missing the daily_random table. Upgrade from 4.6 to 4.7, and I bet 4.6 didn't have daily_random. I added the table, and now all works fine, except when editing a daily node, the "" assigned to my additional vocabulary still is not remembered. HAJ
Comment #12
Frodo Looijaard commentedI presume you did not run update.php. If you did, and the daily_random table was not created, please reopen this or another issue.
Thanks,
Frodo
Comment #13
(not verified) commented