Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: sah62 on January 22, 2014, 05:09:59 PM

Title: Version Error in 2.0.7 upgrade.php
Post by: sah62 on January 22, 2014, 05:09:59 PM
I just downloaded both of these files:

http://download.simplemachines.org/index.php?thanks;filename=smf_2-0-7_upgrade.zip

http://download.simplemachines.org/index.php?thanks;filename=smf_2-0-7_upgrade.tar.gz

Extract and decompress the archives. Open upgrade.php and look at lines 11 and 15:


/**
* Simple Machines Forum (SMF)
*
* @package SMF
* @author Simple Machines http://www.simplemachines.org
* @copyright 2011 Simple Machines
* @license http://www.simplemachines.org/about/smf/license.php BSD
*
* @version 2.0.6
*/

// Version information...
define('SMF_VERSION', '2.0.6');
define('SMF_LANG_VERSION', '2.0.4');


With SMF_VERSION defined as '2.0.6' upgrade.php fails with this error when trying to run it with 2.0.7 installed:

Quote
The upgrader found some old or outdated files.

Please make certain you uploaded the new versions of all the files included in the package.
Title: Re: Version Error in 2.0.7 upgrade.php
Post by: margarett on January 22, 2014, 05:12:37 PM
You DON'T need that package to update your forum!!! That's the large upgrade and it will wipe your MODs.

Use the built-in upgrade from your ACP, you should see a message saying a new version is available.
http://wiki.simplemachines.org/smf/Patching
Title: Re: Version Error in 2.0.7 upgrade.php
Post by: sah62 on January 22, 2014, 05:16:11 PM
Quote from: margarett on January 22, 2014, 05:12:37 PM
You DON'T need that package to update your forum!!! That's the large upgrade and it will wipe your MODs.

I get that, but shouldn't SMF_VERSION be '2.0.7'?
Title: Re: Version Error in 2.0.7 upgrade.php
Post by: margarett on January 22, 2014, 05:28:51 PM
That's another subject and I'll poke devs to look into it
Just don't mess your forum as you don't need to ;)
Title: Re: Version Error in 2.0.7 upgrade.php
Post by: Oldiesmann on January 22, 2014, 05:46:26 PM
Sorry about that. That was indeed a typo. The packages should be fixed now.
Title: Re: Version Error in 2.0.7 upgrade.php
Post by: sah62 on January 22, 2014, 05:56:22 PM
Confirmed - thanks!
Title: Re: Version Error in 2.0.7 upgrade.php
Post by: Sea Mac on January 22, 2014, 08:23:13 PM
[size=0.85em]SMF 2.0.7 Update[/size][size=0.85em]1.0[/size]Installed just fine from the package manager ... But version on the Forum Index still shows 2.0.6 (in all 3 themes) ....

And the notice to install a newer version is STILL in the Package Manager!!! It reports it IS installed in the Package Manager right under the outdated version notice!kages

Quote
PHP 5.5 compatibility issues and several other bugs have been fixed. You can install this patch (click here to install) to fix your forum and update it to 2.0.7.

If you have any problems applying it, you can try to use the upgrade file posted on the downloads page - although, any modifications you have installed will need to be uninstalled when you use that method.
Please post on the forum  if you need more help.[/size]Browse Pack

[/size]ges
Modification Packages         

Mod Name                             Version
1.httpBL                                     2.5.1

2.SMF 2.0.7                               Update1.0

3.OS & Browser Detection             1.5

4.Simple Audio Video Embedder     2.3
Title: Re: Version Error in 2.0.7 upgrade.php
Post by: azasmith on January 22, 2014, 08:52:48 PM
I'm not sure if this is related. Or if it's an issue with my specific install. If it's unrelated, please feel free to delete or move etc.

On the Admin screen you have the Support Information window.

Version Information:
Forum version: 2.0.7
Current SMF version: SMF 2.0.7

However changing index.php version to SMF 2.0.7 no longer shows this as red. Which is correct? Should index.php read SMF 2.0.7 or should Current SMF version read 2.0.7 without SMF in front of it?

Title: Re: Version Error in 2.0.7 upgrade.php
Post by: Arantor on January 22, 2014, 09:01:35 PM
Well, the patch file itself says to modify index.php from SMF 2.0.6 to SMF 2.0.7...
Title: Re: Version Error in 2.0.7 update
Post by: Sea Mac on January 22, 2014, 09:15:39 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww7.pairlite.com%2Fpl2025%2Felcajon%2Fsafe%2F207_patch_fail.jpg&hash=c8f38487844b7cecb2de2f0724bb63ec3769c934)
The Package Manager HAS the 2.0.7 patch installed - and insists I can upgrade with just a couple of Clicks.


Go look what version SMF my forum is running ... http://softwaresanta.com/sssmf/index.php
Title: Re: Version Error in 2.0.7 upgrade.php
Post by: azasmith on January 22, 2014, 09:19:36 PM
Quote from: Sir Cumber-Patcher on January 22, 2014, 09:01:35 PM
Well, the patch file itself says to modify index.php from SMF 2.0.6 to SMF 2.0.7...

You're right, it does.  D'oh.

Title: Re: Version Error in 2.0.7 upgrade.php
Post by: Arantor on January 22, 2014, 09:27:13 PM
Quote from: Sea Mac on January 22, 2014, 09:15:39 PM
Go look what version SMF my forum is running ... http://softwaresanta.com/sssmf/index.php

Your forum footer says 2.0.6, which means the package manager wasn't able to apply the changes, usually permissions reasons.
Title: Re: Version Error in 2.0.7 upgrade.php
Post by: Sea Mac on January 22, 2014, 09:41:03 PM
There was nothing but "Test Successful" all the way down when installing it. 
I gave the package manager the FTP details it wanted: and it SAID it connected to the FTP server OK.

When is the package manager's FTP/permissions section going to support SFTP servers? and how do I get this patch to apply?
Title: Re: Version Error in 2.0.7 upgrade.php
Post by: Arantor on January 22, 2014, 10:02:24 PM
Given how complex SFTP support is, it's too big to be included in 2.1 (since I've been on the team 4 months, I've been adding new things and trying to fix the hundreds of known bugs that needed fixing, including 2.0 bugs)

Thing is, all SMF is doing with FTP is trying to chmod things. Not all servers permit this but *tell* SMF they did.

If you tell it to uninstall, it should fail every test. Make everything writable outside SMF then reapply the package.
Title: Re: Version Error in 2.0.7 upgrade.php
Post by: Sea Mac on January 22, 2014, 10:03:25 PM
When I click on the Update link in the Package Manager it starts all over:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww7.pairlite.com%2Fpl2025%2Felcajon%2Fsafe%2F207_already_installed.jpg&hash=445b860a52c3ac2331a2c8a944a63d542cae70f4)

I can't install a package that's already IN there ... except it IS NOT already Installed!  The Package Manager shows a visible conflict ....


And there IS No [uninstall] link next to the SMF 2.0.7 Update patch to uninstall it!
Title: Re: Version Error in 2.0.7 upgrade.php
Post by: Arantor on January 22, 2014, 10:04:30 PM
Except it isn't installed. It just THINKS it is. Which is why I said to try uninstalling it first so it would clear the entry in the packages table that makes it think it is installed.

This clearly proves it never made any changes.
Title: Re: Version Error in 2.0.7 upgrade.php
Post by: Sea Mac on January 22, 2014, 10:07:22 PM
And there IS No [uninstall] link next to the [/size][/color]SMF 2.0.7 Update patch to uninstall it![/color](https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww7.pairlite.com%2Fpl2025%2Felcajon%2Fsafe%2F207_patch_fail.jpg&hash=c8f38487844b7cecb2de2f0724bb63ec3769c934)
Title: Re: Version Error in 2.0.7 upgrade.php
Post by: Arantor on January 22, 2014, 10:08:31 PM
Use the emulate function at the bottom (under advanced) to enter SMF 2.0.7 which will enable the uninstall button. (And put it back to 2.0.6 once you're done with 'uninstalling')
Title: Re: Version Error in 2.0.7 upgrade.php
Post by: Sea Mac on January 22, 2014, 10:21:48 PM
Thanks!
Title: Re: Version Error in 2.0.7 upgrade.php
Post by: Sea Mac on January 22, 2014, 10:55:50 PM
Nope!  It WILL NOT let me uninstall the broken 2.0.7 Patch and reinstall it no matter what. I've got a Broken 2.0.7 Upgrade that can't be fixed ....  >:(
Title: Re: Version Error in 2.0.7 upgrade.php
Post by: Arantor on January 22, 2014, 10:57:07 PM
What exactly does it do?