Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

If Substitution in CB Content Bot still has a limitation of chars

8 years 2 months ago #285109 by pixelkraft
Hi!

I was bumping into an issue I reported years ago. If you use if Statements in the Content Bot plugin, it crashes the site when the amount of chars is too big...


This is the link to the old thread:
www.joomlapolis.com/forum/153-professional-member-support/197501-solved-hide-content-depending-on-cbsubs-plan?start=12

You confirmed this as bug here: forge.joomlapolis.com/issues/3471 four years ago, but considered it not to be "really an issue" :whistle:

Sorry, I would really need a fix for this. To be honest: Maybe you underestimate your own plugin! I really like it and use it quite often. In this case,I used it inside of a SobiPro template and it works very fine and gives me the opportunity to show or hide fields, depending on the subscription. But unfortunately, if the text in the SobiPro field is too long, it crashed my site.

Would be interesting why you consider this not to be an issue!?

Cheers,
Tim

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48456
  • Thanks: 8280
  • Karma: 1443
8 years 2 months ago #285131 by krileon
There is no reasonable fix for it beyond increasing the stack overflow size as noted in the ticket. Only way we could fix it is to break large text into chunks which just breaks other stuff. We've yet to come up with a better solution. It's noted not being really an issue for CB as it's largely a server configuration problem.


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.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48456
  • Thanks: 8280
  • Karma: 1443
8 years 2 months ago #285132 by krileon
As a followup what server OS are you running? Windows or Linux? This really shouldn't happen on Linux unless the string is absolutely massive.


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.

8 years 1 month ago #285424 by pixelkraft
Hi krileon,

I am on a dedicated Server at Siteground, Linux!
I did some testings and if I remembered right it was about 300 chars or so until the problem occured.

But I also had other substitutions on the page. So are they cumulating and causing the issue? So if I have 10 substitutions or so?

I think the bot could really be powerful, especially for components that have a weak ACL, could be a good selling point in my opinion! There is no extension that offers quick substitution options depending on the Joomla ACL...

Cheers,
Tim

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48456
  • Thanks: 8280
  • Karma: 1443
8 years 1 month ago #285435 by krileon
No, they're not accumulating. It's due to preg_replace on large strings, but linux should have its stack size configured to allow for much larger strings. It's really a server limitation though that we don't really have a way of working around. I understand you want to use it for large strings, but we can't just suddenly surpass a hard server limit. Breaking a string into chunks just isn't an acceptable fix either as where it breaks could easily break the usage even further (e.g. breaks in the middle of a word or substitution usage). So I don't have a workaround other than contact your host and have them increase the stack overflow size or use smaller strings.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum