Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 36
  1. #21
    Join Date
    Jan 2012
    Posts
    4
    Plugin Contributions
    0

    Default Re: Error during Database setup

    This site was down for a bit, now it's back. I think this is the last one I'll post on the installation problem. I went ahead and changed the name of the admin folder and used it to get into the admin section. I didn't have to change anything in the configure.php.

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

    Default Re: Error during Database setup

    thanks for the extra info dancingchimes I will try the same on my side

  3. #23
    Join Date
    Dec 2011
    Posts
    27
    Plugin Contributions
    0

    Default Re: Error during Database setup

    I managed to install and can access the new store, however when I try go to the renamed admin folder I get

    an Error occured please refresh and try again.

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

    Default Re: Error during Database setup

    Quote Originally Posted by dancingchimes View Post
    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.
    Quote Originally Posted by eastboy View Post
    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
    Both of you didn't read the instructions, and just skipped right over the bold text saying that you don't need to do the configure.php edits in v1.5.0
    But, to indulge, the document has been updated with a new dedicated section specific to 1.5.0 so that people will hopefully actually read the full details.
    .

    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. #25
    Join Date
    Dec 2011
    Posts
    27
    Plugin Contributions
    0

    Default Re: Error during Database setup

    apologies, in all the excitment forgot to RTFM ;)
    will continue the installing.

    Guess we can close this thread

    Thanks Again

  6. #26
    Join Date
    Feb 2012
    Posts
    1
    Plugin Contributions
    0

    Default Re: Error during Database setup

    I too am experiencing the same problem. My configuration is Windows 2008 R2, with IIS7.5 and MySQL 5.4. The log file reads as follows:

    [28-Feb-2012 19:57:10 UTC] PHP Fatal error: 1101:BLOB/TEXT column 'page_parameters' can't have a default value :: CREATE TABLE JAadmin_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 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 E:\WebApps\Store\includes\classes\db\mysql\query_factory.php on line 101

    If anyone has seen this, please let me know.

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

    Default Re: Error during Database setup

    Same answer as I posted in post #17 above.
    .

    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. #28
    Join Date
    Dec 2011
    Posts
    44
    Plugin Contributions
    0

    Default Re: Error during Database setup

    I also had this problem today. I had to change the sql lines both the page_parameters and gzpost values before the installation would proceed (exactly as described in previous posts).

    I had previously been running 1.3.9 and not seen this before. I deleted 1.3.9 before installing 1.5, which when the problem occurred (during installation).

    Apart from the version of Zen Cart, the only difference I can think of between not seeing the problem and seeing it is that I am now running IP-based virtual hosts.

  9. #29
    Join Date
    Dec 2011
    Posts
    44
    Plugin Contributions
    0

    Default Re: Error during Database setup

    Quote Originally Posted by dancingchimes View Post
    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.
    I'm having the same problem but I can't fix it by declaring a default value for gzpost as MySQL won't allow it (and the documentation does say that default values are not allowed for mediumblobs).

    My error message is "PHP Fatal error: 1364:Field 'gzpost' doesn't have a default value :: insert into admin_activity_log (access_date, admin_id, page_accessed, page_parameters, ip_address) values (now(), '0', 'Log found to be empty. Logging started.', '', '192.168.0.11') in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\1\includes\classes\db\mysql\query_factory.php on line 101 "

    Unfortunately, line 101 in query_factory.php just appears to be an error handler.

    It looks like the next stage would be to find all PHP code that updates the admin_activity_log table and amend it to put something into the gzpost field but that will take ages.

    Has anyone found an easier way around this?

  10. #30
    Join Date
    Dec 2011
    Posts
    44
    Plugin Contributions
    0

    Default Re: Error during Database setup

    I've done bit more investigation into why this may be happening.

    Zen Cart 1.3.9h
    zc_install/sql/mysql_zencart.sql:
    CREATE TABLE admin_activity_log (
    log_id int(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,
    ip_address varchar(15) NOT NULL default '',
    PRIMARY KEY (log_id),
    KEY idx_page_accessed_zen (page_accessed),
    KEY idx_access_date_zen (access_date),
    KEY idx_ip_zen (ip_address)
    )

    Zen Cart v1.5.0
    zc_install/sql/mysql_zencart.sql:
    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 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)
    )

    That doesn't help to fix it of course, but it does explain why I didn't have this problem with 1.3.9.

 

 
Page 3 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