- Posts: 6
- Thank you received: 0
Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released
The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.
Solved [SOLVED] Kuena 2.0.2 trashes mysql database with slow queries.
- blackmoonz
-
Topic Author
- Offline
- New Member
-
I run a little site, www.blackmoonz.tk and have recently upgraded to Joomla 2.5.7 and Kuena Forum 2.0.2. Before this upgrade, the site ran fine for years. It is a relative low traffic site.
I have ran some debugging on mysql using 'SHOW PROCESSLIST' and found the following query to be run often and taking its time.
SELECT b.rules
FROM aOdad_assets AS a
LEFT JOIN a0dad_assets AS b ON b.lft <= a.lft AND b.rgt >= a.rgt
WHERE (a.name = 'com_kunena' OR a.parent_id=0)
GROUP BY b.id, b.rules, b.lft
ORDER BY b.lft
Some statistics of this query.
Showing rows 0 - 29 ( 957 total, Query took 1.7081 sec)
Profiling
Status Time
starting 0.000065
Opening tables 0.000010
System lock 0.000004
Table lock 0.000005
init 0.000024
optimizing 0.000012
statistics 0.000040
preparing 0.000028
Creating tmp table 0.000141
executing 0.000003
Copying to tmp table 1.706180
Sorting result 0.008613
Sending data 0.000202
end 0.000005
removing tmp table 0.001833
end 0.000007
query end 0.000002
freeing items 0.000219
logging slow query 0.000003
cleaning up 0.000004
This even when only selecting 'Report Configuration Settings' in the back-end. The rest of the joomla site functions normally, the rest of the admin back-end works normally. The frontpage works normally until 'kuena latest' is used, which makes sense as it then uses the forum so is quite unrelated, especially when it's disabled in it's current form.
Kuena settings:
Database collation check: The collation of your table fields are correct
Legacy mode: Disabled | Joomla! SEF: Disabled | Joomla! SEF rewrite: Disabled | FTP layer: Disabled |
This message contains confidential informationhtaccess: Missing | PHP environment: Max execution time: 320 seconds | Max execution memory: 128M | Max file upload: 16M
Kunena menu details:
Warning: Spoiler!
ID Name Menutype Link Path 50 143 mainmenu option=com_kunena 143 61 Forum kunenamenu view=home&defaultmenu=62 forum 62 Index kunenamenu view=category&layout=list&catid=0 forum/index 63 Recent Topics kunenamenu view=topics&layout=default&mode=replies forum/recent 64 New Topic kunenamenu view=topic&layout=create forum/newtopic 65 No Replies kunenamenu view=topics&layout=default&mode=noreplies forum/noreplies 66 My Topics kunenamenu view=topics&layout=user&mode=default forum/mylatest 67 Profile kunenamenu view=user forum/profile 68 Rules kunenamenu view=misc forum/rules 69 Help kunenamenu view=misc forum/help 70 Search kunenamenu view=search forum/search
Joomla default template details : mistsofpandaria | author: Andy Taylor | version: 1.0 | creationdate: 2012-07-30
Kunena default template details : Blue Eagle 2.0 | author: Kunena Team | version: 2.0.1 | creationdate: 2012-07-07
Kunena version detailed: Kunena 2.0.1 | 2012-07-07 [ Balozi ]
| Kunena detailed configuration:| Kunena integration settings:Warning: Spoiler!
Kunena config settings: board_offline 0 enablerss 0 threads_per_page 20 messages_per_page 6 messages_per_page_search 15 showhistory 1 historylimit 6 shownew 1 disemoticons 0 template blue_eagle showannouncement 1 avataroncat 0 catimagepath category_images/ showchildcaticon 1 rtewidth 450 rteheight 300 enableforumjump 1 reportmsg 1 username 1 askemail 0 showemail 0 showuserstats 1 showkarma 0 useredit 1 useredittime 0 useredittimegrace 600 editmarkup 1 allowsubscriptions 1 subscriptionschecked 0 allowfavorites 1 maxsubject 50 maxsig 300 regonly 0 changename 0 pubwrite 0 floodprotection 10 mailmod 0 mailadmin 0 captcha 1 mailfull 0 allowavatarupload 1 allowavatargallery 0 avatarquality 65 avatarsize 2048 imageheight 800 imagewidth 800 imagesize 150 filetypes zip,txt,doc,gz,tgz,png,gif,jpg filesize 3000000 showranking 1 rankimages 1 userlist_rows 30 userlist_online 1 userlist_avatar 0 userlist_name 0 userlist_posts 1 userlist_karma 1 userlist_email 0 userlist_usertype 0 userlist_joindate 1 userlist_lastvisitdate 1 userlist_userhits 0 latestcategory 0 showstats 1 showwhoisonline 1 showgenstats 1 showpopuserstats 0 popusercount 5 showpopsubjectstats 0 popsubjectcount 5 usernamechange 0 showspoilertag 1 showvideotag 1 showebaytag 0 trimlongurls 0 trimlongurlsfront 40 trimlongurlsback 20 autoembedyoutube 1 autoembedebay 0 ebaylanguagecode en-us sessiontimeout 1800 highlightcode 0 rss_type topic rss_timelimit week rss_limit 100 rss_included_categories rss_excluded_categories rss_specification rss2.0 rss_allow_html 1 rss_author_format name rss_author_in_title 1 rss_word_count 0 rss_old_titles 0 rss_cache 60 defaultpage categories default_sort asc sef 1 sefutf8 1 showimgforguest 1 showfileforguest 1 pollnboptions 4 pollallowvoteone 1 pollenabled 1 poppollscount 5 showpoppollstats 1 polltimebtvotes 00:15:00 pollnbvotesbyuser 100 pollresultsuserslist 1 maxpersotext 50 ordering_system mesid post_dateformat ago post_dateformat_hover datetime hide_ip 1 imagetypes jpg,jpeg,gif,png checkmimetypes 1 imagemimetypes image/jpeg,image/jpg,image/gif,image/png imagequality 50 thumbheight 32 thumbwidth 32 hideuserprofileinfo put_empty boxghostmessage 0 userdeletetmessage 0 latestcategory_in 1 topicicons 1 debug 0 catsautosubscribed 0 showbannedreason 1 version_check 0 showthankyou 0 showpopthankyoustats 0 popthankscount 5 mod_see_deleted 0 bbcode_img_secure text listcat_show_moderators 0 lightbox 1 show_list_time 720 show_session_type 0 show_session_starttime 0 userlist_allowed 1 userlist_count_users 1 enable_threaded_layouts 0 category_subscriptions post topic_subscriptions every pubprofile 1 thankyou_max 10 email_recipient_count 0 email_recipient_privacy bcc captcha_post_limit 0 keywords 0 userkeywords 0 image_upload registered file_upload registered topic_layout flat time_to_create_page 1 show_imgfiles_manage_profile 1 hold_newusers_posts 0 hold_guest_posts 0 attachment_limit 8 pickup_category 0 article_display intro send_emails 1 fallback_english 1 cache 1 cache_time 60 enablepdf 0 jmambot 0 annmodid 62 userlist_username 1 rules_infb 0 help_infb 0 onlineusers 1 | Joomla! detailed language files installed:Warning: Spoiler!Kunena - AlphaUserPoints Disabled
Kunena - Community Builder Disabled
Kunena - Gravatar Disabled
Kunena - JomSocial Disabled
Kunena - Joomla Enabled: access=1 login=1
Kunena - Kunena Disabled
Kunena - UddeIM Disabled
Warning: Spoiler!
Joomla! languages installed: en-GB English (United Kingdom)
Third-party components: UddeIM 2.6
Third-party SEF components: None
Plugins: None
Modules: Kunena Latest 2.0.1
Please Log in or Create an account to join the conversation.
blackmoonz wrote: I run a little site, www.blackmoonz.tk and have recently upgraded to Joomla 2.5.7 and Kuena Forum 2.0.2. Before this upgrade, the site ran fine for years. It is a relative low traffic site.
I don't know if its relevant or just your mistake but according to your configuration report you are not on Kunena 2.0.2. Both it and KLatest still indicate as 2.0.1.
Please Log in or Create an account to join the conversation.
- blackmoonz
-
Topic Author
- Offline
- New Member
-
- Posts: 6
- Thank you received: 0
Database collation check: The collation of your table fields are correct
Legacy mode: Disabled | Joomla! SEF: Disabled | Joomla! SEF rewrite: Disabled | FTP layer: Disabled |
This message contains confidential informationhtaccess: Missing | PHP environment: Max execution time: 320 seconds | Max execution memory: 128M | Max file upload: 16M
Kunena menu details:
Warning: Spoiler!
ID Name Menutype Link Path 50 143 mainmenu option=com_kunena 143 61 Forum kunenamenu view=home&defaultmenu=62 forum 62 Index kunenamenu view=category&layout=list&catid=0 forum/index 63 Recent Topics kunenamenu view=topics&layout=default&mode=replies forum/recent 64 New Topic kunenamenu view=topic&layout=create forum/newtopic 65 No Replies kunenamenu view=topics&layout=default&mode=noreplies forum/noreplies 66 My Topics kunenamenu view=topics&layout=user&mode=default forum/mylatest 67 Profile kunenamenu view=user forum/profile 68 Rules kunenamenu view=misc forum/rules 69 Help kunenamenu view=misc forum/help 70 Search kunenamenu view=search forum/search
Joomla default template details : mistsofpandaria | author: Andy Taylor | version: 1.0 | creationdate: 2012-07-30
Kunena default template details : Blue Eagle 2.0 | author: Kunena Team | version: 2.0.2 | creationdate: 2012-09-02
Kunena version detailed: Kunena 2.0.2 | 2012-09-02 [ Botschafter ]
| Kunena detailed configuration:| Kunena integration settings:Warning: Spoiler!
Kunena config settings: board_offline 0 enablerss 0 threads_per_page 20 messages_per_page 6 messages_per_page_search 15 showhistory 1 historylimit 6 shownew 1 disemoticons 0 template blue_eagle showannouncement 1 avataroncat 0 catimagepath category_images/ showchildcaticon 1 rtewidth 450 rteheight 300 enableforumjump 1 reportmsg 1 username 1 askemail 0 showemail 0 showuserstats 1 showkarma 0 useredit 1 useredittime 0 useredittimegrace 600 editmarkup 1 allowsubscriptions 1 subscriptionschecked 0 allowfavorites 1 maxsubject 50 maxsig 300 regonly 0 pubwrite 0 floodprotection 10 mailmod 0 mailadmin 0 captcha 1 mailfull 0 allowavatarupload 1 allowavatargallery 0 avatarquality 65 avatarsize 2048 imageheight 800 imagewidth 800 imagesize 150 filetypes zip,txt,doc,gz,tgz,png,gif,jpg filesize 3000000 showranking 1 rankimages 1 userlist_rows 30 userlist_online 1 userlist_avatar 0 userlist_name 0 userlist_posts 1 userlist_karma 1 userlist_email 0 userlist_usertype 0 userlist_joindate 1 userlist_lastvisitdate 1 userlist_userhits 0 latestcategory 0 showstats 1 showwhoisonline 1 showgenstats 1 showpopuserstats 0 popusercount 5 showpopsubjectstats 0 popsubjectcount 5 usernamechange 0 showspoilertag 1 showvideotag 1 showebaytag 0 trimlongurls 0 trimlongurlsfront 40 trimlongurlsback 20 autoembedyoutube 1 autoembedebay 0 ebaylanguagecode en-us sessiontimeout 1800 highlightcode 0 rss_type topic rss_timelimit week rss_limit 100 rss_included_categories rss_excluded_categories rss_specification rss2.0 rss_allow_html 1 rss_author_format name rss_author_in_title 1 rss_word_count 0 rss_old_titles 0 rss_cache 60 defaultpage categories default_sort asc sef 1 sefutf8 1 showimgforguest 1 showfileforguest 1 pollnboptions 4 pollallowvoteone 1 pollenabled 1 poppollscount 5 showpoppollstats 1 polltimebtvotes 00:15:00 pollnbvotesbyuser 100 pollresultsuserslist 1 maxpersotext 50 ordering_system mesid post_dateformat ago post_dateformat_hover datetime hide_ip 1 imagetypes jpg,jpeg,gif,png checkmimetypes 1 imagemimetypes image/jpeg,image/jpg,image/gif,image/png imagequality 50 thumbheight 32 thumbwidth 32 hideuserprofileinfo put_empty boxghostmessage 0 userdeletetmessage 0 latestcategory_in 1 topicicons 1 debug 0 catsautosubscribed 0 showbannedreason 1 version_check 0 showthankyou 0 showpopthankyoustats 0 popthankscount 5 mod_see_deleted 0 bbcode_img_secure text listcat_show_moderators 0 lightbox 1 show_list_time 720 show_session_type 0 show_session_starttime 0 userlist_allowed 1 userlist_count_users 1 enable_threaded_layouts 0 category_subscriptions post topic_subscriptions every pubprofile 1 thankyou_max 10 email_recipient_count 0 email_recipient_privacy bcc captcha_post_limit 0 keywords 0 userkeywords 0 image_upload registered file_upload registered topic_layout flat time_to_create_page 1 show_imgfiles_manage_profile 1 hold_newusers_posts 0 hold_guest_posts 0 attachment_limit 8 pickup_category 0 article_display intro send_emails 1 fallback_english 1 cache 1 cache_time 60 iptracking 1 changename 0 enablepdf 0 jmambot 0 annmodid 62 userlist_username 1 rules_infb 0 help_infb 0 onlineusers 1 plugins Array | Joomla! detailed language files installed:Warning: Spoiler!Kunena - AlphaUserPoints Disabled
Kunena - Community Builder Disabled
Kunena - Gravatar Disabled
Kunena - JomSocial Disabled
Kunena - Joomla Enabled: access=1 login=1
Kunena - Kunena Enabled: avatar=1 profile=1
Kunena - UddeIM Disabled
Warning: Spoiler!
Joomla! languages installed: en-GB English (United Kingdom)
Third-party components: UddeIM 2.6
Third-party SEF components: None
Plugins: None
Modules: Kunena Latest 2.0.2
Please Log in or Create an account to join the conversation.
I've no reason to suspect it would be the cause, but I would at least try with a standard Jooma template, such as Beez5, just in case. Maybe there's a conflict somewhere.
Please Log in or Create an account to join the conversation.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
- blackmoonz
-
Topic Author
- Offline
- New Member
-
- Posts: 6
- Thank you received: 0
The 'generate report' menu item for example, takes aprox 3-5 seconds to pop up. Much like the front end. This is with zero users on the front end.
I have 'found' the main issue, as reported at the start:
SELECT b.rules
FROM aOdad_assets AS a
LEFT JOIN a0dad_assets AS b ON b.lft <= a.lft AND b.rgt >= a.rgt
WHERE (a.name = 'com_kunena' OR a.parent_id=0)
GROUP BY b.id, b.rules, b.lft
ORDER BY b.lft
this single query runs for about 1.5seconds and gets called once or twice causing the huge delay. The question is, why? The 1.* kunena tree didn't cause this.
Except for the random part (a0dad_ in my case) how fast does that query run for you? How many records (900ish i have)?
As for the standard 'how to make kunena perform faster' (when there is only 1 user not even actively using the site, and the server has practically no load):
You have a lot of Joomla plugins installed on your system
Also affects the backend with zero? plugins.
You have a lot of modules on your Kunena pages
Also affects the backend with zero? modules.
You are integrating Kunena with other components
Also affects the backend with zero? components.
Your template is very complicated and has many cool features
Also affects the backend with zero? cool features.
You're not using Joomla caching
While I have quite some 'performance' features disabled, this is to ensure caching et al isnt' causing more then it solves. This is a very very low traffic site, think 10 users simultaniously maximally. I have of course tested this and saw zero difference, kindof what I expected.
Your Apache settings are unoptimised
What specific settings does kunena require of apache? Everything else works smoothly.
Your MySQL settings are unoptimised
Now here I could see there would be something happening, but know to little of mysql to say what. I have 'optimized' several tables and the database without effect.
Images, CSS and JavaScript files aren't cached in browsers
Should be unrelated as the request runs mostly on the backend that causes the delay.
Sometimes JavaScript issues may cause major slowdown in the browser
browser isn't slow though, the site is.
If my 'assets' table is somehow to big or corrupt, then that could be the culprit? but why and what are sane defaults?
Edit:
Some other probably meaningless performance statistics:
Showing rows 0 - 49 ( 1,000 total, Query took 0.0003 sec)
SELECT rules
FROM aOdad_assets
LIMIT 0 , 50
Showing rows 0 - 29 ( 957 total, Query took 0.0489 sec)
Original statement, without the 'GROUP BY b.id, b.rules, b.lft
ORDER BY b.lft' bit.
Showing rows 0 - 29 ( 957 total, Query took 1.6853 sec)
After using the 'ORDER BY b.lft' OR/AND 'GROUP BY b.id, b.rules, b.lft' bits.
Showing rows 0 - 29 ( 957 total, Query took 0.0005 sec)
SELECT * FROM `aOdad_assets` WHERE (name = 'com_kunena' OR parent_id =0)
How that however influences the results found, I don't know. Also, I sincerely doubt that it's a I/O issue, as the database or its query should mostly be cached in RAM.
Checking the results from those queries, most results come from 'parent_id' being 0 (I sorted up/down on the parent_id column and it started/ended with 0 in all cases).
MySQL returned an empty result set (i.e. zero rows). ( Query took 0.0002 sec )
SELECT * FROM `deMtO_assets` WHERE (name = 'com_kunena')
Actually returns zero rows!
Please Log in or Create an account to join the conversation.