[17:39:09] | * botlfarm[m] has joined #farmos |
[17:39:10] | <botlfarm[m]> | ACTION uploaded an image: (24KiB) < https://matrix.org/_matrix/media/v3/download/matrix.org/VZUodOEcWcKWYcXR... > |
[17:39:10] | <botlfarm[m]> | I am working on 3.x upgrade. It was a bit rough because I had some modules installed that were not compatible but I worked though it. I believe it is fully upgraded at this point but on the statis page i am seeing this error. |
[17:39:21] | <botlfarm[m]> | anyone have any thoughts on this? |
[17:39:52] | <mstenta[m]> | Hmm did you run database updates? |
[17:40:12] | <mstenta[m]> | (👋 botlfarm!) |
[17:40:59] | <botlfarm[m]> | I ran drush updb |
[17:41:08] | <botlfarm[m]> | then cleared cache as normal |
[17:41:38] | <mstenta[m]> | sometimes those "mismatched definitions" warnings are harmless... |
[17:41:56] | <botlfarm[m]> | ok, everything seems to be working fine |
[17:41:59] | <mstenta[m]> | Do you have any scripts that use the API? |
[17:42:19] | <botlfarm[m]> | I dont believe so |
[17:44:38] | <mstenta[m]> | OK you might be able to uninstall and reinstall the farm_api module to fix it then |
[17:45:02] | <mstenta[m]> | (if you had anything using the API then you might want to be more careful) |
[17:45:23] | <mstenta[m]> | Oh actually... also the Consumer module |
[17:46:34] | <mstenta[m]> | farm_api depends on simple_oauth which depends on consumer... so you may need to uninstall all three and then install farm_api (which will reinstall all of them) |
[17:47:44] | <mstenta[m]> | What version are you upgrading from? |
[17:48:18] | <botlfarm[m]> | 2.2.2 |
[17:49:13] | * qoyyuum[m] has quit (Quit: Client limit exceeded: 20000) |
[17:50:47] | <mstenta[m]> | Hmm is it possible that error was there from a previous update? |
[17:51:07] | <botlfarm[m]> | possibly. I dont normally check there |
[17:51:32] | <mstenta[m]> | That might make sense... 2.0.0-beta8 included a change to that Client ID field |
[17:51:44] | <mstenta[m]> | https://www.drupal.org/project/farm/issues/3311264 |
[17:52:11] | <mstenta[m]> | Not sure why it's showing as "mismatched" in your instance :-/ |
[17:52:24] | <mstenta[m]> | But the easy fix is to just reinstall the consumers module |
[17:53:14] | <botlfarm[m]> | thanks. will work on that now |
[17:55:23] | <mstenta[m]> | (i hope that's the easy fix 😅) |
[17:59:04] | <mstenta[m]> | just to explain: that "mismatched definition" error basically means that Drupal is finding a different between the expected structure of the Client ID field and the actual structure. The expected is what's defined in code, the actual is the actual database table/columns. A module basically defines what it wants a database table/column to look like, and Drupal makes it so. But if the module's code changes, Drupal doesn't |
[17:59:04] | <mstenta[m]> | automatically update the database structure, because that could be destructive. So ideally the module has an update hook to make the necessary changes. |
[17:59:28] | <mstenta[m]> | So for whatever reason those update hooks didn't do what they needed to... or something... |
[18:00:19] | <mstenta[m]> | But in this case we know it's the "Client ID" field on "Consumer" entities... which comes form the consumer module. So if we just uninstall and reinstall that module, it should recreate the database table so that it matches the expected strucutre. |
[18:00:41] | <mstenta[m]> | And because you aren't concerned with API connections, we don't care if anything gets lost in the process. |
[18:02:26] | <botlfarm[m]> | worked! |
[18:02:31] | <botlfarm[m]> | thanks |
[18:02:34] | <mstenta[m]> | Hooray! |
[18:02:41] | <mstenta[m]> | 😄 |
[18:02:52] | <botlfarm[m]> | :) |