Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 36
  1. #11
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Error during Database setup

    What's in your my.cnf for your mysql configuration settings?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #12
    Join Date
    Dec 2011
    Posts
    27
    Plugin Contributions
    0

    Default Re: Error during Database setup

    I did a search on my HDD but cannot find the my.cnf file
    Where should this file be?

  3. #13
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Error during Database setup

    I don't know where it is on your unique computer setup. Perhaps the program files/mysql folder.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #14
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Error during Database setup

    Quote Originally Posted by eastboy View Post
    Fatal error: 1101:BLOB/TEXT column 'page_parameters' can't have a default value
    Strictly speaking the statement is true.
    However, in practice, this SQL has been there like that for several years without throwing any error.

    You can change the SQL for your specific needs by editing:
    /zc_install/sql/mysql_zencart.sql
    line 121 says:
    Code:
      page_parameters text default '',
    change it to:
    Code:
      page_parameters text NOT NULL default '',
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #15
    Join Date
    Jan 2012
    Posts
    4
    Plugin Contributions
    0

    Default Re: Error during Database setup

    I just tried to install v1.5 also and had the same error.

    [05-Jan-2012 21:32:36] PHP Fatal error: 1101:BLOB/TEXT column 'page_parameters' can't have a default value :: CREATE TABLE admin_activity_log ( log_id bigint(15) NOT NULL auto_increment, access_date datetime NOT NULL default '0001-01-01 00:00:00', admin_id int(11) NOT NULL default '0', page_accessed varchar(80) NOT NULL default '', page_parameters text NOT NULL default '', ip_address varchar(20) NOT NULL default '', flagged tinyint NOT NULL default '0', attention varchar(255) NOT NULL default '', gzpost mediumblob NOT NULL default '', PRIMARY KEY (log_id), KEY idx_page_accessed_zen (page_accessed), KEY idx_access_date_zen (access_date), KEY idx_flagged_zen (flagged), KEY idx_ip_zen (ip_address) ) ENGINE=MyISAM COLLATE utf8_general_ci; in C:\inetpub\wwwroot\store\includes\classes\db\mysql\query_factory.php on line 101

    I was able to install the v 1.39 with no problem on a Windows 7 machine running IIS. The first try at the zencart I saw the download new version notice and scraped everything and did a fresh install of v1.5 and got the same error.

    Applied the NO NULL to the sql file as suggested and got the same error still.

  6. #16
    Join Date
    Dec 2011
    Posts
    27
    Plugin Contributions
    0

    Default Re: Error during Database setup

    thanks for suggestion DrByte but unfortunately still get error
    i made the changes as you said but got this error

    Installation In Progress...

    ~
    1101 BLOB/TEXT column 'page_parameters' can't have a default value
    in:
    [CREATE TABLE admin_activity_log ( log_id bigint(15) NOT NULL auto_increment, access_date datetime NOT NULL default '0001-01-01 00:00:00', admin_id int(11) NOT NULL default '0', page_accessed varchar(80) NOT NULL default '', page_parameters text NOT NULL default '', ip_address varchar(20) NOT NULL default '', flagged tinyint NOT NULL default '0', attention varchar(255) NOT NULL default '', gzpost mediumblob NOT NULL default '', PRIMARY KEY (log_id), KEY idx_page_accessed_zen (page_accessed), KEY idx_access_date_zen (access_date), KEY idx_flagged_zen (flagged), KEY idx_ip_zen (ip_address) ) ENGINE=MyISAM COLLATE utf8_general_ci;]

    Fatal error: 1101:BLOB/TEXT column 'page_parameters' can't have a default value :: CREATE TABLE admin_activity_log ( log_id bigint(15) NOT NULL auto_increment, access_date datetime NOT NULL default '0001-01-01 00:00:00', admin_id int(11) NOT NULL default '0', page_accessed varchar(80) NOT NULL default '', page_parameters text NOT NULL default '', ip_address varchar(20) NOT NULL default '', flagged tinyint NOT NULL default '0', attention varchar(255) NOT NULL default '', gzpost mediumblob NOT NULL default '', PRIMARY KEY (log_id), KEY idx_page_accessed_zen (page_accessed), KEY idx_access_date_zen (access_date), KEY idx_flagged_zen (flagged), KEY idx_ip_zen (ip_address) ) ENGINE=MyISAM COLLATE utf8_general_ci; in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\demo\includes\classes\db\mysql\query_factory.php on line 101

  7. #17
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Error during Database setup

    Totally bizarre as to why it's never been an issue before, but change this:
    /zc_install/sql/mysql_zencart.sql
    line 121 says:
    Code:
      page_parameters text default '',
    change it to:
    Code:
      page_parameters text NOT NULL,
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #18
    Join Date
    Jan 2012
    Posts
    4
    Plugin Contributions
    0

    Default Re: Error during Database setup

    page_parameters text NOT NULL

    doesn't work either. It errors on line 125 for 'gzpost'. I also changed that line to gzpost mediumblob NOT NULL

    And the installation went through successfully.

    BTW, your documentation on how to change the admin folder needs to be updated also. The line no longer shows the simple directory/folder name, instead it's a parse statement:

    define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');

    Please advise how to achieve this part of the installation.

  9. #19
    Join Date
    Dec 2011
    Posts
    27
    Plugin Contributions
    0

    Default Re: Error during Database setup

    Hello Drbyte

    Just to confirm with dancingchimes above, changing the page_parameters text NOT NULL did not fix it.
    I then made the same change as dancingchimes namely gzpost mediumblob NOT NULL

    The installation then proceeded successfully.

    and to follow further in dancingchimes footsteps. I am not sure how to edit the configure.php file after renaming my admin folder

    Thanks
    Eastboy
    Last edited by eastboy; 6 Jan 2012 at 04:44 PM.

  10. #20
    Join Date
    Jan 2012
    Posts
    4
    Plugin Contributions
    0

    Default Re: Error during Database setup

    Ok. One more thing. After the installation, I can go into the store ok but not the admin part. It complained that gzpost doesn't have a default value. I went into the database, in the 'admin-activity-log' table. Found gzpost and changed its value to 'null'. Not the default null but checking the null (from phpMyAdmin). Not familiar enough with mysql to tell what the difference is. But it worked for me. I can get into the admin section now.

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. v153 stalls at database setup during installation
    By timwkrause in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 13 Jul 2014, 02:53 AM
  2. Blank screen during database setup on WAMP and XP
    By dakos in forum Installing on a Windows Server
    Replies: 9
    Last Post: 11 Aug 2009, 11:31 AM
  3. Error on Database Setup during Install
    By DearMatty in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 18 Jul 2006, 07:16 AM
  4. Error during Database Setup in Install
    By DearMatty in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 18 Jul 2006, 07:07 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR