I updated to votingapi version 8.x-3.0-beta1 with drupal/core version 8.6.2. During the entities update, I noticed:
vote_result entity type: The UUID fields needs to be uninstalled
After the updates, I have the following message in my Recent log:
Symfony\Component\Routing\Exception\InvalidParameterException: Parameter "vote_result" for route "jsonapi.vote_result--vote_result.individual" must match "[^/]++" ("" given) to generate a corresponding URL. in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 204 of ../html/core/lib/Drupal/Core/Routing/UrlGenerator.php).
I tried reverting back to my older version 8.x-3.0-alpha7. But it gives me error:
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42703]: Undefined column: 7 ERROR: column base.uuid does not exist LINE 1: SELECT base.id AS id, base.uuid AS uuid, base.type AS type, ... ^ HINT: Perhaps you meant to reference the column "base.id".: SELECT base.id AS id, base.uuid AS uuid, base.type AS type, base.entity_type AS entity_type, base.entity_id AS entity_id, base.value AS value, base.value_type AS value_type, base.function AS function, base.timestamp AS timestamp FROM {votingapi_result} base WHERE base.id IN (:db_condition_placeholder_0); Array ( [:db_condition_placeholder_0] => 5055132 ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->getFromStorage() (line 388 of ../html/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
Thanks in advance for looking into it.
Comments
Comment #2
RabiaSajjad commentedComment #3
tr commentedIs this a problem for a clean install of the votingapi? To me it sounds like an entity update problem, where you updated from a previous version of votingapi from an alpha version. Note that updating from alpha to alpha or alpha to beta is NOT supported in general in Drupal. That is the big difference between alpha and beta - beta-to-beta updates ARE supported (or should be), so once a module enters the beta phase you can expect there was an effort to make sure the beta-to-beta or beta-to-stable updates work properly.
But for alpha-to-beta, there is NO such expectation.
So this is a bug if, and only if, this error occurs on a clean site with the current -dev release. Can you provide instructions for replicating this error on a clean site? (For example, simplytest.me)
Comment #4
tr commentedComment #5
goz commentedI have the same issue with Drupal 10.3.3 and votingapi 3.0.0-beta5 :
The following issue solves this #2965603: Add support for UUID field to votingapi_result table