Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: showngo on May 19, 2017, 07:02:27 PM

Title: Uninstalling 2.0.14 from Upgrade
Post by: showngo on May 19, 2017, 07:02:27 PM
I am having a few issues with login and timing out after the 2.0.14 upgrade.   I do have my DB backed up.
In the package manager is I click the uninstall for the 2.0.14 upgrade,  everything tests Okay (Indicates OK)   will that only uninstall the upgrade or kill my SMF?
Im only trying to save posts . I average 250 posts a day so loosing a day would stink. 

I am not having any issues but some members are reporting the login errors and timing out.

Thanks

PS  I have read through the issues people are having but have not seen "Uninstalling" the upgrade.
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: ILUXA on May 19, 2017, 07:04:42 PM
+ 1
Me too, already wrote about this issue here (https://www.simplemachines.org/community/index.php?topic=553855.msg3926881#msg3926881).
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: Kindred on May 19, 2017, 07:06:36 PM
The solution to the login problems almost always has to do with the log in update code not having been applied to your custom theme
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: showngo on May 19, 2017, 07:10:54 PM
The solution to the login problems almost always has to do with the log in update code not having been applied to your custom theme

I saw the thread for adding the code after the "</form>"  entry.  That is listed a few times.   Just enter that extra string after each one??
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: vbgamer45 on May 19, 2017, 07:14:00 PM
The solution to the login problems almost always has to do with the log in update code not having been applied to your custom theme

I saw the thread for adding the code after the "</form>"  entry.  That is listed a few times.   Just enter that extra string after each one??

Yes in your index.template.php if it is not present in the login form.
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: ILUXA on May 19, 2017, 07:22:18 PM
The solution to the login problems almost always has to do with the log in update code not having been applied to your custom theme
Very strange, it showed "success" for custom theme files before installation... (I installed an upgrade via built in upgrade mechanism)
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: showngo on May 19, 2017, 07:24:47 PM
So uninstalling the upgrade will leave the 2.0.13 intact and fictional.
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: ILUXA on May 19, 2017, 07:28:51 PM
Yes, 2.0.13 works fine, but personally I downgraded to 2.0.13 from a backup and not via smf package manager,
but, it seems, it is also possible to delete upgrade with it too, and theoretically all should work fine again.
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: showngo on May 19, 2017, 09:22:54 PM
I took out the login that would be in the upper left and only have the main login, in the center and that eliminated all the issues.

Running Prince of Darkness 201 theme
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: ILUXA on May 19, 2017, 10:23:48 PM
Yes, it seems that "login timeout" was really a "./Themes/your_theme_name/index.template.php" problem,
just updated, and it seems that login form works very fine now, but I updated "index.template.php" manually this time,
upgrade patch needs to change 2 lines in that file:
Code: [Select]
<file name="$themedir/index.template.php">
<operation error="ignore">
<search position="replace"><![CDATA[@version 2.0]]></search>
<add><![CDATA[@version 2.0.14]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[<input type="hidden" name="hash_passwrd" value="" />]]></search>
<add><![CDATA[<input type="hidden" name="hash_passwrd" value="" /><input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />]]></add>
</operation>
</file>

So
Code: [Select]
@version 2.0should be replaced with
Code: [Select]
@version 2.0.14
and
Code: [Select]
<input type="hidden" name="hash_passwrd" value="" />should be replaced with
Code: [Select]
<input type="hidden" name="hash_passwrd" value="" /><input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
Am I right?

Just tested fully automatic installation one more time, after upgrade patch uninstallation,
and this time, don't know why, but upgrade patch replaced
Code: [Select]
<input type="hidden" name="hash_passwrd" value="" />with
Code: [Select]
<input type="hidden" name="hash_passwrd" value="" /><input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" /><input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />insted of
Code: [Select]
<input type="hidden" name="hash_passwrd" value="" /><input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
So it seems that
Code: [Select]
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />"was inserted one extra time...

Or maybe I just forgot to downgrade index.template.php file before reinstallation :D

Anyway, I really upgraded my theme index.template.php when I installed this patch first time,
I remember that I ticked my theme in installation list and it showed "Success" near index.template.php,
but login didn't work after that...
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: showngo on May 20, 2017, 03:44:25 AM
I am gathering more information.
There are a few members that can login fine one way (service device / provider) but not another way.
They get the spinning ball of death, not connecting.   
I do not know why the update would hinder their connection.   Its almost like a firewall issue on their end.
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: The QE2 Story Forum on May 20, 2017, 06:03:37 AM
The solution to the login problems almost always has to do with the log in update code not having been applied to your custom theme
Very strange, it showed "success" for custom theme files before installation... (I installed an upgrade via built in upgrade mechanism)

Exactly the same thing happened to me.  Success shown for my custom (based on Curve) theme following an install from the built-in upgrader.  Then all users got session errors and couldn't login.  I had to uninstall until i have time to investigate.  This is the first time I've ever had a problem.
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: The QE2 Story Forum on May 20, 2017, 03:33:05 PM
I just wanted to say, after uninstalling the update, I then installed it again (without doing anything else) and it resolved the issue I was having why the login sessions.
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: showngo on May 21, 2017, 02:36:18 AM
I will try that, I can not upgrade  from a downloaded file from here, it will error out. I can only install / download from the package managers main screen (Latest packages).  Sort of odd. 
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: Kindred on May 21, 2017, 08:43:45 AM
Are you trying to use the full upgrade or the patch? Only the patch works in the package manager
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: showngo on May 21, 2017, 07:35:26 PM
Are you trying to use the full upgrade or the patch? Only the patch works in the package manager


Both,  neither work for uploading a package.  I tried all formats. 
Ill just stick to the link in the package manager info section.
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: Kindred on May 21, 2017, 07:44:44 PM
The patch download is exactly the same thing that you get from the package manager link.

The upgrade archive will never work as a patch... nor will the full install archive.  It has to be the patch... if it's erroring out for you, then chance are that you did not actually download the patch file.
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: showngo on May 23, 2017, 03:33:10 AM
I thought the large upgrade in the download section was the right one.   Ill just stick to the info section on my forum.  Worked like a charm.
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: Kindred on May 23, 2017, 05:55:06 PM
patches are here
https://custom.simplemachines.org/upgrades/
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: showngo on May 23, 2017, 08:32:01 PM
patches are here
https://custom.simplemachines.org/upgrades/

Yep that where i downloaded from,  all formats and all had errors, did not install,    not the testing before installing.

I am on a custom theme.
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: Illori on May 24, 2017, 05:09:02 AM
then you need to manually fix the errors.

what do you mean that all formats and all had errors? there is only one format that is used in the package manager.
Title: Re: Uninstalling 2.0.14 from Upgrade
Post by: showngo on May 25, 2017, 07:57:15 AM
then you need to manually fix the errors.

what do you mean that all formats and all had errors? there is only one format that is used in the package manager.

Downloaded formats to upgrade the forum.

Doesnt really matter now.  Its working the way it should.   
The only way that worked was through the "Latest Packages" in package manager, the downloaded ones would not work uploading them in "package manager"  Uploading gave an error everytime.