Open mimamuh opened 6 years ago
@MiMaMuh I'm unable to replicate this issue, please can you provide me with the following info:
@lukeyouell I've tested it with different handles and names, but the same error.
Then I disabled all plugins and started to enable one by one. When I enable CP Field Inspect 1.0.4
the error occurs. It occurs when I edit a field, select the field type Country Select
and then click save. Then the error occurs.
After that I enabled all plugins beside CP Field Inspect 1.0.4
and reinstalled craft-countryselect
again. It works. But the same error throws after I installed your plugin and then I enable CP Field Inspect 1.0.4
- the error instantly occurs even in the plugin-settings.
So it seems to be a conflict between your plugin and CP Field Inspect 1.0.4
.
Same bug. Also using CP Field Inspect.
Also getting this. I'm not using CP Field Inspect, but following the stacktrace it looks like Blitz is the culprit. (Blitz is requesting the user, which tries to populate an element, which then gets the custom fields, which is when Country Select fails).
I had a similar-ish issue on SimpleMap where the fields modifyElementsQuery
function was executed before the plugin had been initialized. Had to do a check to ensure the plugin existed before I did anything: https://github.com/ethercreative/simplemap/blob/v3/src/fields/MapField.php#L544-L554. Not sure if it's exactly similar, but it might be useful!
Also, weirdly enough I'm not getting this issue on my staging environment, just locally. Both environments share a code base and database (they are literally connected to the same database).
The SearchIt plugin also complains about this field: https://github.com/fruitstudios/craft-searchit/issues/5#issue-394860555
Same error for me. The error completely prevented me from accessing anything in the CMS, so I had to manually uninstall it via composer and delete its row in the 'fields' table in the database. More or less fresh install, some plugins already added but nothing listed so far in this thread.
Same error for me. A possible solution would be to use the official translations shipped with Craft by changing
['value' => 'AD', 'label' => Craft::t('country-select', 'Andorra')],
to
['value' => 'AD', 'label' => Craft::t('app', 'Andorra')],
What do you think?
Same error here, its 2020 and there is a fix and open pull request waiting. @lukeyouell could you please merge?
Hi,
I've installed you plugin on an almost blank craft 3 installation and got the following error after selecting it for a field and saving it:
Here are my setup: