Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: NeedIt on June 05, 2017, 09:14:31 AM

Title: Patch to 2.0.9 Installed Successfully?
Post by: NeedIt on June 05, 2017, 09:14:31 AM
I don't know if this is the appropriate thread to put this in, but I am trying to upgrade my forum from 2.0.8 (on Windows) to 2.0.14.  Last night, I uploaded the 2.0.9 package from here: http://custom.simplemachines.org/upgrades/ .  Then I did the install and it left a message "installed successfully" and I got no errors or warnings. 

This morning I checked and found the following:

a) When I logged into the Admin menu item, it still says:

Forum version: 2.0.8
Current SMF Version:  2.0.14

b) However, when I go into package manager under installed versions, it does show 2.0.9 installed.

So I think I am okay but a) and b) seem to contradict each other.  Can I continue on and install 2.0.9, 2.0.10, etc.?
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: Dzonny on June 05, 2017, 10:45:17 AM
Hey there.

Do you have 2.0.9 in your copyright as a version?
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: NeedIt on June 05, 2017, 02:29:25 PM
Quote from: Dzonny on June 05, 2017, 10:45:17 AM
Hey there.

Do you have 2.0.9 in your copyright as a version?

I am sorry, but I have no idea.  I am using the default SMF template and the only package I have installed is Ad Manager besides patches of course.  The 2.0.8 thing shows up under "Support Information" when I click on the admin page.
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: vbgamer45 on June 05, 2017, 02:43:43 PM
A quick way to test is try to uninstall 2.0.9 if you get errors then it didn't install correctly the first time and needs to be reinstalled.
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: NeedIt on June 05, 2017, 04:15:52 PM
Quote from: vbgamer45 on June 05, 2017, 02:43:43 PM
A quick way to test is try to uninstall 2.0.9 if you get errors then it didn't install correctly the first time and needs to be reinstalled.

How do I uninstall?  By clicking Delete in the Package Manager?
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: vbgamer45 on June 05, 2017, 04:18:41 PM
There should be an uninstall link? If not emulate version 2.0.8 in the package manager then try again.
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: NeedIt on June 05, 2017, 04:24:58 PM
Quote from: vbgamer45 on June 05, 2017, 04:18:41 PM
There should be an uninstall link? If not emulate version 2.0.8 in the package manager then try again.

There is no uninstall link.  What do you mean emulate version 2.0.8.  Remember that I am on Windows.
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: vbgamer45 on June 05, 2017, 04:28:55 PM
There is a link in the bottom of the package manager that allows you change your SMF version to pretend it is a different version.
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: NeedIt on June 05, 2017, 05:25:19 PM
Quote from: NeedIt on June 05, 2017, 04:24:58 PM
Quote from: vbgamer45 on June 05, 2017, 04:18:41 PM
There should be an uninstall link? If not emulate version 2.0.8 in the package manager then try again.

There is no uninstall link.  What do you mean emulate version 2.0.8.  Remember that I am on Windows.

Okay, I did the emulation and tried to uninstall 2.0.9.  Every test failed except for 3 and the ftp at the bottom failed (which is no surprise).  If I give the correct ftp credentials, should I try again?

Here is what the Package Manager complained about:

"Uninstallation Readme
This will uninstall the stability fixes of your SMF 2.0.9 forum. This is generally NOT a good idea.
Available Readme Languages: 

Uninstall Actions "SMF 1.1.20 / 2.0.9 Update"
Installing this package will perform the following actions:
Type   Action   Description
*   1.   Execute Modification   ./index.php   Test failed
   1.   Replace   ./index.php   Test failed
   2.   Replace   ./index.php   Test failed
*   2.   Execute Modification   ./Sources/PackageGet.php   Test failed
   1.   Replace   ./Sources/PackageGet.php   Test failed
   2.   Replace   ./Sources/PackageGet.php   Test successful
*   3.   Execute Modification   ./Sources/Subs-Package.php   Test failed
   1.   Replace   ./Sources/Subs-Package.php   Test failed
   2.   Replace   ./Sources/Subs-Package.php   Test failed
   3.   Replace   ./Sources/Subs-Package.php   Test failed
*   4.   Execute Modification   ./Sources/Packages.php   Test failed
   1.   Replace   ./Sources/Packages.php   Test failed
   2.   Replace   ./Sources/Packages.php   Test failed
   3.   Replace   ./Sources/Packages.php   Test failed
   4.   Replace   ./Sources/Packages.php   Test failed
   5.   Replace   ./Sources/Packages.php   Test failed
*   5.   Execute Modification   ./Sources/Load.php   Test failed
   1.   Replace   ./Sources/Load.php   Test failed
   2.   Replace   ./Sources/Load.php   Test failed
*   6.   Execute Modification   ./Sources/ManageServer.php   Test failed
   1.   Replace   ./Sources/ManageServer.php   Test failed
   2.   Replace   ./Sources/ManageServer.php   Test failed
*   7.   Execute Modification   ./Sources/Subs-Auth.php   Test failed
   1.   Replace   ./Sources/Subs-Auth.php   Test failed
   2.   Replace   ./Sources/Subs-Auth.php   Test failed
   3.   Replace   ./Sources/Subs-Auth.php   Test failed
*   8.   Execute Modification   ./Sources/Subs-Db-mysql.php   Test failed
   1.   Replace   ./Sources/Subs-Db-mysql.php   Test failed
   2.   Replace   ./Sources/Subs-Db-mysql.php   Test failed
*   9.   Execute Modification   ./Sources/Display.php   Test failed
   1.   Replace   ./Sources/Display.php   Test failed
   2.   Replace   ./Sources/Display.php   Test failed
*   10.   Execute Modification   ./Sources/QueryString.php   Test failed
   1.   Replace   ./Sources/QueryString.php   Test failed
   2.   Replace   ./Sources/QueryString.php   Test failed
*   11.   Execute Modification   ./Sources/Search.php   Test failed
   1.   Replace   ./Sources/Search.php   Test failed
   2.   Replace   ./Sources/Search.php   Test failed
*   12.   Execute Modification   ./Sources/ScheduledTasks.php   Test failed
   1.   Replace   ./Sources/ScheduledTasks.php   Test failed
   2.   Replace   ./Sources/ScheduledTasks.php   Test failed
   3.   Replace   ./Sources/ScheduledTasks.php   Test failed
*   13.   Execute Modification   ./Sources/Post.php   Test failed
   1.   Replace   ./Sources/Post.php   Test failed
   2.   Replace   ./Sources/Post.php   Test failed
*   14.   Execute Modification   ./Sources/Subs-Graphics.php   Test failed
   1.   Replace   ./Sources/Subs-Graphics.php   Test failed
   2.   Replace   ./Sources/Subs-Graphics.php   Test failed
*   15.   Execute Modification   C:\inetpub\vhosts\domainname.com\httpdocs\forum/Themes/default/ManagePermissions.template.php   Test failed
   1.   Replace   C:\inetpub\vhosts\domainname.com\httpdocs\forum/Themes/default/ManagePermissions.template.php   Test failed
   2.   Replace   C:\inetpub\vhosts\domainname.com\httpdocs\forum/Themes/default/ManagePermissions.template.php   Test failed (Ignore Errors)
*   16.   Execute Modification   ./Sources/Memberlist.php   Test successful
*   17.   Execute Modification   ./Sources/Subs-Post.php   Test failed
   1.   Replace   ./Sources/Subs-Post.php   Test failed (Ignore Errors)
   2.   Replace   ./Sources/Subs-Post.php   Test failed
*   18.   Execute Modification   ./SSI.php   Test successful
FTP Information Required
Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager. Note you can also do this manually using an FTP client - to view a list of the affected files please click here.

FTP Server:
localhost
Port: 
21
Username:
Password:"
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: Dzonny on June 05, 2017, 06:02:40 PM
Can you provide a link to your forum? When I asked for copyright version I ment for the text at the very bottom of forum page "SMF 2.0.14 | SMF © 2017, Simple Machines" - you should see your forum version there.

As most of your tests failed, I assume that the patch wasn't applied correctly and you're still on the 2.0.8 version.

Please read documentation for how to properly configure FTP in order for package manager to be able to change files properly:
How do I use FTP? / What is FTP? (https://wiki.simplemachines.org/smf/How_do_I_use_FTP)
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: NeedIt on June 05, 2017, 06:56:31 PM
Quote from: Dzonny on June 05, 2017, 06:02:40 PM
Can you provide a link to your forum? When I asked for copyright version I ment for the text at the very bottom of forum page "SMF 2.0.14 | SMF © 2017, Simple Machines" - you should see your forum version there.

As most of your tests failed, I assume that the patch wasn't applied correctly and you're still on the 2.0.8 version.

Please read documentation for how to properly configure FTP in order for package manager to be able to change files properly:
How do I use FTP? / What is FTP? (https://wiki.simplemachines.org/smf/How_do_I_use_FTP)

I PM'd it to you, as I'd like to stay anonymous.

And I ftp to my site and the forum quite often, so I know how to do that quite well.  Furthermore, when I put in the test connection it does fine.  But the problem is that the package manager asks for my ftp credentials AFTER it tries to do all the tests.  So I don't understandhow that is supposed to work.
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: Kindred on June 05, 2017, 07:07:13 PM
The tests are just tests... confirming that the package manager can FIND the code points to perform the inserts and changes.
After the tests, when you click proceed, it actually attempts to edit those files in the way that it was detailed in the tests...   that's when it needs ftp to properly chmod the files so that they can be edited.

Note: if you have your files with the correct chmod settings to begin with, there is not need for the system to try using ftp
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: Dzonny on June 05, 2017, 07:08:27 PM
No actually, on the page where FTP credentials is asked for - you only have listed all the changes that should be made, and after you add login details and proceed - the changes will be made. From what I can see, your forum is still on 2.0.8 and changes on files wasn't performed.
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: NeedIt on June 05, 2017, 09:23:04 PM
Quote from: Dzonny on June 05, 2017, 07:08:27 PM
No actually, on the page where FTP credentials is asked for - you only have listed all the changes that should be made, and after you add login details and proceed - the changes will be made. From what I can see, your forum is still on 2.0.8 and changes on files wasn't performed.

Yeah, that's what I remember.  I thought I did proceed but maybe not.  I am going to look to see if I can understand the changes that were made and actually check for them.  I don't know any php, so we'll see how that goes!
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: NeedIt on June 05, 2017, 09:44:29 PM
Okay, so is the any way that I can check to see if the install happened.  For example, can I got into file X and check to see if a certain change happened for example?

The reason I am asking is that the package manager is thoroughly convinced this installed successfully, so it would seem kind of odd to me if none of the install actually worked. 

If that's not easy, I will just reemulate back and then run the uninstall with the ftp information.  HOpefully that won't do any damage...


Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: Kindred on June 05, 2017, 10:05:53 PM
So, here's the deal...  if things like the copyright version have not changed, then the issue is likely on your server side, with ththe chown configuration.

So, each file has a chmod setting and a chown setting.
Chmod is supposed to allow the files to be editted....   and that is why it asks for the ftp information (see explanation above)

However, in some server configurations, the configuration of chown is set up such that the system THINKS that it successfully applied the code changes, but those changes were silently rejected, without error message and the files were never actually changed.
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: NeedIt on June 05, 2017, 10:43:51 PM
Quote from: Kindred on June 05, 2017, 10:05:53 PM
So, here's the deal...  if things like the copyright version have not changed, then the issue is likely on your server side, with ththe chown configuration.

So, each file has a chmod setting and a chown setting.
Chmod is supposed to allow the files to be editted....   and that is why it asks for the ftp information (see explanation above)

However, in some server configurations, the configuration of chown is set up such that the system THINKS that it successfully applied the code changes, but those changes were silently rejected, without error message and the files were never actually changed.

Okay, I will ask about that.  Understood.
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: NeedIt on June 10, 2017, 11:40:38 AM
Guys,

I am sorry to come back to this, but I am stuck again.  I took Arantor's advice and called my hosting company and asked about getting proper permission.  Basically, there is a user that this uses and, as expected, it did not have proper permissions.  So we gave it full control - this is windows - over the folder and all subfolders.  So then I did the following:

a) Emulated 2.0.9.
b) Then the uninstall link showed up as expected in the Package Mgr.
c) I clicked on the uninstall link.

Unfortunately, every test failed.  This is second time that the uninstall completely fails all the tests.  This is a big problem because:

1) The installer actually passed all the tests even before I changed the permissions to full control.
2) The uninstaller does not have an ftp option. 

Without that ftp option, how am I supposed to correct this issue and do the uninstall?  It's like the uninstall does not have all the functionality of the install?
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: Illori on June 10, 2017, 11:57:46 AM
might be easier to start over with fresh files and install your mods again.
https://wiki.simplemachines.org/smf/How_to_upload_a_fresh_set_of_files
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: NeedIt on June 10, 2017, 12:15:58 PM
Quote from: Illori on June 10, 2017, 11:57:46 AM
might be easier to start over with fresh files and install your mods again.
https://wiki.simplemachines.org/smf/How_to_upload_a_fresh_set_of_files

Well, I am using the default template, and I have only installed the Ad Manager and that's about it.  So I could just do a brand new install, but it kind of scares me to do so cuzz what if I load that backup and something fails?  I'm hosed then. 

I'm seriously thinking of trying to port everything to Linux.

Hey, if any of the admins/moderators on here are really good with SMF on BOTH Windows and Linux, I'd love to hear from one of them via SMF.  Might have a project. 
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: Kindred on June 10, 2017, 12:44:13 PM
Well, yes... of course every test failed on uninstalling...  because none of the code changes were ever actually made

Also... it's not a new install... it's replacing the FILES with clean copies
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: NeedIt on June 11, 2017, 12:11:26 AM
Quote from: Kindred on June 10, 2017, 12:44:13 PM
Well, yes... of course every test failed on uninstalling...  because none of the code changes were ever actually made

Also... it's not a new install... it's replacing the FILES with clean copies
Oh!  I missed that.  Okay, so if I ran the install and virtually all the tests failed due to the above, can I now try to install 2.0.9 again?  I think there's a good chance it will work this time due to the permissions change we made. 

Yeah, Plesk on my server has 2.0.9 actually.  So I could do a brand new install and then restore a database backup pretty easily.  However, I really think the above will work.  I installed the Ad Management software just fine, so I think this will do it. 

Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: Kindred on June 11, 2017, 08:11:42 AM
no no no no no

Quote from: Illori on June 10, 2017, 11:57:46 AM
might be easier to start over with fresh files and install your mods again.
https://wiki.simplemachines.org/smf/How_to_upload_a_fresh_set_of_files

this is **NOT** a "brand new install" and there is no reason to do that...

follow the ACTUAL instructions in that link
Title: Re: Patch to 2.0.9 Installed Successfully?
Post by: NeedIt on June 11, 2017, 10:08:31 AM
Quote from: Kindred on June 11, 2017, 08:11:42 AM
no no no no no

Quote from: Illori on June 10, 2017, 11:57:46 AM
might be easier to start over with fresh files and install your mods again.
https://wiki.simplemachines.org/smf/How_to_upload_a_fresh_set_of_files

this is **NOT** a "brand new install" and there is no reason to do that...

follow the ACTUAL instructions in that link

Oh okay.  I just read that page in detail.  Interesting solution.