View Issue Details

IDProjectCategoryView StatusLast Update
14704Bug reportsPluginspublic2020-05-22 19:03
Reporterbismark Assigned ToDenisChenu  
PrioritynormalSeveritycrash 
Status feedbackResolutionopen 
Product Version4.2.4 
Summary14704: DbStorage not found
Description

$ php application/commands/console.php plugin --target=Processor
PHP Error[2]: include(DbStorage.php): failed to open stream: No such file or directory
in file C:\Users\marko\Limesurvey\plugins\framework\YiiBase.php at line 463

class Processorextends PluginBase
{
    ...
    protected $storage = 'DbStorage';
   ...
}
TagsNo tags attached.
Complete LimeSurvey version number (& build)master
I will donate to the project if issue is resolvedNo
Browser
Database & DB-Version10.1.26-MariaDB
Server OS (if known)
Webserver software & version (if known)
PHP Version7.1.8

Relationships

has duplicate 14931 closedDenisChenu command : include(DbStorage.php): failed to open stream: No such file or directory 
related to 12378 closedcdorin AuditLog plugin break console usage for other plugin 

Activities

DenisChenu

DenisChenu

2019-03-29 16:47

developer   ~51203

I use this workaround : https://gitlab.com/SondagesPro/mailing/sendMailCron/blob/master/DbStorage.php

But still a workaround

bismark

bismark

2019-03-29 17:40

reporter   ~51207

namespace of DbStorage, DummyStorage must be LimeSurvey\PluginManager\Storage

in PluginManager it should be:

public function getStore($storageClass)
    {
        if (!class_exists($storageClass)
                && class_exists('LimeSurvey\\PluginManager\\Storage\\'.$storageClass)) {
            $storageClass = 'LimeSurvey\\PluginManager\\Storage\\'.$storageClass;
        }

        if (!isset($this->stores[$storageClass])) {
            $this->stores[$storageClass] = new $storageClass();
        }
        return $this->stores[$storageClass];
    }

DummyStorage does not implement iPluginStorage correctly

Storages must use LimeSurvey\PluginManager\iPlugin;

rename iPluginStorage to PluginStorageInterface

rename iPlugin to PluginInterface

DenisChenu

DenisChenu

2019-06-20 07:20

developer   ~52480

Great if you can provide a pull request :)
I'm happy to merge it (for https://bugs.limesurvey.org/view.php?id=14931 too)

DenisChenu

DenisChenu

2020-05-22 18:33

developer   ~57990

namespace of DbStorage, DummyStorage must be LimeSurvey\PluginManager\Storage

OK, but move it : need API update right ?

Great if you can provide a pull request :)

Still valid

DenisChenu

DenisChenu

2020-05-22 19:03

developer   ~57991

@bismark : please a pull request :)

Try to be API compatible ;)

Issue History

Date Modified Username Field Change
2019-03-29 11:49 bismark New Issue
2019-03-29 16:47 DenisChenu Note Added: 51203
2019-03-29 17:40 bismark Note Added: 51207
2019-06-20 07:20 DenisChenu Note Added: 52480
2019-07-03 17:50 DenisChenu Relationship added related to 12378
2020-05-22 18:06 DenisChenu Assigned To => DenisChenu
2020-05-22 18:06 DenisChenu Status new => assigned
2020-05-22 18:06 DenisChenu Relationship added has duplicate 14931
2020-05-22 18:17 ollehar Priority none => normal
2020-05-22 18:17 ollehar Severity block => crash
2020-05-22 18:17 ollehar Product Version => 4.2.4
2020-05-22 18:33 DenisChenu Note Added: 57990
2020-05-22 19:03 DenisChenu Status assigned => feedback
2020-05-22 19:03 DenisChenu Note Added: 57991