You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I develop on my MacbookPro, OS X Monterey, server installed using Grav Blog instruction, php 7.4. All works fine.
But on production server (CloudLinux) I see error during deployment (on bin/gpm install <anyplugin>) about my custom storage class:
In FlexDirectory.php line 996:
Bad storage class: Grav\Plugin\SoglFlex\Flex\Types\Users\UserFolderStorage
<?phpdeclare(strict_types=1);
namespaceGrav\Plugin\SoglFlex\Flex\Types\Users;
useGrav\Common\Flex\Types\Users\Storage\UserFolderStorageasDefaultUserFolderStorage;
/** * Class UserFolderStorage * @package Grav\Plugin\SoglFlex\Flex\Types\Users */class UserFolderStorage extends DefaultUserFolderStorage
{
/** * Prepares the row for saving and returns the storage key for the record. * * @param array $row */protectedfunctionprepareRow(array &$row): void
{
parent::prepareRow($row);
}
protectedfunctioninitOptions(array$options): void
{
parent::initOptions($options);
}
}
I changed Storage class to default (object: 'Grav\Common\Flex\Types\Users\UserObject') and now it works on production too.
But what kind of error is this?
The text was updated successfully, but these errors were encountered:
I develop on my MacbookPro, OS X Monterey, server installed using Grav Blog instruction, php 7.4. All works fine.
But on production server (CloudLinux) I see error during deployment (on
bin/gpm install <anyplugin>
) about my custom storage class:This line part on FlexDirectory.php:
Error shows on every plugin install:
My storage class:
I changed Storage class to default (
object: 'Grav\Common\Flex\Types\Users\UserObject'
) and now it works on production too.But what kind of error is this?
The text was updated successfully, but these errors were encountered: