Webraydian's Forum
November 26, 2009, 04:34:33 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: NFSP updated - feature added. NFSP v3.3.5 details...
 
   Home   Help Search Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Installation error for TIH 2.0... help!  (Read 7307 times)
0 Members and 1 Guest are viewing this topic.
Aemornion


Karma: 0
Offline Offline

Posts: 1


View Profile
« on: June 26, 2006, 05:34:56 AM »

First of all, thanks alot for a great component, it's just the thing i've been looking for! But i cant get it to install it Sad

SQL Error DB function failed with error number 1067
Invalid default value for 'day' SQL=CREATE TABLE `jos_tdihistory` ( `id` int(11) unsigned NOT NULL auto_increment, `day` tinyint(2) NOT NULL default '', `month` tinyint(2) NOT NULL default '', `year` int(4) NOT NULL default '', `event` text NOT NULL default '', `date_mod` datetime NOT NULL default '0000-00-00 00:00:00', `date_entered` datetime NOT NULL default '0000-00-00 00:00:00', `displays` int(11) unsigned NOT NULL default '0', `feventid` int(11) unsigned default '0', `era` tinyint(1) NOT NULL default '0', `published` tinyint(1) NOT NULL default '0', PRIMARY KEY (`id`) ) TYPE=MyISAM
SQL =

CREATE TABLE `jos_tdihistory` (
          `id` int(11) unsigned NOT NULL auto_increment,
          `day` tinyint(2) NOT NULL default '',
          `month` tinyint(2) NOT NULL default '',
          `year` int(4) NOT NULL default '',
          `event` text NOT NULL default '',
          `date_mod` datetime NOT NULL default '0000-00-00 00:00:00',
          `date_entered` datetime NOT NULL default '0000-00-00 00:00:00',
          `displays` int(11) unsigned NOT NULL default '0',
          `feventid` int(11) unsigned default '0',
          `era` tinyint(1) NOT NULL default '0',
          `published` tinyint(1) NOT NULL default '0',
          PRIMARY KEY  (`id`)
        ) TYPE=MyISAM

I'm running on Joomla 1.0.8, PHP 4.4.2 and MySQL 5.0.15

I believe that the problem might be in the MySQL version but if there a chance to get it working on 5.0 i would be more then happy!

Hoping for a reply!

Cheers!
Logged
typan
Newbie
*

Karma: 0
Offline Offline

Posts: 1


View Profile
« Reply #1 on: August 18, 2007, 09:40:09 PM »

Had the same issue on a MySQL 5 setup.

Unzip the today_in_history component and open today_in_history.xml file.

Change the following lines:
  `day` tinyint(2) NOT NULL default '',
   `month` tinyint(2) NOT NULL default '',
   `year` int(4) NOT NULL default '',


To:
   `day` tinyint(2) NOT NULL default '01',
   `month` tinyint(2) NOT NULL default '01',
   `year` int(4) NOT NULL default '2000',



Rezip the component & upload.
Component will now install.
« Last Edit: August 18, 2007, 09:41:15 PM by typan » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!