<![CDATA[ Unable to log in to manager after Revo 2.6.5 upgrade - My Forums]]> https://forums.modx.com/thread/?thread=104046 <![CDATA[Unable to log in to manager after Revo 2.6.5 upgrade]]> https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade?page=2#dis-post-559547 I'm unable to log in to the manager after Revo 2.6.5 upgrade from 2.3.3.
My username/password is not recognized.
I can receive the reset password email, but the password in the email does not work either.
I have tried resetting the password manually with this procedure, but that does not work either. I can see that the database is updated. I have verified that the MD5 hash generated is correct.
UPDATE modx_users SET hash_class = 'hashing.modMD5', password = MD5('the-new-password') WHERE username = 'theusername';


I did an upgrade install like this:
1. Cleared caches from within the manager
2. Logged out all users from within the manager
3. Cleared the core/cache folder manually
4. Downloaded the latest version
wget https://modx.com/download/direct?id=modx-2.6.5-pl.zip --no-check-certificate --content-disposition

5. Unzipped and renamed the unpacked folder to modx
6. Did an rsync copy
$ rsync -avP modx/connectors/ connectors*/
$ rsync -avP modx/core/ core*/
$ rsync -avP modx/manager/ manager*/
$ rsync -avP modx/setup/ setup/

7. Ran setup, selecting 'Upgrade existing install' without any issues.

Now stuck at the login screen.

Any ideas?]]>
andreast Jul 13, 2018, 03:07 PM https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade?page=2#dis-post-559547
<![CDATA[Re: Unable to log in to manager after Revo 2.6.5 upgrade (Best Answer)]]> https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade?page=2#dis-post-560903 blackraven2 Aug 18, 2018, 09:42 AM https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade?page=2#dis-post-560903 <![CDATA[Re: Unable to log in to manager after Revo 2.6.5 upgrade]]> https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade?page=2#dis-post-559594 ]]> BobRay Jul 14, 2018, 06:33 PM https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade?page=2#dis-post-559594 <![CDATA[Re: Unable to log in to manager after Revo 2.6.5 upgrade (Best Answer)]]> https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade#dis-post-559591 I ran into issues at once as I tried to download the UpgradeMODX extra. The usual provider was gone and I was unable to add it.
I then read your article and it was spot on for me. (Wish I've found it yesterday smiley

I was missing all the fields you list except 'modx_context.name'.
I've added them now and also fixed the type on the 'modx_users.createdon' field.
I've installed the extra which hopefully wil take care of future updates.
Excellent guide, btw!]]>
andreast Jul 14, 2018, 06:18 PM https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade#dis-post-559591
<![CDATA[Re: Unable to log in to manager after Revo 2.6.5 upgrade]]> https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade#dis-post-559590
In setup/includes/upgrades/common. There is a file called 2.5-user-createdon.php that's supposed to be run if you're upgrading from < 2.5.0 to > 2.5.0, but obviously it didn't for you.]]>
BobRay Jul 14, 2018, 06:03 PM https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade#dis-post-559590
<![CDATA[Re: Unable to log in to manager after Revo 2.6.5 upgrade]]> https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade#dis-post-559587 I will, thanks for the link.
This caveat should really be mentioned during the setup process if it cannot be verified by the installer. I was unaware that such provisions existed when upgrading.
I took for granted that any changes to the database was handled by the installer.]]>
andreast Jul 14, 2018, 05:41 PM https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade#dis-post-559587
<![CDATA[Re: Unable to log in to manager after Revo 2.6.5 upgrade]]> https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade#dis-post-559585 https://bobsguides.com/blog.html/2016/06/27/missing-db-fields-(unknown-column)/. You might want to check the others, and the details of the field you created. Sometimes the problems don't show up right away.]]> BobRay Jul 14, 2018, 05:38 PM https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade#dis-post-559585 <![CDATA[Re: Unable to log in to manager after Revo 2.6.5 upgrade]]> https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade#dis-post-559582 Quote from: markh at Jul 14, 2018, 10:41 AM
Have you checked the MODX error log? It's at core/cache/logs/error.log. Maybe that has an explanation.

It did indeed. Thank you so much. I was actually unaware of this error log.
It appears the column 'createdon' did not exist in the database.
Here is the error:
[2018-07-14 19:01:28] (ERROR @ xxx/core/xpdo/om/xpdoobject.class.php : 240) Error 42S22 executing statement: 
Array
(
    [0] => 42S22
    [1] => 1054
    [2] => Unknown column 'modUser.createdon' in 'field list'
)


I inserted a column 'createdon' of type datetime in 'modx_users' and it did the trick. I could now log in again and no error was produced.
Thanks again.

P.S. This does seem to be a bug in the setup by not checking for the presence of this column and and/or not creating it when it is missing.]]>
andreast Jul 14, 2018, 05:15 PM https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade#dis-post-559582
<![CDATA[Re: Unable to log in to manager after Revo 2.6.5 upgrade]]> https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade#dis-post-559578

Have you checked the MODX error log? It's at core/cache/logs/error.log. Maybe that has an explanation.]]>
markh Jul 14, 2018, 10:41 AM https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade#dis-post-559578
<![CDATA[Re: Unable to log in to manager after Revo 2.6.5 upgrade]]> https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade#dis-post-559573 I will have a look at the sessions table when I have access a bit later.
I don’t think there could be any session active as I logged out all users first and have tried from another browser with the same result.
That would also mean there would have to be a bug somewhere as any sessions should be destroyed when new passwords are sent out.]]>
andreast Jul 14, 2018, 06:37 AM https://forums.modx.com/thread/104046/unable-to-log-in-to-manager-after-revo-2-6-5-upgrade#dis-post-559573