View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
20564Bug reports_ Unknownpublic2026-08-07 14:59
ReporterRobertEhrenleitner-PLUS Assigned Toc_schmitz  
PrioritynoneSeveritycrash 
Status feedbackResolutionopen 
Product Version6.17.x 
Summary20564: Sporadic missing language details
Description

Since a year and across several updates, for a few surveys (in the magintude 1 out of 100), the following error occurs sometimes for some users when they list their surveys in the admin panel:

500: Internal server error - Survey language settings (de) not found. Please run the integrity check from the main menu.

As suggested, running the integrity check from main menu is not viable because our tables are much too huge, which leads to a request timeout.

When the sysadmin searches for the affected user in the web UI to list the user's surveys, also the admin will be presented the same error message.

The fix is definitely the following.

First, determine if this is really the problem:

SELECT COUNT(*) AS broken_surveys
FROM lime_surveys s
LEFT JOIN lime_surveys_languagesettings sl
  ON s.sid = sl.surveyls_survey_id
 AND s.language = sl.surveyls_language
WHERE sl.surveyls_survey_id IS NULL;

If this does not show "0", then the mentioned problem occurs. This happend several times for us.

Determine if the reporting user is affected:

SELECT s.sid, s.owner_id, u.users_name, u.full_name, s.language
FROM lime_surveys s
JOIN lime_users u on s.owner_id = u.uid
WHERE s.sid IN (
  SELECT s.sid
  FROM lime_surveys s
  LEFT JOIN lime_surveys_languagesettings sl
    ON s.sid = sl.surveyls_survey_id
   AND s.language = sl.surveyls_language
  WHERE sl.surveyls_survey_id IS NULL
)
ORDER BY owner_id;

Fix the problem for all users in one go:

INSERT INTO lime_surveys_languagesettings
(
  surveyls_survey_id,
  surveyls_language,
  surveyls_title
)
SELECT
  sid,
  language,
  CONCAT('Recovered survey ', sid)
FROM lime_surveys s
WHERE NOT EXISTS (
  SELECT 1
  FROM lime_surveys_languagesettings sl
  WHERE sl.surveyls_survey_id = s.sid
    AND sl.surveyls_language = s.language
);

Re-check with the following steps above (web UI and the two SELECT-queries), the issue should be gone.

Steps To Reproduce

Unknown.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)6.17.3+260512
I will donate to the project if issue is resolvedNo
Story point estimate
BrowserChromium
Database type & versionMariaDB 10.3.32
Server OS (if known)Red Hat Enterprise Linux 8.9
Webserver software & version (if known)Apache httpd 2.4.37
PHP VersionPHP-FPM 8.1.2

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2026-06-15 10:19

developer   ~85047

I see 3 issues here :

Since a year and across several updates, for a few surveys (in the magintude 1 out of 100), the following error occurs sometimes for some users when they list their surveys in the admin panel:

Find how it happens

As suggested, running the integrity check from main menu is not viable because our tables are much too huge, which leads to a request timeout.

have a light weight integrity check

As suggested, running the integrity check from main menu is not viable because our tables are much too huge, which leads to a request timeout.

Allow to disable the 500 error in the survey list : check if primary language exist, if not show a fixed text or a blank text.

As suggested, running the integrity check from main menu is not viable because our tables are much too huge, which leads to a request timeout.

Auto fix survey when goes to Survey screen : maybe a "This survey have some issue, please click hre to auto fix it »

c_schmitz

c_schmitz

2026-08-07 14:59

administrator   ~85395

This error should not happen anymore, even if the language setting for a survey is missing, the survey list should not crash.
Please re-test with the latest version and let us know.

I am wondering why the integrity check takes too long. We have tested it with huge database and it always completed. I would suggest to raise the timeout and assign more memory to PHP.
If that does not help consider to upgrade your server specs related to CPU/memory.

Issue History

Date Modified Username Field Change
2026-06-15 10:02 RobertEhrenleitner-PLUS New Issue
2026-06-15 10:19 DenisChenu Note Added: 85047
2026-06-15 10:19 DenisChenu Bug heat 0 => 2
2026-08-07 14:59 c_schmitz Assigned To => c_schmitz
2026-08-07 14:59 c_schmitz Status new => feedback
2026-08-07 14:59 c_schmitz Note Added: 85395
2026-08-07 14:59 c_schmitz Bug heat 2 => 4