View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
19121Bug reports_ Unknownpublic2023-09-28 09:20
ReporterArtim Assigned Toollehar  
PrioritynoneSeverityblock 
Status closedResolutionwon't fix 
Product Version6.2.x 
Summary19121: Installation possibly broken
Description

It seems, the installation process is broken, or something else isn't working. I first tried installing with 6.2.5. The installer itself works fine, but after logging in, the page is completely broken. From nginx logs I can tell that some js and css files are supposed to be in tmp/assets/, but they can only be found in directories like assets/. Interestingly enough, when enabling debugging, the page is displayed correctly, but when opening the global settings I'm only greeted with a red error and a wall of text.

Explanation for the attached files: lime_nginx.log contains some lines from the nginx log displaying assets that aren't found. Sadly I have not yet found out where the additional logs are being written when setting debug=2. lime_global_settings.log shows the PHP error when opening global settings. lime_global_settings.png shows the same as screenshot to show, which parts are being highlighted.

Steps To Reproduce

I simply downloaded the zip from the LimeSurvey CE download page, unpackaed it on my server, owned it by www-data:www-data (as every webpage), set permissions following the german guide (https://manual.limesurvey.org/Installation_security_hints/de#Setzen_von_Berechtigungen_auf_einem_selbstverwalteten_Linux-System) as the english one doesn't have the commands written out and then simply opened the web page and went through setup with no complaints. This happens with 5.2.5, 5.2.6 and 5.2.9

TagsNo tags attached.
Attached Files
lime_nginx.log (2,081 bytes)   
[26/Sep/2023:17:20:43 +0200] "GET /tmp/assets/2e6f987/js/select2.full.min.js HTTP/2.0" 404 132 "https://domain.de/index.php?r=admin" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
[26/Sep/2023:17:20:43 +0200] "GET /tmp/assets/e35cbe66/ckeditor.js HTTP/2.0" 404 132 "https://domain.de/index.php?r=admin" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
[26/Sep/2023:17:20:43 +0200] "GET /tmp/assets/e35cbe66/config.js HTTP/2.0" 404 132 "https://domain.de/index.php?r=admin" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
[26/Sep/2023:17:20:43 +0200] "GET /tmp/assets/4db98322/ckeditoradditions.js HTTP/2.0" 404 132 "https://domain.de/index.php?r=admin" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
[26/Sep/2023:17:20:43 +0200] "GET /tmp/assets/eeea5f3a/js/bootstrap_5.min.js HTTP/2.0" 404 132 "https://domain.de/index.php?r=admin" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
26/Sep/2023:17:20:43 +0200] "GET /tmp/assets/e6ccb482/script.js HTTP/2.0" 200 93 "https://domain.de/index.php?r=admin" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
[26/Sep/2023:17:20:43 +0200] "GET /tmp/assets/34e56688/script.js HTTP/2.0" 200 27 "https://domain.de/index.php?r=admin" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
[26/Sep/2023:17:20:43 +0200] "GET /tmp/assets/2daa08ee/build/adminbasics.min.js HTTP/2.0" 404 132 "https://domain.de/index.php?r=admin" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
[26/Sep/2023:17:20:43 +0200] "GET /tmp/assets/a4d746b8/js/modaleditor.js HTTP/2.0" 404 132 "https://domain.de/index.php?r=admin" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
lime_nginx.log (2,081 bytes)   
lime_global_setting.log (8,243 bytes)   
PHP warning
Undefined variable $themeName

/var/www/limesurvey/application/views/admin/globalsettings/_general.php(45)
            </div>
        </div>

        <!-- Default Template -->
        <div class="mb-3">
            <label class="col-12 form-label" for="defaulttheme">
                <?php eT("Default theme:");
                echo((Yii::app()->getConfig("demoMode") == true) ? '*' : ''); ?>
            </label>
            <div class="col-12">
                <select class="form-select" name="defaulttheme" id="defaulttheme">
                    <?php foreach ($templatenames as $templatename) : ?>
                        <option value='<?php echo CHtml::encode($themeName); ?>' <?php echo ($thisdefaulttheme == $templatename) ? "selected='selected'" : "" ?> >
                            <?php echo CHtml::encode($templatename); ?>
                        </option>
                    <?php endforeach; ?>
                </select>
            </div>
        </div>

        <!-- Autocreate group and question -->
        <div class="mb-3">
            <label class="col-12 form-label" for="createsample">
                <?php eT("Create example question group and question:"); ?>
            </label>
			
Stack Trace
#0	
+  /var/www/limesurvey/vendor/yiisoft/yii/framework/web/CBaseController.php(126): require("/var/www/limesurvey/application/views/admin/globalsettings/_gene...")
#1	
+  /var/www/limesurvey/vendor/yiisoft/yii/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/limesurvey/application/views/admin/./globalsettings/_ge...", array("aListOfThemeObjects" => array("Sea_Green" => stdClass), "aEncodings" => array("auto" => "(Automatisch)", "swe7" => "7bit Schwedisch", "armscii8" => "ARMSCII-8 Armenisch", "big5" => "Big5 Traditionelles Chinesisch", ...), "thischaracterset" => "auto", "sideMenuBehaviour" => "adaptive"), true)
#2	
+  /var/www/limesurvey/vendor/yiisoft/yii/framework/web/CController.php(872): CBaseController->renderFile("/var/www/limesurvey/application/views/admin/./globalsettings/_ge...", array("aListOfThemeObjects" => array("Sea_Green" => stdClass), "aEncodings" => array("auto" => "(Automatisch)", "swe7" => "7bit Schwedisch", "armscii8" => "ARMSCII-8 Armenisch", "big5" => "Big5 Traditionelles Chinesisch", ...), "thischaracterset" => "auto", "sideMenuBehaviour" => "adaptive"), true)
#3	
–  /var/www/limesurvey/application/controllers/AdminController.php(261): CController->renderPartial("./globalsettings/_general", array("aListOfThemeObjects" => array("Sea_Green" => stdClass), "aEncodings" => array("auto" => "(Automatisch)", "swe7" => "7bit Schwedisch", "armscii8" => "ARMSCII-8 Armenisch", "big5" => "Big5 Traditionelles Chinesisch", ...), "thischaracterset" => "auto", "sideMenuBehaviour" => "adaptive"), false, false)
256                     $view = $sModulePath;
257                 }
258             }
259         }
260 
261         return parent::renderPartial($view, $data, $return, $processOutput);
262     }
263 
264     /**
265      * Routes all the actions to their respective places
266      *
#4	
–  /var/www/limesurvey/modules/admin/globalsettings/views/globalSettings_view.php(45): AdminController->renderPartial("./globalsettings/_general", array("aListOfThemeObjects" => array("Sea_Green" => stdClass), "aEncodings" => array("auto" => "(Automatisch)", "swe7" => "7bit Schwedisch", "armscii8" => "ARMSCII-8 Armenisch", "big5" => "Big5 Traditionelles Chinesisch", ...), "thischaracterset" => "auto", "sideMenuBehaviour" => "adaptive"))
40             ]
41         ); ?>
42     </div>
43 
44     <div id="general" class="tab-pane col-lg-10 offset-lg-1">
45         <?php $this->renderPartial(
46             "./globalsettings/_general",
47             [
48                 'aListOfThemeObjects' => $aListOfThemeObjects,
49                 'aEncodings'          => $aEncodings,
50                 'thischaracterset'    => $thischaracterset,
#5	
+  /var/www/limesurvey/vendor/yiisoft/yii/framework/web/CBaseController.php(126): require("/var/www/limesurvey/modules/admin/globalsettings/views/globalSet...")
#6	
+  /var/www/limesurvey/vendor/yiisoft/yii/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/limesurvey/modules/admin/globalsettings/views/globalSet...", array("title" => "hi", "message" => "message", "usercount" => 1, "surveycount" => 0, ...), true)
#7	
+  /var/www/limesurvey/vendor/yiisoft/yii/framework/web/CController.php(872): CBaseController->renderFile("/var/www/limesurvey/modules/admin/globalsettings/views/globalSet...", array("title" => "hi", "message" => "message", "usercount" => 1, "surveycount" => 0, ...), true)
#8	
–  /var/www/limesurvey/application/controllers/AdminController.php(261): CController->renderPartial("lsadminmodules.globalsettings.views.globalSettings_view", array("title" => "hi", "message" => "message", "usercount" => 1, "surveycount" => 0, ...), true, false)
256                     $view = $sModulePath;
257                 }
258             }
259         }
260 
261         return parent::renderPartial($view, $data, $return, $processOutput);
262     }
263 
264     /**
265      * Routes all the actions to their respective places
266      *
#9	
+  /var/www/limesurvey/modules/admin/globalsettings/controller/globalsettings.php(79): AdminController->renderPartial("lsadminmodules.globalsettings.views.globalSettings_view", array("title" => "hi", "message" => "message", "usercount" => 1, "surveycount" => 0, ...), true)
#10	
+  /var/www/limesurvey/application/core/SurveyCommonAction.php(395): lsadminmodules\globalsettings\controller\GlobalSettings->renderCentralContents("globalsettings", "globalSettings_view", array("title" => "hi", "message" => "message", "usercount" => 1, "surveycount" => 0, ...))
#11	
+  /var/www/limesurvey/application/controllers/admin/globalsettings.php(662): SurveyCommonAction->renderWrappedTemplate("globalsettings", "globalSettings_view", array("title" => "hi", "message" => "message", "usercount" => 1, "surveycount" => 0, ...), false)
#12	
+  /var/www/limesurvey/modules/admin/globalsettings/controller/globalsettings.php(63): GlobalSettings->renderWrappedTemplate("globalsettings", "globalSettings_view", array("title" => "hi", "message" => "message", "usercount" => 1, "surveycount" => 0, ...), false)
#13	
+  /var/www/limesurvey/application/controllers/admin/globalsettings.php(146): lsadminmodules\globalsettings\controller\GlobalSettings->renderWrappedTemplate("globalsettings", "globalSettings_view", array("title" => "hi", "message" => "message", "usercount" => 1, "surveycount" => 0, ...))
#14	
+  /var/www/limesurvey/application/controllers/admin/globalsettings.php(53): GlobalSettings->displaySettings()
#15	
 unknown(0): GlobalSettings->index()
#16	
+  /var/www/limesurvey/vendor/yiisoft/yii/framework/web/actions/CAction.php(115): ReflectionMethod->invokeArgs(lsadminmodules\globalsettings\controller\GlobalSettings, array())
#17	
+  /var/www/limesurvey/application/core/SurveyCommonAction.php(83): CAction->runWithParamsInternal(lsadminmodules\globalsettings\controller\GlobalSettings, ReflectionMethod, array("r" => "admin/globalsettings"))
#18	
+  /var/www/limesurvey/vendor/yiisoft/yii/framework/web/CController.php(308): SurveyCommonAction->runWithParams(array("r" => "admin/globalsettings"))
#19	
+  /var/www/limesurvey/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(lsadminmodules\globalsettings\controller\GlobalSettings)
#20	
+  /var/www/limesurvey/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(lsadminmodules\globalsettings\controller\GlobalSettings, array())
#21	
+  /var/www/limesurvey/application/controllers/AdminController.php(202): CController->run("globalsettings")
#22	
+  /var/www/limesurvey/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): AdminController->run("globalsettings")
#23	
+  /var/www/limesurvey/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/globalsettings")
#24	
+  /var/www/limesurvey/vendor/yiisoft/yii/framework/base/CApplication.php(185): CWebApplication->processRequest()
#25	
+  /var/www/limesurvey/index.php(161): CApplication->run()
lime_global_setting.log (8,243 bytes)   
lime_global_settings.png (559,772 bytes)
Bug heat6
Complete LimeSurvey version number (& build)6.2.9+230925
I will donate to the project if issue is resolvedNo
BrowserIndependent of browser
Database type & versionPostgreSQL 15.3
Server OS (if known)Debian testing
Webserver software & version (if known)nginx 1.24.0
PHP Version8.2.7

Users monitoring this issue

Artim

Activities

ollehar

ollehar

2023-09-27 09:37

administrator   ~77358

Can you please click F12 in the browser and give us a screenshot of any errors shown in the JavaScript console? Also check for 404 in the network tab. Thank you.

Artim

Artim

2023-09-27 23:33

reporter   ~77388

Here you go

lime_console.png (146,634 bytes)
lime_network.png (146,298 bytes)
ollehar

ollehar

2023-09-28 09:20

administrator   ~77390

Your server software (nginx, apache) is not setup properly, I'd guess, but we don't help with that here. You should visit our forum or Discord channel for further assistance.

ollehar

ollehar

2023-09-28 09:20

administrator   ~77391

Problem with nginx or apache, not LimeSurvey.

Issue History

Date Modified Username Field Change
2023-09-26 17:53 Artim New Issue
2023-09-26 17:53 Artim File Added: lime_nginx.log
2023-09-26 17:53 Artim File Added: lime_global_setting.log
2023-09-26 17:53 Artim File Added: lime_global_settings.png
2023-09-27 09:37 ollehar Assigned To => ollehar
2023-09-27 09:37 ollehar Status new => feedback
2023-09-27 09:37 ollehar Note Added: 77358
2023-09-27 09:37 ollehar Bug heat 0 => 2
2023-09-27 23:33 Artim Note Added: 77388
2023-09-27 23:33 Artim File Added: lime_console.png
2023-09-27 23:33 Artim File Added: lime_network.png
2023-09-27 23:33 Artim Bug heat 2 => 4
2023-09-27 23:33 Artim Status feedback => assigned
2023-09-27 23:33 Artim Issue Monitored: Artim
2023-09-27 23:33 Artim Bug heat 4 => 6
2023-09-28 09:20 ollehar Note Added: 77390
2023-09-28 09:20 ollehar Status assigned => closed
2023-09-28 09:20 ollehar Resolution open => won't fix
2023-09-28 09:20 ollehar Note Added: 77391