When trying to save a new plan in CBsubs on a J!4 install - I get this error:
An error occured
1366 Incorrect decimal value: '' for column 'rate' at row 1
All the values i entered are gone! I believe it is because I have not filled in the Price of the plan - but should this not throw an error before trying to save the whole plan and loose all the other entered values?
Last edit: 2 years 7 months ago by krileon. Reason: Added [SOLVED] tag to subject
That caused a database save error since it's trying to store an empty string into a decimal column which isn't allowed. It should ideally handle validation client side, then server side in the object, then lastly database. Doesn't look like there's client side or server side validation and you're being blocked by the fatal query error. This will likely happen regardless of Joomla version though. Have added a bug ticket to fix.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
That is not the only problem. If I create a new plan, select User subscription plan, fill in the name and alias and set a regular price, and save then i get this error:
1364 Field 'reg_conds_plans_required' doesn't have a default value
PHP version? Database version? That's another database error, but am not seeing that one in my tests, but I am seeing its database definition in XML is wrong as it should have NULL or empty string default defined.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
PHP 7.4
Database: Serverversion: 5.7.34-37 - Percona Server (GPL), Release 37, Revision 7c516e9
It is on the same site which you looked at yesterday with the jQuery problem.
Have added a bug ticket to improve the plans database definition. Other tables in CBSubs will also be reviewed.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.