Needs work
Project:
User Revision
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jan 2021 at 18:20 UTC
Updated:
5 Mar 2021 at 13:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
zoiosilva commentedComment #3
zoiosilva commentedActually there are more errors in the installation process that the #2 patch is not addressing.
Comment #4
aritrika.d commentedWith above patch the module gets enabled successfully.
Attaching screanshots.
Comment #5
aritrika.d commentedComment #6
geek-merlinThanks a lot for spotting and fixing this. Committed and soon pushed.
Comment #8
geek-merlinHelp with this is appreciated: #3197068: Modernize conversion process on install
Comment #9
liquidcms commentedlots of issues trying to get this installed... and now i think 1/2 installed and can't get it uninstalled. :(
D8 not the easiest thing to clean up but will keep hacking away to get this removed.
Comment #10
liquidcms commentedok, burned up a few hours on this.. anyone have any hints?
I am pretty sure the module is not properly installed. When i login the site whitescreens with this:
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE uid='1'' at line 1: SELECT COUNT(DISTINCT vid) FROM {} WHERE uid=:uid; Array ( [:uid] => 1 ) in user_revision_count() (line 305 of E:\www\ottcomp\web\modules\contrib\user_revision\user_revision.module).
When i use drush to uninstall i get this: This module can not be uninstalled.
And when looking at the module's .install file the uninstall hook simply throws exception saying can't be uninstalled. Not sure how that works.
so if i comment out that line i get:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'vid' in 'where clause': SELECT 1 AS expression
FROM
{users_field_data} t
WHERE vid IS NOT NULL
LIMIT 1 OFFSET 0; Array
(
)
and of course D8 makes it pretty hard to clean out a corrupted install.
Comment #11
zoiosilva commentedComment #12
liquidcms commentedI tried removing the 2 deprecated (odd they are listed as being deprecated for 9.0 but i am running 8.8.8) calls to onEntityTypeDelete() and replaced with the newer version:
and now get this error on install:
[error] An error occurred while notifying the creation of the vid field storage definition: "!message" in Drupal\Core\Entity\Sql\SqlContentEntityStorage->wrapSchemaException() (line 1615 of E:\www\drupal8\web\core\lib\Drupal\Core\Entity\Sql\SqlContentEntityStorage.php).
Comment #13
hoanns commentedLOL I already fixed this all here 3months ago, but it was closed as outdated (I guess its not important that you can acutally install the module): https://www.drupal.org/project/user_revision/issues/3057189
Well now because of the new changes we can't apply the patch anymore, fixing this partly (only commit the User fix) like it was done here does not even fix the install, so its useless to commit that. My problem is that my fix gets closed as outdated without a solution available. It would be more intelligent to first use the fix until #3197068 is solved, so that an installation is even possible at all.
We get the same error on install as liquidcms but it works afterwards
Comment #14
hoanns commentedsaid patch for the newest version