phocacart stock status - Field 'date' doesn't have a default value

Phoca Cart - complex e-commerce extension
uoppah
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 28 Jun 2023, 16:20

phocacart stock status - Field 'date' doesn't have a default value

Post by uoppah »

I tried to create a new "stock status" but it returns the error "Field 'date' doesn't have a default value". But there is no field date on the page.
Thank you, Simone
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: phocacart stock status - Field 'date' doesn't have a default value

Post by Jan »

Hi, which Phoca Cart version do you use?

Jan
If you find Phoca extensions useful, please support the project
uoppah
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 28 Jun 2023, 16:20

Re: phocacart stock status - Field 'date' doesn't have a default value

Post by uoppah »

Hi, version 4.0.8, joomla 4.3.4
Simone
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: phocacart stock status - Field 'date' doesn't have a default value

Post by Jan »

Do you get the same problem with the latest Beta?
https://github.com/PhocaCz/PhocaCart/re ... 9Beta5.zip

Jan
If you find Phoca extensions useful, please support the project
uoppah
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 28 Jun 2023, 16:20

Re: phocacart stock status - Field 'date' doesn't have a default value

Post by uoppah »

Unfortunately the same error appears
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 388
Joined: 07 Nov 2018, 14:55

Re: phocacart stock status - Field 'date' doesn't have a default value

Post by Nidzo »

I can't reproduce problem. Tried with PC 4.0.7, 4.0.8, and all 4.0.9 betas
How do you fill Stock Status? Do you add image, description... or just name?
Can you optimize your database from phpMyAdmin and from Joomla backend update database structure of Phoca Cart (System>Database> Check Phoca Cart > Update Structure)
Net
Phoca Member
Phoca Member
Posts: 33
Joined: 29 Sep 2022, 00:28

Re: phocacart stock status - Field 'date' doesn't have a default value

Post by Net »

Nidzo wrote: 17 Sep 2023, 13:34 I can't reproduce problem. Tried with PC 4.0.7, 4.0.8, and all 4.0.9 betas
How do you fill Stock Status? Do you add image, description... or just name?
Can you optimize your database from phpMyAdmin and from Joomla backend update database structure of Phoca Cart (System>Database> Check Phoca Cart > Update Structure)
I think this problem has the same root as i posted here, it comes from the phocacart new installation, the database is just not structured right, so these errors appear, since default values in database are originally missing...not sure who can fix this but Jan
uoppah
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 28 Jun 2023, 16:20

Re: phocacart stock status - Field 'date' doesn't have a default value

Post by uoppah »

Hi, I tried what Nidzo wrote but it did not solve the problem. Then I tried to change the database structure. I changed the value of phocart_stock_statuses from None to NULL. In this way I was able to create a new stock status.
Thank you
Simone
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 388
Joined: 07 Nov 2018, 14:55

Re: phocacart stock status - Field 'date' doesn't have a default value

Post by Nidzo »

Great to here that 👍🏻
Post Reply