[SOLVED] [#8643] J!4 CBSubs plan save bug

2 years 8 months ago - 2 years 7 months ago #325784 by rbuelund
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?

Please Log in to join the conversation.

2 years 8 months ago #325794 by krileon
Replied by krileon on topic J!4 CBSubs plan save bug
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.

forge.joomlapolis.com/issues/8643


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.

Please Log in to join the conversation.

2 years 8 months ago #325798 by rbuelund
Replied by rbuelund on topic J!4 CBSubs plan save bug
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

Please Log in to join the conversation.

2 years 8 months ago - 2 years 8 months ago #325800 by krileon
Replied by krileon on topic J!4 CBSubs plan save bug
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.

forge.joomlapolis.com/issues/8644


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.

Please Log in to join the conversation.

2 years 8 months ago - 2 years 8 months ago #325803 by rbuelund
Replied by rbuelund on topic J!4 CBSubs plan save bug
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.

Please Log in to join the conversation.

2 years 8 months ago #325804 by krileon
Replied by krileon on topic J!4 CBSubs plan save bug
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.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.259 seconds

Facebook Twitter LinkedIn