View Issue Details

This issue affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
20691Bug reportsQuestion editorpublic2026-09-17 13:12
Reporterilot Assigned Toc_schmitz  
PrioritynoneSeveritypartial_block 
Status closedResolutionfixed 
Summary20691: New editor does not load on IONOS shared hosting.
Description

The new editor only shows "Check permission" with an endless loading spinner.

This is caused by two issues.

  1. These endpoints initially return HTTP 500:

/rest/v1/version-info
/rest/v1/user-permissions

The .htaccess rewrite does not determine the correct base path.

Add:

RewriteCond %{REQUEST_URI}::$1 ^(.?/)(.)::\2$
RewriteRule ^(.*)$ - [E=BASE:%1]

and replace:

RewriteRule . index.php

with:

RewriteRule ^ %{ENV:BASE}index.php

See: https://stackoverflow.com/questions/21062290/set-rewritebase-to-the-current-folder-path-dynamically

This fixes /rest/v1/version-info.

  1. Authenticated REST endpoints return 401

After fixing the rewrite, /rest/v1/user-permissions and other authenticated endpoints return HTTP 401.

The browser sends the Bearer header, but on IONOS it is available in PHP as:

$_SERVER['REDIRECT_HTTP_AUTHORIZATION']

Add this fallback to getAuthBearerToken() in:

/limesurvey/application/libraries/Api/Rest/Endpoint/EndpointFactory.php

if (
!isset($headers['authorization'])
&& isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])
) {
$headers['authorization'] =
$_SERVER['REDIRECT_HTTP_AUTHORIZATION'];
}

Apache seems to add the REDIRECT_ prefix during rewrites.

Related issue:

https://github.com/martialblog/docker-limesurvey/issues/302

WordPress also checks REDIRECT_HTTP_AUTHORIZATION as a fallback:

https://developer.wordpress.org/reference/classes/wp_rest_server/get_headers/

Steps To Reproduce

Steps to reproduce

Install LimeSurvey 7.1.0 on IONOS shared hosting in /limesurvey/.

Point xxx.yyy.com to /limesurvey/.

Open the new editor.

Expected result

The new editor loads.

Actual result

The editor shows "Check permission" with an endless loading spinner.

(Write here what happened instead)

TagsNo tags attached.
Bug heat8
Complete LimeSurvey version number (& build)7.1.0
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMariaDB 11.8
Server OS (if known)
Webserver software & version (if known)
PHP Version8.4

Users monitoring this issue

ilot

Activities

c_schmitz

c_schmitz

2026-09-15 10:53

administrator   ~85752

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

ilot

ilot

2026-09-15 13:30

reporter   ~85755

Thank you very much!
Could you also add the fix for the .htaccess file? I think that solution would make the deployment more versatile.
In my case a "RewriteBase /" works to, but that would not work for everyone I think.

c_schmitz

c_schmitz

2026-09-15 15:10

administrator   ~85756

Done ;)

c_schmitz

c_schmitz

2026-09-15 15:13

administrator   ~85757

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

LimeBot

LimeBot

2026-09-17 13:12

administrator   ~85807

Fixed in Release 7.1.2+260917

Related Changesets

LimeSurvey: master acc33adc

2026-09-15 10:53

c_schmitz


Details Diff
Fixed issue 20691: New editor does not load in some hosting configurations Affected Issues
20691
mod - application/libraries/Api/Rest/Endpoint/EndpointFactory.php Diff File

LimeSurvey: master f5fc370c

2026-09-15 15:10

c_schmitz


Details Diff
Fixed issue 20691: New editor does not load in some hosting configurations Affected Issues
20691
mod - .htaccess Diff File

Issue History

Date Modified Username Field Change
2026-09-15 00:20 ilot New Issue
2026-09-15 00:26 ilot Issue Monitored: ilot
2026-09-15 00:26 ilot Bug heat 0 => 2
2026-09-15 10:53 c_schmitz Changeset attached => LimeSurvey master acc33adc
2026-09-15 10:53 c_schmitz Note Added: 85752
2026-09-15 10:53 c_schmitz Assigned To => c_schmitz
2026-09-15 10:53 c_schmitz Status new => resolved
2026-09-15 10:53 c_schmitz Resolution open => fixed
2026-09-15 10:53 c_schmitz Bug heat 2 => 4
2026-09-15 13:30 ilot Note Added: 85755
2026-09-15 13:30 ilot Bug heat 4 => 6
2026-09-15 15:10 c_schmitz Note Added: 85756
2026-09-15 15:13 c_schmitz Changeset attached => LimeSurvey master f5fc370c
2026-09-15 15:13 c_schmitz Note Added: 85757
2026-09-17 13:12 LimeBot Note Added: 85807
2026-09-17 13:12 LimeBot Status resolved => closed
2026-09-17 13:12 LimeBot Bug heat 6 => 8