View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
14931Bug reportsPluginspublic2020-05-22 18:07
ReporterDenisChenu Assigned ToDenisChenu  
PrioritynoneSeverityminor 
Status closedResolutionduplicate 
Product Version3.17.x 
Summary14931: command : include(DbStorage.php): failed to open stream: No such file or directory
Description

I check php application/commands/console.php updatedb

And have finally :

PHP Error[2]: include(DbStorage.php): failed to open stream: No such file or directory
    in file /mnt/data/shnoulle/nginx/www/develop/framework/YiiBase.php at line 463
#0 /mnt/data/shnoulle/nginx/www/develop/framework/YiiBase.php(463): include()

Due to a simple plugin with
protected $storage = 'DbStorage';

Steps To Reproduce

Unsure#1 : but i think update with AuditLog activated can do the same …
Unsure#2 : think 3.X version have same issue

Additional Information

I confirm #1 and #2 and fix it in master or develop

Fix in plugin : https://gitlab.com/SondagesPro/mailing/sendMailCron/blob/master/DbStorage.php
But this one is a command plugin. The other one is not a command plugin

TagsNo tags attached.
Bug heat8
Complete LimeSurvey version number (& build)4.0.0 github
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)fedora/linux
Webserver software & version (if known)not relevant
PHP Versionphp7.2

Relationships

duplicate of 14704 assignedDenisChenu DbStorage not found 

Users monitoring this issue

gaudreaj

Activities

DenisChenu

DenisChenu

2019-05-23 11:44

developer   ~52067

OK, due to fixLanguageConsistency at end of update and plugin with afterFindSurvey event
Same in 3.17

DenisChenu

DenisChenu

2019-05-23 12:24

developer   ~52068

Issue with afterPluginLoad , usage of $this->get function.

Current core don't have this issue because they don't happen

But just adding

        public function afterPluginLoad()
        {
            $this->get('AuditLog_Log_UserSave');
        }

Then API is broken too

DenisChenu

DenisChenu

2019-05-23 12:25

developer   ~52069

@ollehar : did you have an idea why it's OK in web , not in command ?
I search where we preload DbStorage in web … don't find currently …

ollehar

ollehar

2019-05-23 12:35

administrator   ~52071

Sorry, don't know.

bismark

bismark

2019-06-19 22:42

reporter   ~52479

same issue? https://bugs.limesurvey.org/view.php?id=14704

Issue History

Date Modified Username Field Change
2019-05-23 11:00 DenisChenu New Issue
2019-05-23 11:00 DenisChenu Status new => assigned
2019-05-23 11:00 DenisChenu Assigned To => DenisChenu
2019-05-23 11:01 DenisChenu Additional Information Updated
2019-05-23 11:44 DenisChenu Note Added: 52067
2019-05-23 11:44 DenisChenu Product Version 4.0.0-beta => 3.17.x
2019-05-23 12:24 DenisChenu Note Added: 52068
2019-05-23 12:25 DenisChenu Note Added: 52069
2019-05-23 12:35 ollehar Note Added: 52071
2019-06-19 21:57 gaudreaj Issue Monitored: gaudreaj
2019-06-19 22:42 bismark Note Added: 52479
2020-05-22 18:06 DenisChenu Relationship added duplicate of 14704
2020-05-22 18:07 DenisChenu Status assigned => closed
2020-05-22 18:07 DenisChenu Resolution open => duplicate