Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Intro Black Friday Offer for a lifetime*

[SOLVED] cb_condition uncaught range error

  • jimstrong
  • jimstrong
  • OFFLINE
  • Posts: 63
  • Thanks: 6
  • Karma: 0
  • Add-ons
4 years 10 months ago - 4 years 10 months ago #316150 by jimstrong
I've a problem when cb_condition is enabled that prevents the image upload routine and date popup from appearing and the "uncaught range" error showing in console. I'm guessing this might be a poorly written condition.

Apart from opening each tab or field and looking under parameters, is there a way to list all the fields or tabs that have a condition attached to them?

Thanks!

First few lines of Error:-
jquery-2.2.4.min.js?v=cdc5d17448a1d40a:1 Uncaught RangeError: Maximum call stack size exceeded
at String.replace (<anonymous>)
at Function.re (jquery-2.2.4.min.js?v=cdc5d17448a1d40a:1)
at Function.e.find (jquery.migrate.min.js?v=cdc5d17448a1d40a:1)
at e.fn.init.find (jquery-2.2.4.min.js?v=cdc5d17448a1d40a:1)
at e.fn.init.e.fn.find (jquery.migrate.min.js?v=cdc5d17448a1d40a:1)
at e.fn.init.findTarget (cbcondition.min.js?v=3df9ed0e068e4d75:1)
at Object.<anonymous> (cbcondition.min.js?v=3df9ed0e068e4d75:1)
at Function.each (jquery-2.2.4.min.js?v=cdc5d17448a1d40a:1)
at Array.<anonymous> (cbcondition.min.js?v=3df9ed0e068e4d75:1)
at Function.each (jquery-2.2.4.min.js?v=cdc5d17448a1d40a:1)
Last edit: 4 years 10 months ago by krileon. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48551
  • Thanks: 8291
  • Karma: 1445
4 years 10 months ago #316158 by krileon
Replied by krileon on topic cb_condition uncaught range error
Sounds like you added a condition and caused an infinite loop of some kind. Enable debug mode and maximum error reporting then retry. The error should then provide a proper line number since it won't be minified. With line number I'll be able to see more specifically where in the JS it looped as it's supposed to protect against getting stuck like that.

Apart from opening each tab or field and looking under parameters, is there a way to list all the fields or tabs that have a condition attached to them?

Nope.


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 or Create an account to join the conversation.

  • jimstrong
  • jimstrong
  • OFFLINE
  • Posts: 63
  • Thanks: 6
  • Karma: 0
  • Add-ons
4 years 10 months ago #316168 by jimstrong
Replied by jimstrong on topic cb_condition uncaught range error
> Nope
OK!

Full log attached as zip
Attachments:

Please Log in or Create an account to join the conversation.

  • jimstrong
  • jimstrong
  • OFFLINE
  • Posts: 63
  • Thanks: 6
  • Karma: 0
  • Add-ons
4 years 10 months ago #316172 by jimstrong
Replied by jimstrong on topic cb_condition uncaught range error
Hi. Not sure if that zipfile would have worked, so here's the log file in plain text:-

jquery-2.2.4.js?v=cdc5d17448a1d40a:1418 Uncaught RangeError: Maximum call stack size exceeded
at String.replace (<anonymous>)
at Function.Sizzle.matchesSelector (jquery-2.2.4.js?v=cdc5d17448a1d40a:1418)
at Function.jQuery.filter (jquery-2.2.4.js?v=cdc5d17448a1d40a:2771)
at winnow (jquery-2.2.4.js?v=cdc5d17448a1d40a:2752)
at jQuery.fn.init.is (jquery-2.2.4.js?v=cdc5d17448a1d40a:2810)
at jQuery.fn.init.findTarget (cbcondition.js?v=3df9ed0e068e4d75:220)
at Object.<anonymous> (cbcondition.js?v=3df9ed0e068e4d75:280)
at Function.each (jquery-2.2.4.js?v=cdc5d17448a1d40a:368)
at Array.<anonymous> (cbcondition.js?v=3df9ed0e068e4d75:273)
at Function.each (jquery-2.2.4.js?v=cdc5d17448a1d40a:368)
Sizzle.matchesSelector @ jquery-2.2.4.js?v=cdc5d17448a1d40a:1418
jQuery.filter @ jquery-2.2.4.js?v=cdc5d17448a1d40a:2771
winnow @ jquery-2.2.4.js?v=cdc5d17448a1d40a:2752
is @ jquery-2.2.4.js?v=cdc5d17448a1d40a:2810
findTarget @ cbcondition.js?v=3df9ed0e068e4d75:220
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:280
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:273
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:266
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53
dispatch @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4740
elemData.handle @ jquery-2.2.4.js?v=cdc5d17448a1d40a:4552
trigger @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7810
jQuery.event.trigger @ jquery.migrate.js?v=52b769960801e91f:633
triggerHandler @ jquery-2.2.4.js?v=cdc5d17448a1d40a:7884
(anonymous) @ cbcondition.js?v=3df9ed0e068e4d75:361
each @ jquery-2.2.4.js?v=cdc5d17448a1d40a:368
conditionElement @ cbcondition.js?v=3df9ed0e068e4d75:355
cbcondition.changeHandler @ cbcondition.js?v=3df9ed0e068e4d75:53

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48551
  • Thanks: 8291
  • Karma: 1445
4 years 10 months ago #316188 by krileon
Replied by krileon on topic cb_condition uncaught range error
Yup, looks like you've configured an infinite loop. Field A is hiding Field B and Field B is hiding Field A or Field A is hiding Field A. Both aren't valid usages. The first one has infinite loop protection, but the second case does not and there's an active bug ticket to fix in a later release below.

forge.joomlapolis.com/issues/7011

You'll need to review your conditions carefully and ensure a field isn't conditioning it self.


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 or Create an account to join the conversation.

  • jimstrong
  • jimstrong
  • OFFLINE
  • Posts: 63
  • Thanks: 6
  • Karma: 0
  • Add-ons
4 years 10 months ago #316190 by jimstrong
Replied by jimstrong on topic cb_condition uncaught range error
Oh thanks!

So if I set the cb_conditional integration to "Normal CB Settings" on everything, that should eliminate the loop while I investigate properly? Or might I have to delete the field and start again?

I ask simply because I thought I had set everything to "Normal CB Settings", but the problem only went away when I disabled CB Conditional.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum