0

Problem:

After following all the steps given in: https://craftcms.com/docs/5.x/upgrade.html The CMS returns a Syntax error regarding JSON. I did some small debugging and found that all element content gets returned as the string 'Array' instead of a JSON structure when it tries to create elements in the createElement function (vendor/craftcms/cms/src/elements/db/ElementQuery.php)

What could cause this? And is this something from our side or is it a bug inside Craft?

We dont have any modules or other custom code that interacts with Craft fields and/or content

Possible way to reproduce:

  1. Install a Craft CMS 4 installation with the latest versions and Redactor
  2. Create different type of fields such as Matrix, Super Table, Redactor etc.
  3. Migrate redactor to CKEditor
  4. Perform Craft update as shown on the upgrade page in the docs

Installed plugins:

  "cooltronicpl/varnishcache": "^2.7.2",
  "craftcms/ckeditor": "4.2.0",
  "craftcms/cms": "^5.0.0",
  "craftcms/redactor": "^4.1.0",
  "elleracompany/craft-cookie-consent": "^5.0.1",
  "ether/seo": "5.0.0-rc5",
  "ether/simplemap": "^5.0.1",
  "ostark/craft-async-queue": "^4.0.0",
  "ostark/craft-relax": "^2.1.0",
  "putyourlightson/craft-sprig": "3.4.0",
  "verbb/field-manager": "4.0.2",
  "verbb/formie": "3.0.3",
  "verbb/navigation": "3.0.3",
  "verbb/super-table": "^4.0.2",
  "vlucas/phpdotenv": "^3.4.0"
   "craftcms/generator": "^2.1.0",
  "yiisoft/yii2-shell": "^2.0.51"

Custom plugins had been installed but disabled for the upgrade, none of these plugins does anything with Craft fields and or content. Unless a plugin for custom Formie fields is seen as such.

Running on latest Craft CMS version, PHP 8.3.8 and MariaDB 10.3.32 (We are aware it is below the "required" version, however we have clean Craft CMS 5 installs running on this version without problems)

1 Answer 1

1

It was due to a outdated MariaDB version that did not meet the minimal requirements

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.