View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
17284Bug reportsPluginspublic2021-05-28 15:23
ReporterChristianJeske Assigned Toollehar  
PrioritynoneSeveritycrash 
Status closedResolutionno change required 
Product Version4.5.x 
Summary17284: Can't open plugin manager
Description

If I try to open the plugin manager I get this screen:

500: Interner Serverfehler
Missing configuration file for plugin AuditLog

Ein interner Fehler ist aufgetreten, während der Webserver Ihre Anfrage bearbeitet hat.

Bitte kontaktieren Sie Administrator, um dieses Problem zu melden.

I have: LimeSurvey
Version 4.6.0+210504

I use a Maria-DB Version 10.4.

On the server if I look into the lime survey folder I find under application/core/plugins/AuditLog
AuditLog.php
config.xml
mdlAuditLog.php

So to me it looks like the files are there. But for whatever reason it does not find them.

Steps To Reproduce

click on configuration -> plugin manager

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)LimeSurvey Version 4.6.0+210504
I will donate to the project if issue is resolvedNo
BrowserFirefox current version
Database type & versionMaria DB 10.4
Server OS (if known)No clue
Webserver software & version (if known)No clue
PHP Version7.3.6 (I guess I could upgrade to 7.4.0 if that helps)

Users monitoring this issue

There are no users monitoring this issue.

Activities

ollehar

ollehar

2021-05-04 17:17

administrator   ~64225

Can you enable debug = 2 in application/config/config.php and try again, please? Paste the complete error message here.

ChristianJeske

ChristianJeske

2021-05-05 09:19

reporter   ~64245

38 // 'connectionID' => 'db',
39 // 'sessionTableName' => '{{sessions}}',
40 // ),
41
42 'urlManager' => array(
43 'urlFormat' => 'path',
44 'rules' => require('routes.php'),
45 'showScriptName' => true,
46 ),
47
48 ),
49 // Use the following config variable to set modified optional settings copied from config-defaults.php
50 config=>array(
51 // debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this
52 // then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
53 // on your webspace.
54 // LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
55 debug=>2,
56 'debugsql'=>0 // Set this to 1 to enanble sql logging, only active when debug = 2
57 )
58 );
59 / End of file config.php /
60 / Location: ./application/config/config.php /

Well, it does not look like it work?

There is more below about a stack trace:

         if (is_array($securityConfig)) {

151 $this->config = array_merge($this->config, $securityConfig);
152 }
153 }
154 if (file_exists($configdir . '/config.php')) {
155 $userConfigs = require($configdir . '/config.php');
156 if (is_array($userConfigs['config'])) {
157 $this->config = array_merge($this->config, $userConfigs['config']);
158 }
159 }

89
90 / Construct CWebApplication /
91 parent::__construct($aApplicationConfig);
92
93 / Because we have app now : we have to call again the config (usage of Yii::app() for publicurl) /
94 $this->setConfigs();
95
96
97 / Update asset manager path and url only if not directly set in aApplicationConfig (from config.php),
98
must do after reloading to have valid publicurl (the tempurl) */
99 if (!isset($aApplicationConfig['components']['assetManager']['baseUrl'])) {

127 to the constructor of the application class.
128
@return mixed the application instance
129 */
130 public static function createApplication($class,$config=null)
131 {
132 return new $class($config);
133 }
134
135 /*
136
Returns the application singleton or null if the singleton has not been created yet.
137 * @return CApplication the application singleton, null if the singleton has not been created yet.

7 require_once APPPATH . 'core/LSYii_Application' . EXT;
178
179 $config = require_once(APPPATH . 'config/internal' . EXT);
180
181 Yii::$enableIncludePath = false;
182 Yii::createApplication('LSYii_Application', $config)->run();
183
184 / End of file index.php /
185 / Location: ./index.php /

ChristianJeske

ChristianJeske

2021-05-05 09:31

reporter   ~64246

ah and I tried with 50 config=>array( enabled and with the ' in front of it (like it was before)

ollehar

ollehar

2021-05-05 12:12

administrator   ~64250

Sorry, the pasted error message is not very clear to me. Can you do a screenshot instead?

ChristianJeske

ChristianJeske

2021-05-06 09:38

reporter   ~64254

Here is the images

long error.png (50,676 bytes)   
long error.png (50,676 bytes)   
error.png (27,925 bytes)   
error.png (27,925 bytes)   
ollehar

ollehar

2021-05-06 10:26

administrator   ~64257

Thank you. Did you update from a previous version of LS, or is this a fresh install?

ChristianJeske

ChristianJeske

2021-05-07 10:48

reporter   ~64281

It is an old install (2.x) with about 60 or so questionaires.

When I updated it to version 4.x I followed this:

Delete all the old files/folders except for:

/application/config/security.php -Important!! This is the key to all encrypted data in LimeSurvey (version 4 and later)
/application/config/config.php;
/upload directory

I did afterwards the one month of comfort update, followed by manual updates, always following that guideline, backup DB, delete whole folder except for those files/folders, copy the new version in with ftp software

ollehar

ollehar

2021-05-07 18:25

administrator   ~64292

Your best bet is probably to add the file manually from Github: https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/plugins/AuditLog/config.xml

ChristianJeske

ChristianJeske

2021-05-27 16:11

reporter   ~64598

I tried to change the config from the AudiotLog, no change.

I looked into the xml that generates the error:
(/application/models/Plugin.php(111))

public function getExtensionConfig()
{
    $file = $this->getDir() . DIRECTORY_SEPARATOR . 'config.xml';
    if (file_exists($file)) {
        if (\PHP_VERSION_ID < 80000) {
            libxml_disable_entity_loader(false);
        }
        $config = simplexml_load_file(realpath($file));
        if (\PHP_VERSION_ID < 80000) {
            libxml_disable_entity_loader(true);
        }
        return new ExtensionConfig($config);
    } else {
        throw new \Exception('Missing configuration file for plugin ' . $this->name);
    }
}

I have PHP <8 (7.3.6). I could update PHP to 7.4 could that solve it?

ollehar

ollehar

2021-05-27 16:32

administrator   ~64600

PHP version shouldn't matter, no. Strange.

Can you list the files in the AuditLog folder?

ChristianJeske

ChristianJeske

2021-05-28 08:23

reporter   ~64610

This one?

assets.png (8,728 bytes)   
assets.png (8,728 bytes)   
ChristianJeske

ChristianJeske

2021-05-28 08:47

reporter   ~64611

Updated to 5.0.0 (build 210526): Error still there.

I did again a clean install, onlything I kept is the config.php the security.php and ofc my database. All the rest is from the latest .zip

ollehar

ollehar

2021-05-28 12:26

administrator   ~64624

Very strange.

Can you change this line

         throw new \Exception('Missing configuration file for plugin ' . $this->name);

to

         throw new \Exception('Missing configuration file for plugin ' . $this->name . ' ' . $file);

And then try again. Copy-paste the error message here. This will show exactly where the system was looking for the file.

ChristianJeske

ChristianJeske

2021-05-28 14:21

reporter   ~64634

Does nothing? Did I miss a space or something?

looks the same.png (71,811 bytes)   
looks the same.png (71,811 bytes)   
ollehar

ollehar

2021-05-28 14:27

administrator   ~64635

No, it works. In the error message you now have the exact file location expected by the system to find config.xml. So, move config.xml there. :)

ChristianJeske

ChristianJeske

2021-05-28 14:58

reporter   ~64645

Thank you so much. I don't know why it wants the plugins in this folder and not the other folder. But after copy/paste it works now!

ollehar

ollehar

2021-05-28 15:03

administrator   ~64646

You probably had an old installation? We've been moving old plugins to new locations. This explains the issue, at last. :)

ChristianJeske

ChristianJeske

2021-05-28 15:06

reporter   ~64647

Yes, I took over an old installation of version 1.9 with a lot of old questioneires and a really old template.

ollehar

ollehar

2021-05-28 15:23

administrator   ~64648

OK, that makes sense.

Closing this for now.

Issue History

Date Modified Username Field Change
2021-05-04 16:32 ChristianJeske New Issue
2021-05-04 17:17 ollehar Assigned To => ollehar
2021-05-04 17:17 ollehar Status new => feedback
2021-05-04 17:17 ollehar Note Added: 64225
2021-05-04 17:18 ollehar Severity partial_block => crash
2021-05-05 09:19 ChristianJeske Note Added: 64245
2021-05-05 09:19 ChristianJeske Status feedback => assigned
2021-05-05 09:31 ChristianJeske Note Added: 64246
2021-05-05 12:12 ollehar Note Added: 64250
2021-05-05 12:12 ollehar Status assigned => feedback
2021-05-06 09:38 ChristianJeske Note Added: 64254
2021-05-06 09:38 ChristianJeske File Added: long error.png
2021-05-06 09:38 ChristianJeske File Added: error.png
2021-05-06 09:38 ChristianJeske File Added: Screenshot of Settings.png
2021-05-06 09:38 ChristianJeske Status feedback => assigned
2021-05-06 10:26 ollehar Note Added: 64257
2021-05-07 10:48 ChristianJeske Note Added: 64281
2021-05-07 18:25 ollehar Note Added: 64292
2021-05-09 10:58 ollehar Status assigned => feedback
2021-05-27 16:11 ChristianJeske Note Added: 64598
2021-05-27 16:11 ChristianJeske Status feedback => assigned
2021-05-27 16:32 ollehar Note Added: 64600
2021-05-28 08:23 ChristianJeske Note Added: 64610
2021-05-28 08:23 ChristianJeske File Added: assets.png
2021-05-28 08:47 ChristianJeske Note Added: 64611
2021-05-28 12:26 ollehar Note Added: 64624
2021-05-28 12:26 ollehar Status assigned => feedback
2021-05-28 14:21 ChristianJeske Note Added: 64634
2021-05-28 14:21 ChristianJeske File Added: looks the same.png
2021-05-28 14:21 ChristianJeske Status feedback => assigned
2021-05-28 14:27 ollehar Note Added: 64635
2021-05-28 14:58 ChristianJeske Note Added: 64645
2021-05-28 14:58 ChristianJeske File Added: 2021_05_28_14_57_12_Arcim_Umfrage.png
2021-05-28 15:03 ollehar Note Added: 64646
2021-05-28 15:06 ChristianJeske Note Added: 64647
2021-05-28 15:23 ollehar Note Added: 64648
2021-05-28 15:23 ollehar Status assigned => closed
2021-05-28 15:23 ollehar Resolution open => no change required