View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
15620Bug reportsSurvey editingpublic2020-12-29 18:27
ReporterRuif Assigned Tocdorin  
PrioritynoneSeveritypartial_block 
Status closedResolutionreopened 
Product Version3.20.x 
Summary15620: Subquestions not showing in Edit Subquestions panel
Description

Subquestions are not showing in the Edit Subquestions panel on production site. Same for anwers.
The subquestions are there, because they show-up in the question.
The odd thing is that when I export the survey and import it on my local machine everything seems to work OK.

The only important difference I can see is the php version: PHP 7.4 on the production site and php 7.1 on my local machine.

Reverting to php 7.3 solved the problem

Additional Information

I get the following error:

Function get_magic_quotes_gpc() is deprecated

....htdocs/vragenlijst/framework/web/CHttpRequest.php(130)

118 parent::init();
119 $this->normalizeRequest();
120 }
121
122 /*
123
Normalizes the request data.
124 This method strips off slashes in request data if get_magic_quotes_gpc() returns true.
125
It also performs CSRF validation if {@link enableCsrfValidation} is true.
126 */
127 protected function normalizeRequest()
128 {
129 // normalize request
130 if(function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc())
131 {
132 if(isset($_GET))
133 $_GET=$this->stripSlashes($_GET);
134 if(isset($_POST))
135 $_POST=$this->stripSlashes($_POST);
136 if(isset($_REQUEST))
137 $_REQUEST=$this->stripSlashes($_REQUEST);
138 if(isset($_COOKIE))
139 $_COOKIE=$this->stripSlashes($_COOKIE);
140 }
141
142 if($this->enableCsrfValidation)

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)Versie 3.20.2+191119
I will donate to the project if issue is resolvedNo
BrowserFirefox 70.0.01
Database type & version10.2.21-MariaDB
Server OS (if known)Linux 3.10.0-1062.1.2.el7.x86_64 x86_64
Webserver software & version (if known) Apache
PHP Version7.4

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2019-12-02 16:00

developer   ~54902

Last edited: 2019-12-02 16:01

Did set debug=0 fix the issue ?

PS : https://manual.limesurvey.org/Debug_mode

Ruif

Ruif

2019-12-02 17:02

reporter   ~54904

Initially (when the subquestions did not show) I had debug=0.
The error message was generated with debug=2.

Ruif

Ruif

2019-12-02 17:17

reporter   ~54908

Eventually I reverted to php 7.3, which sloved the issue

Btw
I don't understand this: if(function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()){}.

If the function get_magic_quotes_gpc() exists, the call to function_exists() doesn't add any thing; if( get_magic_quotes_gpc()){} gives the same result.
If the function get_magic_quotes_gpc() does not exist, there will be a call to an undfined function anyway. So what is the trick?
In my view, If the aim is to prevent a call to an undefined function it should be something like: if (function_exists('get_magic_quotes_gpc')){if (get_magic_quotes_gpc()){ ...do something... }}

DenisChenu

DenisChenu

2019-12-02 18:47

developer   ~54910

Initially (when the subquestions did not show) I had debug=0.
The error message was generated with debug=2.

Hope the PHP deprecated don't hide other issue‘s … …

DenisChenu

DenisChenu

2019-12-02 18:49

developer   ~54911

Else get_magic_quotes_gpc is deprecated since PHP5.4.2 : we don't need it since we are not 5.4.2 compatible :)

cdorin

cdorin

2020-07-10 00:33

reporter   ~58889

Does it still exist in latest LTS? We spent some time ago on fixing php 7.4-related issues

cdorin

cdorin

2020-12-29 18:27

reporter   ~61298

No feedback provided - ticket closed

Issue History

Date Modified Username Field Change
2019-11-26 12:53 Ruif New Issue
2019-11-26 17:39 cdorin Assigned To => cdorin
2019-11-26 17:39 cdorin Status new => assigned
2019-12-02 16:00 DenisChenu Note Added: 54902
2019-12-02 16:01 DenisChenu Note Edited: 54902
2019-12-02 17:02 Ruif Note Added: 54904
2019-12-02 17:17 Ruif Note Added: 54908
2019-12-02 18:47 DenisChenu Note Added: 54910
2019-12-02 18:49 DenisChenu Note Added: 54911
2020-07-10 00:32 cdorin Assigned To cdorin =>
2020-07-10 00:32 cdorin Severity block => partial_block
2020-07-10 00:32 cdorin Status assigned => closed
2020-07-10 00:33 cdorin Status closed => feedback
2020-07-10 00:33 cdorin Resolution open => reopened
2020-07-10 00:33 cdorin Note Added: 58889
2020-12-29 18:27 cdorin Assigned To => cdorin
2020-12-29 18:27 cdorin Status feedback => closed
2020-12-29 18:27 cdorin Note Added: 61298