Skip to content
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

Empty values in the xml #102

Open
shahroq opened this issue Aug 11, 2023 · 0 comments · May be fixed by #104
Open

Empty values in the xml #102

shahroq opened this issue Aug 11, 2023 · 0 comments · May be fixed by #104

Comments

@shahroq
Copy link
Contributor

shahroq commented Aug 11, 2023

Hi,

I have been struggling with this issue for a while, where when there is an empty value for a field like I get this error on importing:

An exception occurred while executing 'INSERT INTO btPixelCta (bID, linkType, externalLink, internalLinkCID, internalLinkFID, linkTitle, openNewPage, icon, title, subtitle, paragraph, fID, color) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params [653, "2", "#", 0, 0, "See More", 0, "fas fa-hand-point-right", "", "", "", "", ""]: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'fID' at row 1

I used to replace these values in the XML manually with <fD><![CDATA[0]]></fD>. But I noticed in some core blocks this wouldn't result in an error. Is this a bug or do I need to set something in my custom blocks to fix this?

@hissy hissy linked a pull request Mar 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant