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
phocacart stock status - Field 'date' doesn't have a default value
-
- Phoca Newbie
- Posts: 9
- Joined: 28 Jun 2023, 16:20
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: phocacart stock status - Field 'date' doesn't have a default value
Hi, which Phoca Cart version do you use?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 9
- Joined: 28 Jun 2023, 16:20
Re: phocacart stock status - Field 'date' doesn't have a default value
Hi, version 4.0.8, joomla 4.3.4
Simone
Simone
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: phocacart stock status - Field 'date' doesn't have a default value
Do you get the same problem with the latest Beta?
https://github.com/PhocaCz/PhocaCart/re ... 9Beta5.zip
Jan
https://github.com/PhocaCz/PhocaCart/re ... 9Beta5.zip
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 9
- Joined: 28 Jun 2023, 16:20
Re: phocacart stock status - Field 'date' doesn't have a default value
Unfortunately the same error appears
- Nidzo
- Phoca Professional
- Posts: 387
- Joined: 07 Nov 2018, 14:55
Re: phocacart stock status - Field 'date' doesn't have a default value
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)
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)
-
- Phoca Member
- Posts: 33
- Joined: 29 Sep 2022, 00:28
Re: phocacart stock status - Field 'date' doesn't have a default value
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 JanNidzo 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)
-
- Phoca Newbie
- Posts: 9
- Joined: 28 Jun 2023, 16:20
Re: phocacart stock status - Field 'date' doesn't have a default value
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
Thank you
Simone
- Nidzo
- Phoca Professional
- Posts: 387
- Joined: 07 Nov 2018, 14:55
Re: phocacart stock status - Field 'date' doesn't have a default value
Great to here that