Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

[#6575] PHP Error on CB Activity Upgrade

7 years 9 months ago - 7 years 9 months ago #292811 by tjohns92109
[#6575] PHP Error on CB Activity Upgrade was created by tjohns92109
I'm getting the following error after upgrading CB core and all plugins to the latest version (4.0 for CB Activity). It specifically happens when I try to view others' profiles.

0 - PHP regular expression limit reached (pcre.backtrack_limit)

I did some research before posting here and found that turning off the SEF plugin in Joomla somewhat fixes the issue, but seems to cause the profiles to load extremely slow.

Another option I found was to increase this limit in a php.ini file. That also works... but also takes a very very long time to load the page. This also seems to have the same effect on pages that had no error, like my own/home profile page. These fixes seem to bump up the page load time for all pages - not just the ones that had the error.

I've also tried lowering the limits on the 'paging' section of CB Activity.

After more processes of elimination, I found that this only happens to a specific profile that has a ton of posts on it. The one profile that happens to be the client's profile.

Any other suggestions?
Last edit: 7 years 9 months ago by krileon. Reason: Added [#6575] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
7 years 9 months ago #292815 by krileon
Replied by krileon on topic PHP Error on CB Activity Upgrade
Enable debug mode and maximum error reporting in Joomla global configuration then provide the full error output. Without the file path and line number for the error I wouldn't be able to investigate where it's coming from. CB Activity 4.0.0 was performance tested with over 10,000 activity and comment entries with no performance loss with more and more added (it has complete scale-ability). So a large number of posts shouldn't be an issue. Looks like there's just a REGEXP problem. Please also provide what PHP version you have.


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.

7 years 9 months ago #292822 by tjohns92109
Replied by tjohns92109 on topic PHP Error on CB Activity Upgrade
Thanks for the quick response. Sorry I didn't think to do that first (error reporting). I'll paste the error below...

I should mention that it didn't have the issue before the upgrade (nor on the live site). I thought maybe it could be one of my templates (one in community builder, one in CB Activity (which I instantly re-wrote activity.php right after the upgrade, and the Joomla template) - so I changed the CB templates to default and the Joomla template to Protostar. Still same error.

As far as PHP version, it's currently (and on previous version) at 5.6. I changed it to 7.0 and checked.... still got the same error.

Like I mentioned, it does fix the issue, both turning the SEF URLs plugin off and also by changing the maximum pcre.backtrack_limit. But it seems very very slow. Even though it's set to load the feed as the user scrolls, it feels like it's loading all feeds when the page loads. I say that because it seems to make a huge difference between going to someone's profile with 10 posts and someone's profile with 100 posts.

I know you've been working on scale-ability, which I'm sure you were and I'm excited about too... so I can't imagine that being an issue unless it's specific to something with my server setup. Using InMotion. Their servers are very fast and it's a rarity, but... after a few years with them and a good handful of clients using them, there has been website issues that they've fixed by installing various 'forgotten' modules, etc. (even on the shared). So I haven't ruled that out.

I'll continue to look at it tomorrow. Especially since I don't know whether the issue is on your end or mine. Tried ruling everything out. Hate it when I've asked you guys for help and you help me... but it ends up being something I did. Feel bad in those cases - and I would hope other people would also try to rule things out that they might have done before hitting up the(ir) developer.

ONLY ERROR (Joomla
PHP regular expression limit reached (pcre.backtrack_limit)

Call stack
# Function Location
1 JApplicationCms->execute() /home/n1303a5/public_html/website.aero/dev/index.php:49
2 JApplicationSite->render() /home/n1303a5/public_html/website.aero/dev/libraries/cms/application/cms.php:267
3 JApplicationCms->render() /home/n1303a5/public_html/website.aero/dev/libraries/cms/application/site.php:773
4 JApplicationBase->triggerEvent() /home/n1303a5/public_html/website.aero/dev/libraries/cms/application/cms.php:1092
5 JEventDispatcher->trigger() /home/n1303a5/public_html/website.aero/dev/libraries/joomla/application/base.php:106
6 JEvent->update() /home/n1303a5/public_html/website.aero/dev/libraries/joomla/event/dispatcher.php:159
7 call_user_func_array() /home/n1303a5/public_html/website.aero/dev/libraries/joomla/event/event.php:69
8 PlgSystemSef->onAfterRender()
9 PlgSystemSef->checkBuffer() /home/n1303a5/public_html/website.aero/dev/plugins/system/sef/sef.php:158

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
7 years 9 months ago #292832 by krileon
Replied by krileon on topic PHP Error on CB Activity Upgrade
Call stack doesn't appear to be coming from CB at all. Please PM backend super administrator login credentials as well as include URL to offending profile and will take a look. Wonder if there's just flat out too many URLs in the buffer for Joomla to parse through, but I've never heard of that happening before.


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: 48709
  • Thanks: 8319
  • Karma: 1447
7 years 9 months ago #292872 by krileon
Replied by krileon on topic PHP Error on CB Activity Upgrade
Was able to find the cause. It's actually a bug in CB it self, but have implemented a workaround. The global parameters are being wiped out by the tab parameters causing the global fallbacks to all fail. I've added a bug ticket and am promptly fixing this issue for a nightly and next bug fix release. I've patched your install for the time being, which is working fine now.

forge.joomlapolis.com/issues/6575

New build should hopefully be out tonight or early tomorrow. Anyone needing a workaround can edit the Activity tab then adjust all the params from using "Same as Global" to actual values.


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.

7 years 9 months ago #292875 by tjohns92109
Replied by tjohns92109 on topic PHP Error on CB Activity Upgrade
Awesome, Krileon! Thank you for the speedy fix there.
The following user(s) said Thank You: nant

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

Moderators: beatnantkrileon
Powered by Kunena Forum