VirtueMart Forum

VirtueMart 2 + 3 => 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:
Code: [Select]
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
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
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