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

MariaDB Compatibility Issue #57

Open
katzueno opened this issue Apr 27, 2018 · 0 comments
Open

MariaDB Compatibility Issue #57

katzueno opened this issue Apr 27, 2018 · 0 comments

Comments

@katzueno
Copy link

MariaDB doesn't seem to support certain format.

Under certain circumstances, you need to convert XML.

For instances, I got the following error when I tried to use Majorca theme

An exception occurred while executing 'INSERT INTO btCoreConversation (bID, cnvID, enablePosting, paginate, itemsPerPage, displayMode, orderBy, enableOrdering, enableCommentRating, enableTopCommentReviews, displaySocialLinks, reviewAggregateAttributeKey, displayPostingForm, addMessageLabel, dateFormat, customDateFormat) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["251", "6", "1", "1", "50", "threaded", "date_asc", 0, "1", 0, 0, "", "top", "Add Message", "default", ""]: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column 'reviewAggregateAttributeKey' at row 1

In content.xml, you must change

<reviewAggregateAttributeKey><![CDATA[]]></reviewAggregateAttributeKey>

to

<reviewAggregateAttributeKey><![CDATA[0]]></reviewAggregateAttributeKey>

And you cannot seem to use self-closing tags such as <uID />. You need to change it to <uID><![CDATA[0]]></uID>.

@nipper-onside (nipper15 on concrete5.org) has the example of fix to MariaDB here.
https://www.concrete5.org/marketplace/themes/palette/support/error-on-install/

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

No branches or pull requests

1 participant