Author Topic: After Updating to 3.2.6 --> Error with coupons  (Read 265 times)

DadoO

  • Beginner
  • *
  • Posts: 10
  • A beginner
After Updating to 3.2.6 --> Error with coupons
« 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


DadoO

  • Beginner
  • *
  • Posts: 10
  • A beginner
Re: After Updating to 3.2.6 --> Error with coupons
« Reply #1 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 :(

aftertaf

  • Jr. Member
  • **
  • Posts: 156
    • sO couture
  • VirtueMart Version: 3.2.4
Re: After Updating to 3.2.6 --> Error with coupons
« Reply #2 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.
Webmaster for my wife (link in my profile ;)
Extensions / plugins : POSForWebshops, TemplatecreatorCK ,MaximenuCK, and PageBuilderCK, VM BatchEdit Pro, VM CustomFilters Pro, Awocoupon Pro, slogin, supersaas,  among other things...
Joomla! 3.8.2//VM 3.2.4//PHP7.0.18 & mariadb 10.1.22 on Debian
big up to notepad++!!!!

DadoO

  • Beginner
  • *
  • Posts: 10
  • A beginner
Re: After Updating to 3.2.6 --> Error with coupons
« Reply #3 on: December 01, 2017, 10:46:26 am »
Hello
I have tried this solution found in dev.virtuemart, but donesn't work, same problems :(

Quote
branches/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',

DadoO

  • Beginner
  • *
  • Posts: 10
  • A beginner
Re: After Updating to 3.2.6 --> Error with coupons
« Reply #4 on: December 03, 2017, 22:42:17 pm »
Up for it doesn't work !

Quote
9679          29/11/2017 19:24    Max Milbers    

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


Have you find a solution for ?

SirBoerky

  • Beginner
  • *
  • Posts: 1
  • A beginner
Re: After Updating to 3.2.6 --> Error with coupons
« Reply #5 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

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26415
  • Always on vacation
    • Jenkin Hill Internet
Re: After Updating to 3.2.6 --> Error with coupons
« Reply #6 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
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM3.2.8 on Joomla 3.8.2 PHP 7.0.25

Testing VM3.2.8 on J3.8.3RC