-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
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
[5.x]: Internal server error - shortcodesToEmoji #14782
Comments
Hi, thanks for reaching out! Could you please post the full stack trace for this error? |
In admin page, I access a structure entry with this error: https://cldup.com/n20M4rtNN9.png |
Thanks! I can’t seem to replicate this issue. Any chance you could send your |
Thanks for your info. I think if there is something wrong due to the changing the field type (table to plain text). The entry is saved the table data of the previous field type while the field type is plain text. In database table element_sites > content of all entries, the data of table field is still existing, for example.
Anyway, I deleted those entries. Do you think if the issue is due to changing the type of field and the old data exists in the element_sites > content? |
Thanks for providing more info!
With that missing piece of information, I can replicate it straight away. When you change the type of the field, Craft doesn’t alter your data in the database. In Craft 4, changing a Field Type could lead to a database column that stored this data to be altered, therefore leading to data loss. In Craft 5, content is stored in a json column, but data incompatibility can still occur. There’s a warning under the Field Type dropdown about potential data loss and the types that should be safe to switch to don’t have the warning icon next to them. You can still change the Field Type to one with a warning, but issues like this can occur. You can use the resave command to fix this. You can use it to clear out the field value or change it to something else. For example, I hope this helps! |
What happened?
In the production craftcms admin, I cannot access SOME structure entries due to this error:
Screenshot: https://i.imgur.com/VLcEfZi.png https://i.imgur.com/XNIkppc.png
Other entries are accessible. I also cannot disable those entries with the error shortcodesToEmoji.
In frontend: https://i.imgur.com/ii9dsLJ.png
Craft CMS version
Solo 5.0.3
PHP version
8.2.17
Operating system and version
Linux 4.19.0
Database type and version
MariaDB 10.6.17
Image driver and version
Imagick 3.7.0
Installed plugins and versions
The text was updated successfully, but these errors were encountered: