Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2006
    Location
    Dark Side of the Moon
    Posts
    987
    Plugin Contributions
    1

    Default admin_activity_log Error when reseting admin log on IIS Server

    More fun with IIS. This should be an easy fix, but I want to make sure I have the correct default value for 'gzpost':

    [24-Aug-2012 15:10:32 UTC] PHP Fatal error: 1364:Field 'gzpost' doesn't have a default value :: insert into zen_admin_activity_log (access_date, admin_id, page_accessed, page_parameters, ip_address) values (now(), '2', 'Log reset by {xxxx[2]}.', '', 'xx.xx.216.90') in \web\domain.com\includes\classes\db\mysql\query_factory.php on line 101

    This doesn't happen on apache.

    So, what should gzpost default to?

    Thanks!

    -chadd

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: admin_activity_log Error when reseting admin log on IIS Server

    As shown here: https://github.com/zencart/zencart/c...a0798af4ab9917, simply add the one-line for
    Code:
     gzpost => ''
    Don't do the other changes shown there, since they're specific to the new version.
    .

    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.

  3. #3
    Join Date
    Apr 2006
    Location
    Dark Side of the Moon
    Posts
    987
    Plugin Contributions
    1

    Default Re: admin_activity_log Error when reseting admin log on IIS Server

    Thanks Doc! That did the trick!

  4. #4
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default Re: admin_activity_log Error when reseting admin log on IIS Server

    Hi DrByte. I have the same problem on Apache. Unfortunately, I couldn't open the link that you listed above (404). Could you give me more direction?
    Thanks

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: admin_activity_log Error when reseting admin log on IIS Server

    link updated
    .

    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.

  6. #6
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default Re: admin_activity_log Error when reseting admin log on IIS Server

    I got it. Thanks

  7. #7
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default Re: admin_activity_log Error when reseting admin log on IIS Server

    updated to 1.5.1. The problem is still there.
    Name:  Capture1.PNG
Views: 135
Size:  10.1 KB
    When I clicked the reset button, an error message appeared.
    Code:
    [13-Nov-2012 04:03:01 UTC] 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(), '1', 'Log reset by {su35[1]}.', '', '127.0.0.1') in H:\zencart15\includes\classes\db\mysql\query_factory.php on line 120
    I had check the init_admin_history.php, it's the 1.5.1 version.
    Last edited by su35; 13 Nov 2012 at 05:11 AM.

  8. #8
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default Re: admin_activity_log Error when reseting admin log on IIS Server

    I have checked the database by phpmyadmin. The logs was reset exactly.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: admin_activity_log Error when reseting admin log on IIS Server

    Do the same fix at line 264 of /admin/admin_activity.php
    .

    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.

  10. #10
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default Re: admin_activity_log Error when reseting admin log on IIS Server

    Thanks DrByte.

 

 

Similar Threads

  1. v153 When I try to log into the admin I get "Internal Server Error"
    By quest2u in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 23 Dec 2014, 01:26 AM
  2. Migrated store from IIS 7 to Mac OS X Server.app, cannot log in
    By p3rryman in forum Installing on a Mac Server
    Replies: 3
    Last Post: 7 Feb 2014, 06:22 PM
  3. "An Error Occurred" on IIS Server, have log
    By dgusahospitality in forum Installing on a Windows Server
    Replies: 4
    Last Post: 25 Jun 2012, 04:47 AM
  4. Can't login to admin, no error msg. Hosted on private server IIS 6 win 2k3
    By <OverFlow> in forum Installing on a Windows Server
    Replies: 3
    Last Post: 11 Oct 2009, 09:55 PM
  5. 500 Internal Server Error when trying to log into admin
    By kbalona in forum General Questions
    Replies: 3
    Last Post: 3 May 2007, 11:29 PM

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