Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2008
    Posts
    54
    Plugin Contributions
    0

    Default 1292:Incorrect date value when trying to add a special with expiry date

    Hi, guys,

    not a question of life and death here, but it seems interesting to me:

    when trying to add a new special with an expiry date, I recieve this error log:

    Request URI: /admin/specials.php?page=1&action=update
    #1 trigger_error() called at [/home/site/public_html/includes/classes/db/mysql/query_factory.php:171]
    #2 queryFactory->show_error() called at [/home/site/public_html/includes/classes/db/mysql/query_factory.php:143]
    #3 queryFactory->set_error() called at [/home/site/public_html/includes/classes/db/mysql/query_factory.php:270]
    #4 queryFactory->Execute() called at [/home/site/public_html/admin/specials.php:103]
    --> PHP Fatal error: 1292:Incorrect date value: '20292301' for column 'expires_date' at row 1 :: UPDATE specials
    SET specials_new_products_price = '13.0833',
    specials_last_modified = now(),
    expires_date = '20292301',
    specials_date_available = '0001-01-01'
    WHERE specials_id = 263 ==> (as called by) /home/site/public_html/zoe/specials.php on line 103 <== in /home/site/public_html/includes/classes/db/mysql/query_factory.php on line 171.

    file specials.php is unchanged (1.5.6c)
    table specials seems to be unchanged too...

    I can easily run on specials without expiry date, but does anybody know, what is triggering this problem?

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,704
    Plugin Contributions
    123

    Default Re: 1292:Incorrect date value when trying to add a special with expiry date

    what value are you putting in the expiry date field when you create the special?
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Sep 2008
    Posts
    54
    Plugin Contributions
    0

    Default Re: 1292:Incorrect date value when trying to add a special with expiry date

    Tried multiple dates - mainly 2026 to 2028. Not happening all the time, though

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,704
    Plugin Contributions
    123

    Default Re: 1292:Incorrect date value when trying to add a special with expiry date

    What is the *exact value* that goes into the expiry date field? You should be entering MM/DD/YYYY assuming you have made no other changes.
    So for Dec. 31, 2026, enter 12/31/2026.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Sep 2008
    Posts
    54
    Plugin Contributions
    0

    Default Re: 1292:Incorrect date value when trying to add a special with expiry date

    So, for example, I use a value like this: 01.11.2029

    I donīt add these dates manually - they are added by the table on the right side of the row

 

 

Similar Threads

  1. Replies: 2
    Last Post: 28 Oct 2016, 03:38 AM
  2. v154 Special product expiry date
    By Cenkki in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 Feb 2015, 03:28 PM
  3. Expiry date validation for Special product
    By ashishgandhi in forum Setting Up Specials and SaleMaker
    Replies: 3
    Last Post: 21 Feb 2008, 01:28 PM
  4. Why Can't I See The Expiry Date On Special or Featured Product?
    By Robert T in forum Setting Up Specials and SaleMaker
    Replies: 4
    Last Post: 13 Mar 2007, 10:24 PM
  5. Expiry Date - Blank Value
    By stehodges in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 6 Sep 2006, 03:23 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