Can't uninstall, missing "secret" field.

Created on 14 March 2024, 8 months ago
Updated 15 March 2024, 8 months ago

I already had the consumers plugin installed, having needed it for consumer_image_styles. A default consumer was created.

I installed simple_oauth to do some testing, then wanted to uninstall it. When doing so, I got this message:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'secret' in 'where clause': SELECT 1 AS "expression"
  FROM
  "consumer_field_data" "t"
  WHERE "secret" IS NOT NULL
  LIMIT 1 OFFSET 0; Array
  (
  )

I checked the database, and indeed there was no secret column. I also observe that on the consumer edit form at /admin/config/services/consumer/1/edit, there is no "Secret" field as described by simple_oauth_entity_base_field_info(). There's the "New Secret" field, but not the first one. Finally, I don't see anywhere in the module code where this field is actually added to the schema (though I'm probably just missing it).

simple_oauth: 5.2.5
consumers: 8.1.17

🐛 Bug report
Status

Closed: cannot reproduce

Version

5.2

Component

Code

Created by

🇺🇸United States datawench

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @datawench
  • Status changed to Closed: cannot reproduce 8 months ago
  • 🇺🇸United States datawench

    For some reason, a retest didn't reproduce the issue. Possibly order of install? Unsure. Closing.

  • 🇮🇳India kuldeep k Chandigarh

    Hi,

    While running drush pmu simple_oauth encountering below error:

    In ExceptionHandler.php line 56:

    SQLSTATE[42S22]: Column not found: 1054 Unknown column 'secret' in 'where clause': SELECT 1 AS "expression"
    FROM
    "consumer_field_data" "t"
    WHERE "secret" IS NOT NULL
    LIMIT 1 OFFSET 0; Array
    (
    )

Production build 0.71.5 2024