craftcms / craftcms/cms

Cant load entries in cms

Open
#7,788 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

Description

So after an update we cannot see the entries normally in the cms.
We get an flash error at the top a server error occured.
Now i found the following line in the logs:
yii\db\Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'drafts.saved' in 'where clause'
Also if i change this filter to lets say drafts and then back to live i do get to see the entries till i refresh. Nothing changed serverside except that we updated craft,

Screenshot 2021-04-12 at 11 51 07

Steps to reproduce
  1. The bug appeared as soon as we updated to the newest version. we do not experience this bug on any of our other sites.
    This is an old site user to be craft 2.
Additional info
  • Craft version: 3.6.11.2
  • PHP version:7.4.16
  • Database driver & version: mysqlnd 7.4.16
  • Plugins & versions:
    "php": ">=7.0.0",
    "craftcms/cms": "3.6.11.2",
    "vlucas/phpdotenv": "^2.4.0",
    "craftcms/redactor": "2.8.5",
    "verbb/expanded-singles": "1.1.3",
    "craftcms/contact-form": "2.2.7",
    "twbs/bootstrap": "4.0.0-beta.2",
    "verbb/super-table": "2.6.7",
    "topshelfcraft/wordsmith": "3.3.0.1",
    "verbb/field-manager": "2.2.2",
    "mmikkel/cp-field-inspect": "1.2.4",
    "sebastianlenz/linkfield": "1.0.25",
    "mikestecker/craft-videoembedder": "1.1.4",
    "supercool/tablemaker": "2.0.1",
    "doublesecretagency/craft-siteswitcher": "2.2.0",
    "craftcms/commerce": "3.2.17.3",
    "craftcms/commerce-mollie": "2.1.2.1",
    "pixeldeluxe/siteutils": "1.2.9.1",
    "nystudio107/craft-seomatic": "3.3.37",
    "matt-west/craft-recaptcha": "1.5.1",
    "pixeldeluxe/cbelanguagescore": "^1.0.0",
    "topshelfcraft/supersort": "^3.0",
    "jalendport/craft-hideadmin": "1.1.0",
    "adigital/cookie-consent-banner": "1.2.7"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the error in the CMS entries view on Craft 3.6.11.2 and inspect the logs for the drafts.saved query failure. Done means entries load normally after refresh without the server error.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, php
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.