View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
13619Bug reportsPluginspublic2021-03-11 08:40
ReporterDenisChenu Assigned Toollehar  
PrioritynoneSeverityminor 
Status assignedResolutionopen 
Product Version3.6.x 
Summary13619: Loop somewhere save model in afterPluginLoad
Description

When using Notification::broadcast in afterPluginLoad : there are an infinite loop somewhere

Steps To Reproduce

Inport this simple plugin : https://gitlab.com/snippets/1711012
Try to activate …

Comment $this->subscribe('afterPluginLoad', 'logSomething');
Activate
Test public survey

Additional Information

Maybe it's a good idea to set 'max_execution_time' to 30 or less before ;)

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)3.6.3 github
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionmysql
Server OS (if known)debian
Webserver software & version (if known)apache2
PHP VersionPHP5.6

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2018-04-19 15:22

developer   ~47466

@olle : trying too comment https://github.com/LimeSurvey/LimeSurvey/blob/48d571414b89bb0545d78c7212a357c31a49ac33/application/libraries/PluginManager/PluginManager.php#L408-L410

Not fixed too …

DenisChenu

DenisChenu

2018-04-19 15:36

developer   ~47467

Last edited: 2018-04-19 15:41

Another test using plugin log :
https://gitlab.com/snippets/1711020

Log didn't happen …

==========
EDIT :

  $oUser = User::model()->findByPk(1);
  $oUser->save();

broke, then related to beforeModelSave or afterModelSave

ollehar

ollehar

2021-03-10 21:30

administrator   ~63151

Still relevant?

DenisChenu

DenisChenu

2021-03-11 08:40

developer   ~63274

Yes : same plugin

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /mnt/data/shnoulle/nginx/www/3LTS/framework/db/CDbCommand.php on line 518

reportBug.zip (879 bytes)

Issue History

Date Modified Username Field Change
2018-04-19 15:18 DenisChenu New Issue
2018-04-19 15:22 DenisChenu Note Added: 47466
2018-04-19 15:36 DenisChenu Note Added: 47467
2018-04-19 15:41 DenisChenu Note Edited: 47467
2018-04-19 15:43 DenisChenu Summary Loop somewhere using Notification::broadcast in afterPluginLoad => Loop somewhere save model in afterPluginLoad
2018-05-16 13:06 LouisGac Assigned To => ollehar
2018-05-16 13:06 LouisGac Status new => assigned
2021-03-10 21:30 ollehar Status assigned => feedback
2021-03-10 21:30 ollehar Note Added: 63151
2021-03-11 08:40 DenisChenu Note Added: 63274
2021-03-11 08:40 DenisChenu File Added: reportBug.zip
2021-03-11 08:40 DenisChenu Status feedback => assigned