View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 20677 | Bug reports | Question editor | public | 2026-09-08 19:19 | 2026-10-22 11:04 |
| Reporter | ebubekir42 | Assigned To | c_schmitz | ||
| Priority | none | Severity | text | ||
| Status | resolved | Resolution | fixed | ||
| Summary | 20677: Incorrect image path generated for question background images on Windows Server 2025 with WampServer | ||||
| Description | When using LimeSurvey with Apache2 on Ubuntu 22.04, images added as a question background image are displayed correctly. However, when the same functionality is used on Windows Server 2025 with WampServer, LimeSurvey generates an incorrect image URL. The Windows directory separators ( On Ubuntu 22.04, the generated HTML is:
On Windows Server 2025 with WampServer, the generated HTML is:
The This appears to be related to path separator handling on Windows. LimeSurvey may be using Windows filesystem path separators ( The issue does not occur in the Ubuntu 22.04 + Apache2 environment, where the image URL is generated correctly with forward slashes. | ||||
| Steps To Reproduce | Steps to reproduce
Expected resultLimeSurvey should generate a web-compatible URL for the image regardless of the operating system or web server environment. On Windows, the generated URL should use forward slashes (
The image should then be loaded and displayed correctly. Actual resultOn Windows Server 2025 with WampServer, LimeSurvey generates an image URL containing Windows backslashes ( The generated URL looks like:
Because this is not a valid/usable web path for the image, the browser cannot load the image and the question background image is not displayed. The same functionality works correctly on Ubuntu 22.04 with Apache2. | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Bug heat | 12 | ||||
| Complete LimeSurvey version number (& build) | 7.0.14 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | Microsoft Edge | ||||
| Database type & version | MySQL 9.7.2 | ||||
| Server OS (if known) | Windows Server 2025 | ||||
| Webserver software & version (if known) | WampServer 3.4.2 | ||||
| PHP Version | 9.7.2 | ||||
| Git branch / Pull Request URL | https://github.com/LimeSurvey/LimeSurvey/pull/5283 | ||||
|
Just found this bug-report, I can confirm that this issue also exists with IIS Webserver as it might be OS related. |
|
|
@ebubekir42 the code-change is working for me on IIS. maybe you can review on your end as well? |
|
|
Thank you for confirming. I will review and test the code change on my end as well. In my environment, LimeSurvey is running on Windows with WampServer. The code change should be made in the following file: application/helpers/SurveyThemeHelper.php I will test the change on my WampServer environment and update this issue with the results. |
|
|
I tested the code change in application/helpers/SurveyThemeHelper.php on my Windows/WampServer environment, but unfortunately, it did not resolve the issue on my side. The issue still occurs with the same incorrect path format. |
|
|
@ebubekir42 I'm also interested in this fix as I'm running it on IIS, I'm having the same issue. Based on your comments, I'm not sure if you tested the fixed file from c_schmitz properly. As I mentioned, it is working on my end (IIS environment). Here are the steps how I tested it:
On my end it is working fine after i replaced this file. I can now use images as answers in questions as well as images as background images in surveys. |
|
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40983 |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-09-08 19:19 | ebubekir42 | New Issue | |
| 2026-09-08 19:19 | ebubekir42 | File Added: Adsız.png | |
| 2026-09-09 08:19 | c_schmitz | Assigned To | => c_schmitz |
| 2026-09-09 08:19 | c_schmitz | Status | new => assigned |
| 2026-09-09 08:19 | c_schmitz | Status | assigned => ready for code review |
| 2026-09-09 08:20 | c_schmitz | Git branch / Pull Request URL | => https://github.com/LimeSurvey/LimeSurvey/pull/5283 |
| 2026-09-18 08:07 | guest | Bug heat | 0 => 6 |
| 2026-09-18 08:08 | DHSUbk | Note Added: 85837 | |
| 2026-09-18 08:08 | DHSUbk | Bug heat | 6 => 8 |
| 2026-09-18 16:59 | DHSUbk | Note Added: 85841 | |
| 2026-10-05 20:50 | ebubekir42 | Note Added: 86201 | |
| 2026-10-05 20:50 | ebubekir42 | Bug heat | 8 => 10 |
| 2026-10-05 20:50 | ebubekir42 | Note Added: 86202 | |
| 2026-10-16 14:59 | DHSUbk | Note Added: 86501 | |
| 2026-10-22 11:04 | c_schmitz | Changeset attached | => LimeSurvey master 6041895a |
| 2026-10-22 11:04 | c_schmitz | Note Added: 86697 | |
| 2026-10-22 11:04 | c_schmitz | Status | ready for code review => resolved |
| 2026-10-22 11:04 | c_schmitz | Resolution | open => fixed |
| 2026-10-22 11:04 | c_schmitz | Bug heat | 10 => 12 |