View Issue Details

IDProjectCategoryView StatusLast Update
13619Bug reports[All Projects] Pluginspublic2018-05-16 13:06
ReporterDenisChenuAssigned Toollehar 
PrioritynoneSeverityminor 
Status assignedResolutionopen 
Product Version3.6.x 
Target VersionFixed in Version 
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.
Complete LimeSurvey version number (& build)3.6.3 github
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database & DB-Versionmysql
Server OS (if known)debian
Webserver software & version (if known)apache2
PHP VersionPHP5.6

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

View 2 revisions

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

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 View Revisions
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