View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
11145Bug reportsSurvey takingpublic2018-09-28 14:12
Reporterasshank Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version2.50.x 
Fixed in Version2.06+ 
Summary11145: memory_limit is set to 128M if host memory_limit is set in G
Description

When taking a survey with a lot of questions and present it as 'All in One' you may encounter a 500 error.. memory_limit to small.

It happend to us with a particular survey (All in One can also be al very large group we think)

Steps To Reproduce

A large survey.. present it 'All in One'

Additional Information

In config-defaults.php the memory-limit is set to 128. IMHO it is to small for normal operations.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)160415
I will donate to the project if issue is resolvedNo
Browser
Database type & version258
Server OS (if known)*
Webserver software & version (if known)*
PHP Version*

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2016-05-10 15:31

developer   ~38276

You can set your own limit in config file.
We set to 128 (try to) only if it's already under 128 : then you can set to 512 if you want in your host : we don't reduce it.

Not a bug

DenisChenu

DenisChenu

2016-05-10 15:31

developer   ~38277

Not a bug : you confirm ?

c_schmitz

c_schmitz

2016-05-10 15:35

administrator   ~38280

Not a bug. Memory setting is a server setting - just raise it.

asshank

asshank

2016-05-10 15:44

reporter   ~38281

IMHO It is a Bug!
I gave the host a memory_limit of 4G and then I noticed that the limit was still 128M thus the 500 rears its ugly head!

When I increased the config['memory_limit'] the 500 went away!

DenisChenu

DenisChenu

2016-05-10 16:17

developer   ~38283

I just test : no issue : if you set 512Mo in virtual host and 64Mo in LS config : stay 512Mo

But maybe you have an issue on your hoster (i never see a 4G limit ....)

Did you have a look at a phpversion.php file out of limesurvey ?

asshank

asshank

2016-05-10 17:18

reporter   ~38285

The 4G (it is allowed) attempt was because of my search to a solution.
I did also a 1024M on the server. But this also got me into a 500.

From the log:
mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1253376 bytes) in /usr/share/ayh/limesurvey/application/helpers/SurveyRuntimeHelper.php on line 1351

and

mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 130968 bytes) in /usr/share/ayh/limesurvey/framework/web/CUrlManager.php on line 791

This was to me the evidence that the 128M memory_limit was still in place.

BTW It happend during a reload (loadall/reload/scid/...) of a survey!

DenisChenu

DenisChenu

2016-05-10 17:22

developer   ~38286

I already say : my config is 64, but my host is at 512Mo : final memoty_limit : 512

If you have issue : review your host or the mod_fcgid system.

And try toi set 'memory_limit'=>'512', in you config file.

Not a bug : if you really found an issue : send your http://php.net/manual/function.phpinfo.php file (the one provided by LimeSurvey + another one you create on your server)

c_schmitz

c_schmitz

2016-05-10 17:27

administrator   ~38287

Actually there is a bug if you don't define the size in your PHP.ini as MB,

c_schmitz

c_schmitz

2016-05-10 17:28

administrator   ~38288

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

DenisChenu

DenisChenu

2016-05-10 17:30

developer   ~38289

Arg .... right ....
php_value memory_limit 1G
don't work ......

Sorry asshank, and thanks for reporting

c_schmitz

c_schmitz

2016-05-10 17:32

administrator   ~38290

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

asshank

asshank

2016-05-10 17:34

reporter   ~38291

Thank you for not closing this issue.. I did a lot of testing on this one.... and I know PHP and php.ini and limits. (int)G is allowed. (int)M is normal.

c_schmitz

c_schmitz

2016-05-12 10:39

administrator   ~38436

Version 2.50 Build 160512 released

DenisChenu

DenisChenu

2018-09-28 14:12

developer   ~49184

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

Related Changesets

LimeSurvey: master 50325dd2

2016-05-10 15:28:41

c_schmitz

Details Diff
Fixed issue 11145: PHP memory_limit being set too low even though php.in defines a higher one Affected Issues
11145
mod - application/controllers/InstallerController.php Diff File
mod - application/core/LSYii_Controller.php Diff File

LimeSurvey: 2.06lts fbb35ff8

2016-05-10 15:32:47

c_schmitz

Details Diff
Fixed issue 11145: PHP memory_limit being set too low even though php.in defines a higher one Affected Issues
11145
mod - application/core/LSYii_Controller.php Diff File

LimeSurvey: 2.06lts ae5c4be7

2016-05-10 17:32:47

c_schmitz


Committer: DenisChenu Details Diff
Fixed issue 11145: PHP memory_limit being set too low even though php.in defines a higher one Affected Issues
11145
mod - application/core/LSYii_Controller.php Diff File

LimeSurvey: 2.06lts e6df45ab

2016-05-12 08:42:06

DenisChenu

Details Diff
[fix][official] Fixed issue 11145: PHP memory_limit being set too low
See https://github.com/LimeSurvey/LimeSurvey/commit/fbb35ff889491749585f7b2d9fcbb7002ac6683d
Affected Issues
11145
mod - README.md Diff File
mod - application/config/version.php Diff File

Issue History

Date Modified Username Field Change
2016-05-10 12:55 asshank New Issue
2016-05-10 15:31 DenisChenu Note Added: 38276
2016-05-10 15:31 DenisChenu Note Added: 38277
2016-05-10 15:31 DenisChenu Assigned To => c_schmitz
2016-05-10 15:31 DenisChenu Status new => feedback
2016-05-10 15:35 c_schmitz Note Added: 38280
2016-05-10 15:35 c_schmitz Status feedback => closed
2016-05-10 15:35 c_schmitz Resolution open => no change required
2016-05-10 15:44 asshank Note Added: 38281
2016-05-10 15:44 asshank Status closed => feedback
2016-05-10 15:44 asshank Resolution no change required => reopened
2016-05-10 16:17 DenisChenu Note Added: 38283
2016-05-10 17:18 asshank Note Added: 38285
2016-05-10 17:18 asshank Status feedback => assigned
2016-05-10 17:22 DenisChenu Note Added: 38286
2016-05-10 17:22 DenisChenu Status assigned => closed
2016-05-10 17:22 DenisChenu Resolution reopened => no change required
2016-05-10 17:27 c_schmitz Note Added: 38287
2016-05-10 17:27 c_schmitz Status closed => feedback
2016-05-10 17:27 c_schmitz Resolution no change required => reopened
2016-05-10 17:28 c_schmitz Changeset attached => LimeSurvey master 50325dd2
2016-05-10 17:28 c_schmitz Note Added: 38288
2016-05-10 17:30 DenisChenu Note Added: 38289
2016-05-10 17:30 DenisChenu Status feedback => confirmed
2016-05-10 17:30 c_schmitz Status confirmed => resolved
2016-05-10 17:30 c_schmitz Fixed in Version => 2.5
2016-05-10 17:30 c_schmitz Resolution reopened => fixed
2016-05-10 17:32 DenisChenu Status resolved => confirmed
2016-05-10 17:32 DenisChenu Resolution fixed => reopened
2016-05-10 17:32 DenisChenu Fixed in Version 2.5 =>
2016-05-10 17:32 DenisChenu Summary memory_limit 128 to small => memory_limit is set to 128M if host memory_limit is set in G
2016-05-10 17:32 c_schmitz Changeset attached => LimeSurvey 2.06lts fbb35ff8
2016-05-10 17:32 c_schmitz Note Added: 38290
2016-05-10 17:33 c_schmitz Status confirmed => resolved
2016-05-10 17:33 c_schmitz Fixed in Version => 2.06+
2016-05-10 17:33 c_schmitz Resolution reopened => fixed
2016-05-10 17:34 asshank Note Added: 38291
2016-05-12 10:39 c_schmitz Note Added: 38436
2016-05-12 10:39 c_schmitz Status resolved => closed
2018-09-28 14:12 DenisChenu Changeset attached => LimeSurvey 2.06lts ae5c4be7
2018-09-28 14:12 DenisChenu Changeset attached => LimeSurvey 2.06lts e6df45ab
2018-09-28 14:12 DenisChenu Note Added: 49184