Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Bug with keyprefix #26

Closed
larsboldt opened this issue Mar 4, 2019 · 4 comments
Closed

Bug with keyprefix #26

larsboldt opened this issue Mar 4, 2019 · 4 comments

Comments

@larsboldt
Copy link
Contributor

larsboldt commented Mar 4, 2019

2019-03-04 11:08:04 [-][-][01rarb4pmuca8mloccqut8eoth][error][yii\base\ErrorException:2] yii\base\ErrorException: explode(): Empty delimiter in .../versions/0.3.0/vendor/yiisoft/yii2/helpers/BaseInflector.php:480 Stack trace: #0 .../versions/0.3.0/vendor/craftcms/cms/src/web/ErrorHandler.php(76): yii\base\ErrorHandler->handleError(2, 'explode(): Empt...', '...', 480) #1 [internal function]: craft\web\ErrorHandler->handleError(2, 'explode(): Empt...', '...', 480, Array) #2 .../versions/0.3.0/vendor/yiisoft/yii2/helpers/BaseInflector.php(480): explode('', 'dm') #3 .../versions/0.3.0/vendor/ostark/upper/src/models/Settings.php(109): yii\helpers\BaseInflector::slug('dm', '') #4 .../versions/0.3.0/vendor/ostark/upper/src/Plugin.php(97): ostark\upper\models\Settings->getKeyPrefix()

Settings -> getKeyPrefix calls Inflector::slug with empty replacement, replacement is directly used in an explode call in Yii, this fails because its empty. Whether this is a Upper problem or Yii is debatable.

@ostark
Copy link
Owner

ostark commented Mar 4, 2019

@larsboldt Thanks for your report. Which Driver do you use?

@larsboldt
Copy link
Contributor Author

varnish

@ostark
Copy link
Owner

ostark commented Mar 5, 2019

@larsboldt Ah, now I get it. I'll provide a fix.

@ostark
Copy link
Owner

ostark commented Mar 12, 2019

Eventually released 48f53b7 thanks @larsboldt

@ostark ostark closed this as completed Mar 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants