Results 1 to 10 of 10
  1. #1
    Join Date
    Sep 2006
    Location
    Australia
    Posts
    80
    Plugin Contributions
    0

    Default Auspost Install Error

    When installing the auspost module I get this message after clicking on upload in Admin/Tools/Install SQL patches

    #
    # Table structure for table `geo_zones`
    #

    DROP TABLE IF EXISTS geo_zones;
    CREATE TABLE geo_zones (
    geo_zone_id int(11) NOT NULL auto_increment,
    geo_zone_name varchar(32) NOT NULL default '',
    geo_zone_description varchar(255) NOT NULL default '',
    last_modified datetime default NULL,
    date_added datetime NOT NULL default '',
    PRIMARY KEY (geo_zone_id)
    ) TYPE=MyISAM;

    1067 Invalid default value for 'date_added'
    in:
    [CREATE TABLE geo_zones ( geo_zone_id int(11) NOT NULL auto_increment, geo_zone_name varchar(32) NOT NULL default '', geo_zone_description varchar(255) NOT NULL default '', last_modified datetime default NULL, date_added datetime NOT NULL default '', PRIMARY KEY (geo_zone_id) ) TYPE=MyISAM;]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

    What does this mean?

    Thanks
    Katie
    Last edited by lucky__starre; 25 Sep 2006 at 03:52 AM.

  2. #2
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: Auspost Install Error

    Quote Originally Posted by lucky__starre

    date_added datetime NOT NULL default '',


    1067 Invalid default value for 'date_added'

    Katie
    It means you are trying to insert wrong default value of date
    Well, where is this script placed?>
    San
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  3. #3
    Join Date
    Dec 2006
    Location
    Victoria, Australia
    Posts
    360
    Plugin Contributions
    0

    Default Re: Auspost Install Error

    I have had the same problem. I added the provided SQL patch into the tools>SQL Patches in Administration and got that error.
    Part of the provided script is as follows:




    #
    # Table structure for table `geo_zones`
    #

    DROP TABLE IF EXISTS geo_zones;
    CREATE TABLE geo_zones (
    geo_zone_id int(11) NOT NULL auto_increment,
    geo_zone_name varchar(32) NOT NULL default '',
    geo_zone_description varchar(255) NOT NULL default '',
    last_modified datetime default NULL,
    date_added datetime NOT NULL default '',
    PRIMARY KEY (geo_zone_id)
    ) TYPE=MyISAM;

    #
    # Dumping data for table `geo_zones`
    #

    INSERT INTO geo_zones (geo_zone_id, geo_zone_name, geo_zone_description, last_modified, date_added) VALUES ('1', 'Australian Zones', 'All Local Zones', NULL, '');
    INSERT INTO geo_zones (geo_zone_id, geo_zone_name, geo_zone_description, last_modified, date_added) VALUES ('2', 'World Zones', 'All International Zones', NULL, '');



    #
    # Table structure for table `zones_to_geo_zones`
    #

    DROP TABLE IF EXISTS zones_to_geo_zones;
    CREATE TABLE zones_to_geo_zones (
    association_id int(11) NOT NULL auto_increment,
    zone_country_id int(11) NOT NULL default '0',
    zone_id int(11) default NULL,
    geo_zone_id int(11) default NULL,
    last_modified datetime default NULL,
    date_added datetime NOT NULL default '',
    PRIMARY KEY (association_id)
    ) TYPE=MyISAM;

    #
    # Dumping data for table `zones_to_geo_zones`
    #

    INSERT INTO zones_to_geo_zones (association_id, zone_country_id, zone_id, geo_zone_id, last_modified, date_added) VALUES ('', 1, NULL, 2, 'NULL', '');
    INSERT INTO zones_to_geo_zones (association_id, zone_country_id, zone_id, geo_zone_id, last_modified, date_added) VALUES ('', 2, NULL, 2, 'NULL', '');
    INSERT INTO zones_to_geo_zones (association_id, zone_country_id, zone_id, geo_zone_id, last_modified, date_added) VALUES ('', 3, NULL, 2, 'NULL', '');
    INSERT INTO zones_to_geo_zones (association_id, zone_country_id, zone_id, geo_zone_id, last_modified, date_added) VALUES ('', 4, NULL, 2, 'NULL', '');
    INSERT INTO zones_to_geo_zones (association_id, zone_country_id, zone_id, geo_zone_id, last_modified, date_added) VALUES ('', 5, NULL, 2, 'NULL', '');
    INSERT INTO zones_to_geo_zones (association_id, zone_country_id, zone_id, geo_zone_id, last_modified, date_added) VALUES ('', 6, NULL, 2, 'NULL', '');
    INSERT INTO zones_to_geo_zones (association_id, zone_country_id, zone_id, geo_zone_id, last_modified, date_added) VALUES ('', 7, NULL, 2, 'NULL', '');
    INSERT INTO zones_to_geo_zones (association_id, zone_country_id, zone_id, geo_zone_id, last_modified, date_added) VALUES ('', 8, NULL, 2, 'NULL', '');



    Is there some adjustment needed before submitting this Patch?

    What happens is this throws my zen cart web site all over the place.
    This happened two days ago and I had to dump my database and restore it.

    I tried installing this module again with the same frustrating result.
    I am getting nowhere

  4. #4
    Join Date
    Dec 2006
    Location
    Victoria, Australia
    Posts
    360
    Plugin Contributions
    0

    Default Re: Auspost Install Error

    This is an image of the result.
    It took all the right side boxes off and centre info etc and left this:
    Attached Images Attached Images  

  5. #5
    Join Date
    Dec 2006
    Location
    Victoria, Australia
    Posts
    360
    Plugin Contributions
    0

    Default Re: Auspost Install Error

    Ok, I dumped the database again and restored my back up.
    This time before i added the SQL Patched I changed the following (in RED) and it worked. Phew!
    There needs to be a note on this in the download section


    DROP TABLE IF EXISTS geo_zones;
    CREATE TABLE geo_zones (
    geo_zone_id int(11) NOT NULL auto_increment,
    geo_zone_name varchar(32) NOT NULL default '',
    geo_zone_description varchar(255) NOT NULL default '',
    last_modified datetime default NULL,
    date_added datetime NOT NULL default '0001-01-01 00:00:00',
    PRIMARY KEY (geo_zone_id)
    ) TYPE=MyISAM;

    #
    # Dumping data for table `geo_zones`
    #

    INSERT INTO geo_zones (geo_zone_id, geo_zone_name, geo_zone_description, last_modified, date_added) VALUES ('1', 'Australian Zones', 'All Local Zones', NULL, '');
    INSERT INTO geo_zones (geo_zone_id, geo_zone_name, geo_zone_description, last_modified, date_added) VALUES ('2', 'World Zones', 'All International Zones', NULL, '');



    #
    # Table structure for table `zones_to_geo_zones`
    #

    DROP TABLE IF EXISTS zones_to_geo_zones;
    CREATE TABLE zones_to_geo_zones (
    association_id int(11) NOT NULL auto_increment,
    zone_country_id int(11) NOT NULL default '0',
    zone_id int(11) default NULL,
    geo_zone_id int(11) default NULL,
    last_modified datetime default NULL,
    date_added datetime NOT NULL default '0001-01-01 00:00:00',
    PRIMARY KEY (association_id)
    ) TYPE=MyISAM;

  6. #6
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: Auspost Install Error

    Glad that it worked for you!
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  7. #7
    Join Date
    Dec 2006
    Location
    Victoria, Australia
    Posts
    360
    Plugin Contributions
    0

    Default Re: Auspost Install Error

    Thanks so am I

  8. #8
    Join Date
    May 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Auspost Install Error

    Well done on that fix.

    Worked for me too.

    Only wish I found this post yesterday...

  9. #9
    Join Date
    Dec 2006
    Location
    Victoria, Australia
    Posts
    360
    Plugin Contributions
    0

    Default Re: Auspost Install Error

    No problem I am sure I found the answer from somewhere - I am no database expert at all

  10. #10
    Join Date
    Mar 2008
    Location
    Adelaide, SA
    Posts
    32
    Plugin Contributions
    0

    Default Re: Auspost Install Error

    Thanks for the help.

    I only just downloaded this module and it a shame to see that an existing bug has not been fixed. I downloaded it fom the zen cart site.

    Also the instructions told me to add my database prefix to the table names. Then when I ran the sql patch the prefix was doubling up. Zen cart must be smart enough to add them in on it's own.

    Argh thank god for this forum.

 

 

Similar Threads

  1. Auspost Shipping Module with new AusPost API
    By Whiterabbizt in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 30 Apr 2012, 10:23 AM
  2. failed install of Auspost module - now a geo table error
    By bacc in forum Installing on a Windows Server
    Replies: 1
    Last Post: 26 Dec 2008, 02:00 AM
  3. AusPost Error
    By lucky__starre in forum Addon Shipping Modules
    Replies: 1
    Last Post: 9 Aug 2007, 02:26 AM
  4. Problem when install Auspost Module
    By als88 in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 15 Jul 2007, 02:00 AM
  5. AUSPOST Error
    By ALFO in forum Addon Shipping Modules
    Replies: 6
    Last Post: 8 Oct 2006, 01:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg