View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
18584Bug reportsSurvey editingpublic2023-01-19 17:13
Reportersamarta Assigned Togabrieljenik  
PriorityhighSeverityblock 
Status closedResolutionunable to reproduce 
Product Version5.5.x 
Summary18584: Internal server Error when clicking on the item "resources" on the left menu
Description

Clicking on the item "Resources" on the left menu (Survey menu) of any survey we get the following error:
Internal Server Error

require(conf/config.php): failed to open stream: No such file or directory

An internal error occurred while the Web server was processing your request. Please contact the webmaster to report this problem.

Thank you.

Steps To Reproduce

Steps to reproduce

Click on the item "Resources" of the left menu (Survey menu)

Expected result

Window with the list of files

(Write here what you expected to happen)

Actual result

Internal Server Error

require(conf/config.php): failed to open stream: No such file or directory

An internal error occurred while the Web server was processing your request. Please contact the webmaster to report this problem.

TagsNo tags attached.
Attached Files
image.png (70,879 bytes)   
image.png (70,879 bytes)   
image-2.png (78,792 bytes)   
image-2.png (78,792 bytes)   
Bug heat8
Complete LimeSurvey version number (& build)Version 5.5.1+230103
I will donate to the project if issue is resolvedNo
BrowserSafari/ Chrome
Database type & versionMysql - Database server version 8.0.17
Server OS (if known)CentOs
Webserver software & version (if known) Apache/2.4.37
PHP Version 7.4.21

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2023-01-09 11:06

developer   ~73393

Can you activate debug mode please ?

samarta

samarta

2023-01-09 11:07

reporter   ~73394

I also got this error when trying to add a image to a survey text element.

The URL of the popup window is:
https://193.136.200.167/vendor/kcfinder/browse.php?type=images&CKEditor=question_pt&CKEditorFuncNum=2&langCode=en

image-3.png (222,705 bytes)
samarta

samarta

2023-01-09 11:09

reporter   ~73395

Debug mod =2

DenisChenu

DenisChenu

2023-01-09 11:11

developer   ~73396

Debug mod =2

Oh yes … debugmode didn't goes to kcfinder …

I can't reproduce on my local install … :(

ollehar

ollehar

2023-01-09 11:46

administrator   ~73400

Yeah tricky one. One way is to use xdebug with breakpoints, another to spam kcfinder PHP with with error_log statement and see where it fails.

samarta

samarta

2023-01-09 11:49

reporter   ~73401

I've noticed that the file config.php does not exists in the kcfinder/conf directory

ls -al /var/www/html/limesurvey/vendor/kcfinder/conf/
total 8
drwxr-xr-x 2 apache apache 46 Jan 5 09:40 .
drwxr-xr-x 13 apache apache 237 Jan 5 09:40 ..
-rw-r--r-- 1 apache apache 50 Jan 3 10:47 .htaccess
-rw-r--r-- 1 apache apache 673 Jan 3 10:47 upload.htaccess

The file config.php misses , right?

DenisChenu

DenisChenu

2023-01-09 11:51

developer   ~73402

https://github.com/LimeSurvey/LimeSurvey/blob/master/vendor/kcfinder/conf/config.php

You update via zip file or git pull ?

samarta

samarta

2023-01-09 12:11

reporter   ~73403

I've updated via ComfortUpdate .

samarta

samarta

2023-01-10 09:17

reporter   ~73408

Hi,
I downloaded the latest version of LS and just copied the KCfinder directory to /var/www/html/limesurvey/vendor/kcfinder. I can now add images to question text elements (the kcfinder window now appears). Accessing "resources", in the left menu the kcfinder window still doesn't appear, it doesn't give any error, but it shows the spinning wheel and crashes.
I have another machine for testing purposes with the same version of LS, which also had the same errors. I did the same thing and everything works. I will compare the permissions of the directories..

DenisChenu

DenisChenu

2023-01-10 10:59

developer   ~73411

Accessing "resources", in the left menu the kcfinder window still doesn't appear, it doesn't give any error, but it shows the spinning wheel and crashes.

Can you check with right-click, open in new tab ?

I have another machine for testing purposes with the same version of LS, which also had the same errors. I did the same thing and everything works. I will compare the permissions of the directories..

Great

@ollehar : ComfortUpdate issue ? Disable config.php globally ?

ollehar

ollehar

2023-01-10 11:29

administrator   ~73412

Weird. Wonder if anyone else had similar problem after update.

DenisChenu

DenisChenu

2023-01-10 11:32

developer   ~73413

Weird. Wonder if anyone else had similar problem after update.

No public survey broken, only happen if you need to upload a file since the last update.

gabrieljenik

gabrieljenik

2023-01-19 13:35

manager   ~73496

Hi All, What's the status on this issue.
Solved? Can't follow :)

samarta

samarta

2023-01-19 16:39

reporter   ~73503

Hi,

I've compared all the directories permissions on the two servers and there are no differences.

I have tested again today, in several surveys, and now it seems to work.
I didn't make any changes to the server . Strange behaviour. I am puzzled.

Sorry for the inconvenience.

João

gabrieljenik

gabrieljenik

2023-01-19 17:13

manager   ~73504

As per the comments, will be closing the ticket.
Please add any comments in case it should be reopened.
Thanks

Issue History

Date Modified Username Field Change
2023-01-09 10:55 samarta New Issue
2023-01-09 10:55 samarta File Added: image.png
2023-01-09 10:55 samarta File Added: image-2.png
2023-01-09 11:06 DenisChenu Note Added: 73393
2023-01-09 11:06 DenisChenu Bug heat 0 => 2
2023-01-09 11:07 samarta Note Added: 73394
2023-01-09 11:07 samarta File Added: image-3.png
2023-01-09 11:07 samarta Bug heat 2 => 4
2023-01-09 11:09 samarta Note Added: 73395
2023-01-09 11:11 DenisChenu Note Added: 73396
2023-01-09 11:25 ollehar Priority none => high
2023-01-09 11:46 ollehar Note Added: 73400
2023-01-09 11:46 ollehar Bug heat 4 => 6
2023-01-09 11:49 samarta Note Added: 73401
2023-01-09 11:51 DenisChenu Note Added: 73402
2023-01-09 12:11 samarta Note Added: 73403
2023-01-10 09:17 samarta Note Added: 73408
2023-01-10 10:59 DenisChenu Note Added: 73411
2023-01-10 11:29 ollehar Note Added: 73412
2023-01-10 11:32 DenisChenu Note Added: 73413
2023-01-11 13:53 gabrieljenik Status new => acknowledged
2023-01-19 13:35 gabrieljenik Note Added: 73496
2023-01-19 13:35 gabrieljenik Bug heat 6 => 8
2023-01-19 16:39 samarta Note Added: 73503
2023-01-19 17:13 gabrieljenik Assigned To => gabrieljenik
2023-01-19 17:13 gabrieljenik Status acknowledged => closed
2023-01-19 17:13 gabrieljenik Resolution open => unable to reproduce
2023-01-19 17:13 gabrieljenik Note Added: 73504