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!

CBsubs settings page - huge delay to load...

  • mikerotec
  • mikerotec
  • OFFLINE
  • Posts: 346
  • Thanks: 28
  • Karma: 2
7 years 11 months ago - 7 years 11 months ago #291283 by mikerotec
Replied by mikerotec on topic CBsubs settings page - huge delay to load...
Something broken in Joomla, you mean? Our server is vastly overpowered for the amount of traffic we handle, and nothing on our site is ever "slow" except this one particular backend page... I will have a look...

(I guess I will also check right now that we do have the same issue on local DEV server - clone of live joomla)...

yep, local dev server is proportionally slow. Zero site traffic, and the initial page request takes 30 seconds to load.

Got to be a slow query on that page, certainly???(?) Trying the debug on local dev server momentarily...
Last edit: 7 years 11 months ago by mikerotec.

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

  • mikerotec
  • mikerotec
  • OFFLINE
  • Posts: 346
  • Thanks: 28
  • Karma: 2
7 years 11 months ago #291284 by mikerotec
Replied by mikerotec on topic CBsubs settings page - huge delay to load...
Interesting! debug has one RED accordion:
Code:
**Parsing errors in language files** JROOT/administrator/language/en-GB/en-GB.com_rokgallery.ini : error(s) in line(s) 10, 18, 54, 159, 160, 372 JROOT/administrator/components/com_rokgallery/language/en-GB/en-GB.com_rokgallery.ini : error(s) in line(s) 10, 18, 54, 159, 160, 372

I do not see any super-slow db queries, but it does nag that there are duplicates:
Code:
**104 Queries Logged** 54.70 ms [color=red]**55 duplicate found!**[/color] **3 duplicates**: #3 #25 #103 **3 duplicates**: #4 #26 #104 **2 duplicates**: #14 #15 **2 duplicates**: #18 #19 **3 duplicates**: #23 #27 #92 **2 duplicates**: #29 #33 **18 duplicates**: #42 #44 #46 #48 #50 #52 #56 #60 #62 #64 #66 #68 #70 #72 #74 #76 #78 #84 **18 duplicates**: #43 #45 #47 #49 #51 #53 #57 #61 #63 #65 #67 #69 #71 #73 #75 #77 #79 #85 **2 duplicates**: #80 #82 **2 duplicates**: #88 #93

However, the debug points to the real SLOWDOWN happening with the third call of:
"Application: Start JAccess::getAssetRules Old (1)" ... can this be related to language files parsing?

I'll have to check those language files!! I don't see why that plugin would even be used on this backend page...

Anything jumping out at you from this? (I'm not a Joomla coder, myself, I mainly do drupal ...)

Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
7 years 11 months ago - 7 years 11 months ago #291312 by krileon
Replied by krileon on topic CBsubs settings page - huge delay to load...
Do you have a lot of usergroups or view access levels? Looks like Joomla is bottlenecking during access checks. That's due to a non-recursive call to getAssetRules (we don't call this function directly in CB, but Joomla calls it from other functions).


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.
Last edit: 7 years 11 months ago by krileon.
The following user(s) said Thank You: mikerotec

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
7 years 11 months ago - 7 years 11 months ago #291317 by krileon
Replied by krileon on topic CBsubs settings page - huge delay to load...
Ok, dug into it further. There could be some delay in the version checker. Please make the below change and see if your issue persists.

IN: components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/libraries/cbpaidVersionMgr.php
ON: Line 51
ADD: (top of fetchVersion function)
Code:
return null;

I also saw a performance issue with TinyMCE. If you're using TinyMCE or 3rd party editor try setting the editor to None in Joomla then see if your issue persists.

With each test please provide a screenshot of the profile information so we can see how performance was affected for you.


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.
Last edit: 7 years 11 months ago by krileon.
The following user(s) said Thank You: mikerotec

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

  • mikerotec
  • mikerotec
  • OFFLINE
  • Posts: 346
  • Thanks: 28
  • Karma: 2
7 years 11 months ago #291318 by mikerotec
Replied by mikerotec on topic CBsubs settings page - huge delay to load...
Well we have only ten user groups (the 8 built-in Joomla ones, plus two we added for our two CBsubs subscription types - 'Paid subscribers' & 'Free subscribers')

and we have only three viewing levels:

Public Public
Registered Manager, Registered, Super Users
Special Author, Manager, Super Users


If it's a bottleneck during access checks - why does it only happen on this one backend page, and nowhere else on the entire site?

Could one of your functions be overriding a joomla function oddly? Somethng like a messed up function overloading, or magic method?? Edge case??

We're running PHP 5.6.30 ...

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

  • mikerotec
  • mikerotec
  • OFFLINE
  • Posts: 346
  • Thanks: 28
  • Karma: 2
7 years 11 months ago #291322 by mikerotec
Replied by mikerotec on topic CBsubs settings page - huge delay to load...
PS: just saw your posting, went up when I was writing mine. :-)

tried the patch to cbpaidVersionMgr... and disabling that function didn't change the delay:




Will try disabling editor next - BTW, using Ark editor as joomla default editor.
Attachments:

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

Moderators: beatnantkrileon
Powered by Kunena Forum