View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 17908 | Bug reports | Import/Export | public | 2022-02-24 08:44 | 2022-04-12 10:25 |
| Reporter | Mazi | Assigned To | c_schmitz | ||
| Priority | none | Severity | block | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 3.25.20 | ||||
| Fixed in Version | 5.x | ||||
| Summary | 17908: Export/Import a survey at LS 3.x fails with "Call to a member function getColumnNames() on null" | ||||
| Description | A customer is running a large survey using Version 3.27.17+210911. That survey comes with 671 questions and shows 2571 columns at the export screen, though several hundred seem to be timing details. Thing is that when exporting results to XSL, only ~980 columns get exported. Then the file gets cut off for unknown reasons, When exporting the survey as LSA file (file attached) and importing it at the latest 3.28 version I get this error (screenshot attached): Importing the survey as LSS file is possible but when activating it I get the famous "Too many columns" error: Several questions arise:
| ||||
| Steps To Reproduce | Steps to reproduceTry importing the attached LSA file. Try exporting data afterwards Expected resultImport shoiuld work fine. Export should include all columns Actual resultImport fails with error, thus export is not possibe, | ||||
| Tags | No tags attached. | ||||
| Bug heat | 8 | ||||
| Complete LimeSurvey version number (& build) | 3.28 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | Chrome | ||||
| Database type & version | mysqlnd 7.4.28 | ||||
| Server OS (if known) | Ubuntu 18 | ||||
| Webserver software & version (if known) | Apache 2.0 | ||||
| PHP Version | 7.4 | ||||
|
Your client DB is ? |
|
|
@DenisChenu, client is using PHP 7.4.3 and mysqlnd 7.4.3 |
|
|
Strange , mysql with such number of columns … |
|
|
Do you have a db dump too? |
|
|
lss too maybe |
|
|
Yeah, we know that problem. The response table is so close to the table field limit, that the length of the field names become relevant. So if you copy that survey to a very low survey ID , like 2, you will be able to activate it because the field names are much shorter, and thus that internal field limit is not reached. |
|
|
@c_schmitz, thanks a lot for the very helpful hint! Do you think this is also causing the export problem? How can we approach this? |
|
|
@ollehar I can not provide a full DB dump. There are dozens of surveys and there is a lot of medical data in it so it is too confidential. Sorry! |
|
|
Response export limit is most likely caused by PHP max_input_vars setting, which defaults to 1000. Try to raise that to 2000. |
|
|
@c_schmitz, I was able to get the data into our test system by:
I was also able to export ALL data because we always raise "max_input_vars" to 10.000 at our system. Maybe you should code a warning if someone tries to expoirt a survey with the number of columns being > max_input_vars!? I am attaching the new survey 111 as LSA file for further testing. |
|
I think we already have seom issue reported about max_input_vars , and already add some warnings in Question edition maybe ? |
|
|
Added a warning to response export if setting is too low in LS5. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2022-02-24 08:44 | Mazi | New Issue | |
| 2022-02-24 08:44 | Mazi | File Added: image.png | |
| 2022-02-24 08:44 | Mazi | File Added: survey_archive_599599.lsa | |
| 2022-02-24 09:01 | DenisChenu | Note Added: 68388 | |
| 2022-02-24 09:01 | DenisChenu | Bug heat | 0 => 2 |
| 2022-02-24 09:04 | Mazi | Note Added: 68389 | |
| 2022-02-24 09:04 | Mazi | Bug heat | 2 => 4 |
| 2022-02-24 09:07 | DenisChenu | Note Added: 68390 | |
| 2022-02-24 09:09 | ollehar | Note Added: 68391 | |
| 2022-02-24 09:09 | ollehar | Bug heat | 4 => 6 |
| 2022-02-24 09:13 | DenisChenu | Note Added: 68392 | |
| 2022-02-24 09:19 | c_schmitz | View Status | public => private |
| 2022-02-24 09:19 | c_schmitz | Bug heat | 6 => 12 |
| 2022-02-24 09:22 | c_schmitz | Bug heat | 12 => 14 |
| 2022-02-24 09:30 | c_schmitz | Bug heat | 14 => 12 |
| 2022-02-24 09:31 | c_schmitz | Note Added: 68394 | |
| 2022-02-24 09:31 | c_schmitz | Bug heat | 12 => 14 |
| 2022-02-24 09:32 | c_schmitz | File Deleted: survey_archive_599599.lsa | |
| 2022-02-24 09:32 | c_schmitz | File Deleted: image.png | |
| 2022-02-24 09:34 | Mazi | Note Added: 68395 | |
| 2022-02-24 09:35 | Mazi | Note Added: 68396 | |
| 2022-02-24 09:37 | c_schmitz | Note Added: 68397 | |
| 2022-02-24 09:44 | Mazi | Note Added: 68398 | |
| 2022-02-24 09:44 | Mazi | File Added: survey_archive_111.lsa | |
| 2022-02-24 10:06 | DenisChenu | Note Added: 68400 | |
| 2022-02-24 11:09 | c_schmitz | Assigned To | => c_schmitz |
| 2022-02-24 11:09 | c_schmitz | Status | new => resolved |
| 2022-02-24 11:09 | c_schmitz | Resolution | open => fixed |
| 2022-02-24 11:09 | c_schmitz | Note Added: 68402 | |
| 2022-02-24 11:09 | c_schmitz | File Deleted: survey_archive_111.lsa | |
| 2022-02-24 11:09 | c_schmitz | View Status | private => public |
| 2022-02-24 11:09 | c_schmitz | Bug heat | 14 => 8 |
| 2022-02-24 13:26 | c_schmitz | Note Edited: 68402 | |
| 2022-04-12 10:25 | galads | Status | resolved => closed |
| 2022-04-12 10:25 | galads | Fixed in Version | => 5.x |