Field 'lastfetch' doesn't have a default value

gianouts - October 11, 2008 - 06:26
Project:Activity Stream
Version:6.x-1.0-beta1
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

Hi,

I was just trying to give this module a go, however found that when as a User I tried to save my Activity Stream settings that I got back a page of errors of "Field 'lastfetch' doesn't have a default value". As a result I have no entries in the activitystream_accounts table. I am using drupal-6.5

Simon

#1

akalsey - October 11, 2008 - 13:43
Status:active» postponed (maintainer needs more info)

What database server are you using. What's the version of that server?

I can't think of any reason that lastfetch actually needs a default value, but this might be a requirement of your DB server.

#2

gianouts - October 11, 2008 - 22:29

I'm using MySQL 5.0.67-community-nt . I actually did a fresh install yesterday of MySQL, php-5.2.5-win32, and drupal-6.5. The table is setup as follows.

mysql> show columns from activitystream_accounts;
+-----------+------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------+------------------+------+-----+---------+-------+
| uid | int(10) unsigned | NO | | 0 | |
| module | varchar(255) | YES | | NULL | |
| userid | varchar(255) | YES | | NULL | |
| password | varchar(255) | YES | | NULL | |
| feed | varchar(255) | YES | | NULL | |
| lastfetch | datetime | NO | | NULL | |
+-----------+------------------+------+-----+---------+-------+
6 rows in set (0.03 sec)

#3

akalsey - October 12, 2008 - 15:36

Run this database command and tell me if it solves the problem...

ALTER TABLE activitystream_accounts CHANGE COLUMN `lastfetch` `lastfecth` timestamp NOT NULL default 0;

If you're using database table prefixes, you'll need to change the table name in that query to include the prefix.

#4

akalsey - October 14, 2008 - 04:44
Status:postponed (maintainer needs more info)» fixed

Fixed in Beta 2. You'll need to uninstall the module (using the uninstall tab on the modules page) and install Beta 2 from scratch.

#5

gianouts - October 18, 2008 - 00:20

Excellent. Beta 2 is working great. Thanks

#6

Anonymous (not verified) - November 1, 2008 - 00:24
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.