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
After updating to CraftCMS 3.8 or CraftCMS 4.4 I keep getting this error in several projects.
Argument 1 passed to craft\helpers\App::editionIdByHandle() must be of the type string
Steps to reproduce
Have a craft install without a valid license (trial?)
Update to 3.8 or 4.4 from lower.
Open the CP
Refresh
Error
Expected behavior
It works like before
Actual behavior
Error: Argument 1 passed to craft\helpers\App::editionIdByHandle() must be of the type string
What I found out during debugging, is that it seems that the "Consolidated Licensing Issues alert" commit has added some additonal code that writes the licenseInfo to the cache.
However, when the license is "invalid" it will write NULL to the edition field, when this value is fetched from the cache on the next refresh, the value of edition will be passed into the editionIdByHandle function, which requires a string as edition not a NULL, so PHP screams.
Craft CMS version
3.8 / 4.4
PHP version
7.4 / 8.2
Operating system and version
Linux 5.15.49 aarch64 (docker m1)
Database type and version
MySQL 8
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered:
What happened?
Description
After updating to CraftCMS 3.8 or CraftCMS 4.4 I keep getting this error in several projects.
Argument 1 passed to craft\helpers\App::editionIdByHandle() must be of the type string
Steps to reproduce
Expected behavior
Actual behavior
Error:
Argument 1 passed to craft\helpers\App::editionIdByHandle() must be of the type string
What I found out during debugging, is that it seems that the "Consolidated Licensing Issues alert" commit has added some additonal code that writes the licenseInfo to the cache.
However, when the license is "invalid" it will write NULL to the edition field, when this value is fetched from the cache on the next refresh, the value of edition will be passed into the editionIdByHandle function, which requires a string as edition not a NULL, so PHP screams.
Craft CMS version
3.8 / 4.4
PHP version
7.4 / 8.2
Operating system and version
Linux 5.15.49 aarch64 (docker m1)
Database type and version
MySQL 8
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: