- Posts: 6
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Problem copying a specific survey | Failed to import survey language settings
- kappernet
- Topic Author
- Offline
- New Member
Less
More
1 year 2 months ago #241148
by kappernet
Problem copying a specific survey | Failed to import survey language settings was created by kappernet
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 5.6.4+230206
Own server or LimeSurvey hosting: own server (php 7.4.33, Apache/2.4.55, 5.5.5-10.5.18-MariaDB-0+deb11u1
Survey theme/template: Bootswatch Theme ( bootswatch)
==================
Hi,
we tried to copy a survey, this results for a specific survey in following error message: Failed to import survey language settings - data is invalid.
but limesurvey creates a new entry in survey list - one without a title.
Selecting this survey (without title) leads to following error message: 500: Interner Serverfehler - Selected Surveys language not found
(not matter if we use super user or another one)
copying a different survey works.
as a first step we changed php.ini settings:
memory_limit = 128M
-> memory_limit = 256M
post_max_size = 16M
-> post_max_size = 128M
we activated debugging output
copying that survey shows:
/var/customers/webs/survey/latest/application/helpers/admin/import_helper.php(1423)
clicking on the new created empty-title survey:
/var/customers/webs/survey/latest/application/models/Survey.php(365)therefore i added
356 traceVar(App()->language);
357 traceVar($this->language);
358 traceVar($this->languagesettings);
which is shown as
10:35:03.127028tracevardump/var/customers/webs/survey/latest/application/models/Survey.php (356):
'de'10:35:03.127037tracevardump/var/customers/webs/survey/latest/application/models/Survey.php (357):
'de'10:35:03.127554tracevardump/var/customers/webs/survey/latest/application/models/Survey.php (358):
array()so
$this->languagesettingsseems to be an empty array - where does initialized? with which data?
anyone there who sees the problem an can help?
thx
Michael
Your LimeSurvey version: Version 5.6.4+230206
Own server or LimeSurvey hosting: own server (php 7.4.33, Apache/2.4.55, 5.5.5-10.5.18-MariaDB-0+deb11u1
Survey theme/template: Bootswatch Theme ( bootswatch)
==================
Hi,
we tried to copy a survey, this results for a specific survey in following error message: Failed to import survey language settings - data is invalid.
but limesurvey creates a new entry in survey list - one without a title.
Selecting this survey (without title) leads to following error message: 500: Interner Serverfehler - Selected Surveys language not found
(not matter if we use super user or another one)
copying a different survey works.
as a first step we changed php.ini settings:
memory_limit = 128M
-> memory_limit = 256M
post_max_size = 16M
-> post_max_size = 128M
we activated debugging output
copying that survey shows:
/var/customers/webs/survey/latest/application/helpers/admin/import_helper.php(1423)
clicking on the new created empty-title survey:
/var/customers/webs/survey/latest/application/models/Survey.php(365)therefore i added
356 traceVar(App()->language);
357 traceVar($this->language);
358 traceVar($this->languagesettings);
which is shown as
10:35:03.127028tracevardump/var/customers/webs/survey/latest/application/models/Survey.php (356):
'de'10:35:03.127037tracevardump/var/customers/webs/survey/latest/application/models/Survey.php (357):
'de'10:35:03.127554tracevardump/var/customers/webs/survey/latest/application/models/Survey.php (358):
array()so
$this->languagesettingsseems to be an empty array - where does initialized? with which data?
anyone there who sees the problem an can help?
thx
Michael
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13033
- Thank you received: 4009
1 year 2 months ago #241151
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Problem copying a specific survey | Failed to import survey language settings
What happens when you lss export this survey and import again?
If this also fails, please provide this lss here.
Joffm
If this also fails, please provide this lss here.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- kappernet
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
1 year 2 months ago - 1 year 2 months ago #241155
by kappernet
Replied by kappernet on topic Problem copying a specific survey | Failed to import survey language settings
hi,
same problem. error when importing an nameless survey in survey list. clicking the listitem shows error message.
survey.kapper.net/download/survey.zip
thx
Michael
same problem. error when importing an nameless survey in survey list. clicking the listitem shows error message.
survey.kapper.net/download/survey.zip
thx
Michael
Last edit: 1 year 2 months ago by kappernet.
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10117
- Thank you received: 3597
1 year 2 months ago #241162
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Problem copying a specific survey | Failed to import survey language settings
I have no problem importing that survey into version 5.6.9. Try updating to the latest version and retesting.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13033
- Thank you received: 4009
1 year 2 months ago #241165
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Problem copying a specific survey | Failed to import survey language settings
And I do not see problems in an old 5.4.13. nor in 5.6.8.
Joffm
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5034
- Thank you received: 1257
1 year 2 months ago #241170
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Problem copying a specific survey | Failed to import survey language settings
When trying to import that file in the demo installation (demo.limesurvey.org) (5.6., the error is:And I do not see problems in an old 5.4.13. nor in 5.6.8.
But the demo installation seldom works buggyfree when I try to import surveys there.500: Internal Server Error
Error while saving group: Array
(
[gid] => Array
(
[0] => Group ID (gid): “84” already set with language ”de”.
)
)
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Please Log in to join the conversation.
- kappernet
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
1 year 2 months ago #241176
by kappernet
Replied by kappernet on topic Problem copying a specific survey | Failed to import survey language settings
thank you all for comments!
after updating to Version 5.6.9+230306 copying this survey works as it shoud.
greetings from Vienna
Michael
after updating to Version 5.6.9+230306 copying this survey works as it shoud.
greetings from Vienna
Michael
Please Log in to join the conversation.
- mhladun
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 5
1 year 3 weeks ago #242671
by mhladun
Replied by mhladun on topic Problem copying a specific survey | Failed to import survey language settings
I got the same issue when I tried importing a survey that I just exported. I imported the .lsa to a different LS instance running the same version of LS, 5.6.0, and it worked,
Please Log in to join the conversation.
- Jameswalter
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 1
1 year 11 hours ago #243346
by Jameswalter
Replied by Jameswalter on topic Problem copying a specific survey | Failed to import survey language settings
If you are encountering an error message that says "Failed to import survey language settings" when trying to import survey language settings on LimeSurvey, there are several possible reasons and solutions:
Incorrect File Format: The error can occur if the file format of the import file is incorrect. Make sure that the import file is in the correct format, which is a .csv file.
Incorrect File Encoding: The error can also occur if the file encoding of the import file is incorrect. Make sure that the import file is encoded in UTF-8, which is the default encoding for LimeSurvey.
Incorrect Column Headers: The error can occur if the column headers in the import file do not match the expected column headers. Make sure that the column headers in the import file match the column headers in the LimeSurvey survey language settings.
Incorrect File Format: The error can occur if the file format of the import file is incorrect. Make sure that the import file is in the correct format, which is a .csv file.
Incorrect File Encoding: The error can also occur if the file encoding of the import file is incorrect. Make sure that the import file is encoded in UTF-8, which is the default encoding for LimeSurvey.
Incorrect Column Headers: The error can occur if the column headers in the import file do not match the expected column headers. Make sure that the column headers in the import file match the column headers in the LimeSurvey survey language settings.
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13697
- Thank you received: 2501
1 year 9 hours ago #243371
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Problem copying a specific survey | Failed to import survey language settings
@Jameswalter : stop to use ChatGPT for your answers.
It's a non sense here
It's a non sense here
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Please Log in to join the conversation.
- LarryF
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 2
11 months 3 weeks ago #243494
by LarryF
Replied by LarryF on topic Problem copying a specific survey | Failed to import survey language settings
We encountered the same problem on the 5.5.2 version :Failed to import survey language settings - data is invalid
I was able to import the survey into another identical instance though.
Once it was imported, i couldn't import it anymore on the second instance, which is probably what happened on the first instance too.
It looks like a conflict with the existing survey.
I was able to import the survey into another identical instance though.
Once it was imported, i couldn't import it anymore on the second instance, which is probably what happened on the first instance too.
It looks like a conflict with the existing survey.
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13697
- Thank you received: 2501
11 months 3 weeks ago #243524
by DenisChenu
Can you activate ddebug mode on 2nd import ? manual.limesurvey.org/Debug_mode
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Problem copying a specific survey | Failed to import survey language settings
Maybe need to be reported with the LSS and this details.We encountered the same problem on the 5.5.2 version :Failed to import survey language settings - data is invalid
I was able to import the survey into another identical instance though.
Once it was imported, i couldn't import it anymore on the second instance, which is probably what happened on the first instance too.
It looks like a conflict with the existing survey.
Can you activate ddebug mode on 2nd import ? manual.limesurvey.org/Debug_mode
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Please Log in to join the conversation.