[SOLVED] CB Conditionals 3.0.10 causes error

10 years 7 months ago - 10 years 7 months ago #233320 by matthiasbehrends
[SOLVED] CB Conditionals 3.0.10 causes error was created by matthiasbehrends
With CB Cond 3.0.10 published - Frontend Profile changes are not saved on fields on a Tab with a simple condition - triple-checked(!). No error displayed neither in Plugin Settings nor through J Debug...

Backend field updates are being saved.

Please Log in to join the conversation.

10 years 7 months ago - 10 years 7 months ago #233326 by matthiasbehrends
Replied by matthiasbehrends on topic CB Conditionals 3.0.10 causes error
Replaced Tab Conditional with Conditional Rules on Fields and now get Internal server error upon frontend profile update. Conditionals are only defined for like 8 fields - should not be too much, right?

No specific error messages whatsoever...

Please Log in to join the conversation.

10 years 7 months ago #233331 by krileon
Replied by krileon on topic CB Conditionals 3.0.10 causes error
There's a bug with Custom Value field conditionals. It causes a fatal JS error causing JS conditionals to not work, but the PHP side of things will when you save profile. Any fields conditionally hidden will not save values. Please see the below bug ticket where a quickfix has been provided.

forge.joomlapolis.com/issues/4197

The only conditional that can break CB Conditionals is if you try to condition CB Progress Field at registration or profile edit. You can only condition such a field at profile view and userlist view.


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.

10 years 7 months ago #233333 by matthiasbehrends
Replied by matthiasbehrends on topic CB Conditionals 3.0.10 causes error
Thanks a lot! Applied the fix anyways - now on line 880 of current version of cbconditional.class.php, BTW

My bad with the condition on edit of a progress field - ran into this again :(

Now fixed - THANKS !

Please Log in to join the conversation.

10 years 7 months ago - 10 years 7 months ago #233342 by matthiasbehrends
Replied by matthiasbehrends on topic CB Conditionals 3.0.10 causes error

krileon wrote: Any fields conditionally hidden will not save values.


The fields (single-select dropdown) are visible and editable for a user - just hidden for other user category. Still, changes from frontend are NOT being saved...

(No errors messages. Message "all changes saved" is shown. Profile Logger does NOT perceive edit and is silent.)

Please Log in to join the conversation.

10 years 7 months ago #233355 by krileon
Replied by krileon on topic CB Conditionals 3.0.10 causes error
Does the field condition fine using jQuery? As in does it dynamically show/hide as needed in profile edit? If not then the jQuery is failing, but the PHP side of it won't. Check browser error log by pressing F12 in Chrome or with Firefox with Firebug and review the console for any fatal errors.


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.219 seconds

Facebook Twitter LinkedIn