Return value of Konekt\Concord\Proxies\EnumProxy::targetClass() must be of the type string, null returned
Closed this issue · 5 comments
dipcb05 commented
I just installed some konekt module, i have no idea about enum proxy, but this error arises.
i checked php artisan concord:enums. same error showing
fulopattila122 commented
Does this help? vanilophp/product#12
fulopattila122 commented
If not, please post the contents of config/concord.php
dipcb05 commented
thanks for the reply. i have disconnected from the internet for some days. sorry for the late.
here is my config/concord.php
<?php
return [
'modules' => [
Konekt\AppShell\Providers\ModuleServiceProvider::class => [
'ui' => [
'name' => 'Vanilo',
'url' => '/admin/product'
],
'modules' => [
Konekt\Customer\Providers\ModuleServiceProvider::class
],
'modules' => [
Konekt\Address\Providers\ModuleServiceProvider::class
]
],
Vanilo\Framework\Providers\ModuleServiceProvider::class => [
'image' => [
'variants' => [
'thumbnail' => [
'width' => 250,
'height' => 188,
'fit' => 'fill'
],
'medium' => [
'width' => 540,
'height' => 406,
'fit' => 'fill'
]
]
],
]
]
];
dipcb05 commented
the output of php artisan concord:enums
In EnumProxy.php line 33:
Return value of Konekt\Concord\Proxies\EnumProxy::targetClass() must be of the type string, null returned
fulopattila122 commented
@dipcb05 The config is wrong:
- the
modules
key is present 3 time --> it last one overrides the first 2. - The customer and address module don't need to be added (they're included in AppShell)
The correct config is:
// config/concord.php
<?php
return [
'modules' => [
Konekt\AppShell\Providers\ModuleServiceProvider::class => [
'ui' => [
'name' => 'Vanilo',
'url' => '/admin/product'
]
],
Vanilo\Framework\Providers\ModuleServiceProvider::class => [
'image' => [
'variants' => [
'thumbnail' => [
'width' => 250,
'height' => 188,
'fit' => 'fill'
],
'medium' => [
'width' => 540,
'height' => 406,
'fit' => 'fill'
]
]
],
]
]
];