Cms: Upgrading from 3.2.10 to 3.3.01 created a `Undefined index: siteId` issue

Created on 4 Sep 2019  路  6Comments  路  Source: craftcms/cms

Description

After upgrading from 3.2.10 to 3.3.01 the site is now not working on the frontend, with the error showing Undefined index: siteId in in /Users/nathanreed/Documents/Sites/motm/vendor/craftcms/cms/src/elements/db/ElementQuery.php line 1699

This site was developed in C2 before upgrading to C3.0.* +

Steps to reproduce

  1. Have a Craft 3.2.10
  2. Upgrade to 3.3.01 via composer

Additional info

  • Craft version: 3.3.01
  • PHP version: 7.2.20
  • Database driver & version: MYSQL 5.7.26
  • Plugins & versions:

Most helpful comment

We ran into this in some of our own code as well, when the select clause was being overridden. I鈥檒l go ahead and reopen this and fix it.

All 6 comments

This ended up being an issue with Solspace Calendar and the search param.

This ended up being an issue with Solspace Calendar and the search param.

Running into the same issue (also using Solspace Calendar). How did you fix it?

The issue for me was to do with the search param in the events query.
I have submitted a bug report to Solspace, they were able to replicate and are working on releasing a fix.

I am able to remove the search param for the query for now to solve the issue, if you are able to, this should solve the problem temporarily until the update is release from Solspace

We ran into this in some of our own code as well, when the select clause was being overridden. I鈥檒l go ahead and reopen this and fix it.

And fixed for the next release.

To get the fix early, change your craftcms/cms requirement in composer.json to:

"require": {
  "craftcms/cms": "dev-develop#cd3c3e5c48aecdb22c1f373184e88785cc1a5dc6 as 3.3.0.1",
  "...": "..."
}

Then run composer update.

I can confirm this has fixed the issue I was experiencing.
Thanks for sorting so quickly!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

michel-o picture michel-o  路  3Comments

darylknight picture darylknight  路  3Comments

davist11 picture davist11  路  3Comments

benface picture benface  路  3Comments

angrybrad picture angrybrad  路  3Comments