View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
19555Bug reportsOtherpublic2026-10-22 05:24
ReporterTonisOrmisson Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status resolvedResolutionfixed 
Product Version6.5.x 
Summary19555: afterFindSurvey event gets triggered excessively
Description

The event afterFindSurvey event gets triggered excessively.

The afterFindSurvey event is currently linked to Yii's internal onAfterFind event. The onAfterFind gets triggered also during relation calls such as $question->survey etc. This result in afterFindSurvey event getting triggered possibly tens of times during a page load depending on how many relation calls are on the page.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)6.5.4
I will donate to the project if issue is resolvedNo
Browser
Database type & versionna
Server OS (if known)
Webserver software & version (if known)
PHP Versionna
Git branch / Pull Request URLN/A

Relationships

related to 19589 closedDenisChenu Multiple call of Survey->find a lot of time 

Users monitoring this issue

DenisChenu

Activities

TonisOrmisson

TonisOrmisson

2024-05-07 09:03

developer   ~80079

https://github.com/LimeSurvey/LimeSurvey/pull/3840

c_schmitz

c_schmitz

2026-10-22 05:24

administrator   ~86689

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40978

c_schmitz

c_schmitz

2026-10-22 05:24

administrator   ~86690

Most of the repeated calls were already fixed with 19589 (6.6.1). The remaining extra calls on public survey pages are fixed now, so the event runs once per page load.

Related Changesets

LimeSurvey: master 4d2a0f5e

2026-10-22 05:23

c_schmitz


Details Diff
Fixed issue 19555: The afterFindSurvey plugin event was triggered several times on every public survey page
Dev Most of the extra calls were already gone with 19589, the last two came from getSurveyInfo()
Affected Issues
19555
mod - application/helpers/common_helper.php Diff File

Issue History

Date Modified Username Field Change
2024-05-06 15:43 TonisOrmisson New Issue
2024-05-06 15:44 DenisChenu Issue Monitored: DenisChenu
2024-05-06 15:44 DenisChenu Bug heat 0 => 2
2024-05-06 15:44 TonisOrmisson Assigned To => TonisOrmisson
2024-05-06 15:44 TonisOrmisson Status new => assigned
2024-05-07 09:03 TonisOrmisson Note Added: 80079
2024-05-07 09:03 TonisOrmisson Bug heat 2 => 4
2026-10-22 05:24 c_schmitz Changeset attached => LimeSurvey master 4d2a0f5e
2026-10-22 05:24 c_schmitz Note Added: 86689
2026-10-22 05:24 c_schmitz Assigned To TonisOrmisson => c_schmitz
2026-10-22 05:24 c_schmitz Status assigned => resolved
2026-10-22 05:24 c_schmitz Resolution open => fixed
2026-10-22 05:24 c_schmitz Bug heat 4 => 6
2026-10-22 05:24 c_schmitz Relationship added related to 19589
2026-10-22 05:24 c_schmitz Note Added: 86690