VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Ventsi Genchev on November 23, 2017, 19:16:28 PM

Title: VM 3.2.6 - New Coupon Error
Post by: Ventsi Genchev on November 23, 2017, 19:16:28 PM
VM 3.2.6
J 3.8.2
PHP 7.0
Shop - 2 Languages

ORDERS & SHOPPERS -> Coupons -> New:
An error has occurred.
0 DateTime::__construct(): Failed to parse time string (1514052916) at position 8 (1): Unexpected character
Title: Re: VM 3.2.6 - New Coupon Error
Post by: Ventsi Genchev on November 24, 2017, 09:26:47 AM
Does not anyone have this problem?  :)

With VM 3.2.4 a new coupon can be launched. After updating the VM to version 3.2.6, it displays the message in my first post.
Title: Re: VM 3.2.6 - New Coupon Error
Post by: franzpeter on November 26, 2017, 12:14:53 PM
There is a patch to solve the problem at the moment:
https://www.rupostel.com/phpBB3/viewtopic.php?f=7&t=3735 (https://www.rupostel.com/phpBB3/viewtopic.php?f=7&t=3735)
Title: Re: VM 3.2.6 - New Coupon Error
Post by: Ventsi Genchev on November 27, 2017, 10:27:57 AM
Thank you very much, franzpeter.

I had already decided that only I have this problem and is somewhere on my site.

Best regards,
Venci
Title: Re: VM 3.2.6 - New Coupon Error
Post by: franzpeter on November 27, 2017, 15:38:15 PM
Suggestion: I would set - with phpmyadmin - those datetime columns: coupon_start_date and coupon_expiry_date both  with a Standard of: 0000-00-00 00:00:00
Title: Re: VM 3.2.6 - New Coupon Error
Post by: Ventsi Genchev on November 27, 2017, 18:15:56 PM
Thank you. I'll try.
Title: Re: VM 3.2.6 - New Coupon Error
Post by: Milbo on November 28, 2017, 12:52:56 PM
Quote from: franzpeter on November 27, 2017, 15:38:15 PM
Suggestion: I would set - with phpmyadmin - those datetime columns: coupon_start_date and coupon_expiry_date both  with a Standard of: 0000-00-00 00:00:00

and that is also the right fix, the one we will provide in the new version. Btw Venci, just that you know, we discussed a lot about that problem and Stan just pushed his solution in his forum. And the solution above is from my point of view the real solution. I dont know the sideeffects of Stans solution.
Title: Re: VM 3.2.6 - New Coupon Error
Post by: Ventsi Genchev on November 28, 2017, 13:43:22 PM
Clearly. I understand, Max, and thank you. Thanks also to franzpeter.
Title: Re: VM 3.2.6 - New Coupon Error
Post by: jbittner on December 04, 2017, 22:46:08 PM
Quote from: franzpeter on November 27, 2017, 15:38:15 PM
Suggestion: I would set - with phpmyadmin - those datetime columns: coupon_start_date and coupon_expiry_date both  with a Standard of: 0000-00-00 00:00:00
This did not work. 
Stan's fix in conjuction with the above change does fix the problem.

https://www.rupostel.com/phpBB3/viewtopic.php?f=7&t=3735