We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I encountered the $zoom type error after upgrading from Craft 3 to 4. Cannot assign null to property ether\simplemap\models\Map::$zoom of type int
$zoom
For a quick fix, you can add ? in the Map model.
?
public ?int $zoom = 15;
The text was updated successfully, but these errors were encountered:
I have the same problem after updating to craft 4. It only affects the entries where the map field was empty.
For a quick fix i just ran an SQL Query, the null check in the model would be good though.
UPDATE content SET field_FIELDNAME = REPLACE(field_FIELDNAME, '"zoom":null', '"zoom":8') WHERE field_field_FIELDNAME LIKE '%"zoom":null%';
Sorry, something went wrong.
5de1d9a
No branches or pull requests
I encountered the
$zoom
type error after upgrading from Craft 3 to 4.Cannot assign null to property ether\simplemap\models\Map::$zoom of type int
For a quick fix, you can add
?
in the Map model.public ?int $zoom = 15;
The text was updated successfully, but these errors were encountered: