VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: DadoO on November 29, 2017, 19:04:23 PM

Title: After Updating to 3.2.6 --> Error with coupons
Post by: DadoO on November 29, 2017, 19:04:23 PM
Another problem at this date
Yesterday I had seen the wrong dates, valid date of coupons 6 monts and I See 2016, after a moment 2025 another moment 2001 !!!
Incredible

Now break !

0 DateTime::__construct(): Failed to parse time string (1527616983) at position 8 (8): Unexpected character

I have tried "Optimize Table" but failled
It seems to be a problem with division ? A script ?

Could U see for the big problem !

Thanks in advance

Title: Re: After Updating to 3.2.6 --> Error with coupons
Post by: DadoO on November 29, 2017, 19:37:34 PM
Only exists when you create a NEW coupon

Another error :

0 DateTime::__construct(): Failed to parse time string (1527618923) at position 8 (2): Unexpected character

Editing, deleting works fine, but creating doesn't work :(
Title: Re: After Updating to 3.2.6 --> Error with coupons
Post by: aftertaf on November 29, 2017, 22:42:55 PM
for me the proposed end date is weird as...
once was 1979, then 2025
but when i save it saves fine and saves +1yr from now.
Title: Re: After Updating to 3.2.6 --> Error with coupons
Post by: DadoO on December 01, 2017, 10:46:26 AM
Hello
I have tried this solution found in dev.virtuemart, but donesn't work, same problems :(

Quotebranches/com_virtuemart.3.0.12.4/administrator/components/com_virtuemart/install/install.sql

  `percent_or_total` enum('percent','total') NOT NULL DEFAULT 'percent',

  `coupon_type` enum('gift','permanent') NOT NULL DEFAULT 'gift',

  `coupon_value` decimal(15,5) NOT NULL DEFAULT '0.00000',

  `coupon_start_date` datetime,

  `coupon_expiry_date` datetime,

  `coupon_start_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',

  `coupon_expiry_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',

  `coupon_value_valid` decimal(15,5) NOT NULL DEFAULT '0.00000',

  `coupon_used` varchar(200) NOT NULL DEFAULT '',

  `published` tinyint(1) NOT NULL DEFAULT '1',
Title: Re: After Updating to 3.2.6 --> Error with coupons
Post by: DadoO on December 03, 2017, 22:42:17 PM
Up for it doesn't work !

Quote9679          29/11/2017 19:24    Max Milbers    

- fixed broken "new" coupon (just providing a default for the db)


Have you find a solution for ?
Title: Re: After Updating to 3.2.6 --> Error with coupons
Post by: SirBoerky on December 06, 2017, 07:40:45 AM
I have the same problem after the last update ....


Editing and saving existing coupons works. But I can not create new coupons.

You receive the following error message: DateTime :: __ construct (): Failed to parse time string (1528262935) at position 7 (9): Unexpected character
Title: Re: After Updating to 3.2.6 --> Error with coupons
Post by: jenkinhill on December 06, 2017, 10:58:34 AM
Is fixed from revision 9679  (and will be included in the next public release)   
- fixed broken "new" coupon (just providing a default for the db)

http://dev.virtuemart.net/projects/virtuemart/repository