ElkArte Community

Project Support => Support => Topic started by: Mrs. Chaos on April 23, 2018, 04:09:12 am

Title: Re: Upgrade 1.0.x to 1.1.3 does not work
Post by: Mrs. Chaos on April 23, 2018, 04:09:12 am
Quote from: radu81 – In the end I solved using the 1.1.2 files and then update to 1.1.3

I want to try it now with my forum on this way, too.
Do I need the upgrade.php or the install.php of the 1.1.2 for that?
Title: Re: Re: Upgrade 1.0.x to 1.1.3 does not work
Post by: radu81 on April 23, 2018, 05:31:42 am
What version are you using now? 1.1.2 ? If so download and install the patch file from here https://github.com/ElkArte/ElkArte/releases/tag/v1.1.3
Title: Re: Re: Upgrade 1.0.x to 1.1.3 does not work
Post by: Mrs. Chaos on April 23, 2018, 05:38:59 am
At the moment it's the 1.0.10 with the imported data from the SMF.
Title: Re: Re: Upgrade 1.0.x to 1.1.3 does not work
Post by: radu81 on April 23, 2018, 05:56:07 am
Do a full backup first, backup your files and database!

Then download the 1.1.2 version from here  https://github.com/ElkArte/ElkArte/releases/tag/v1.1.2  (file ElkArte_v1-1-2_install.zip 
unzip all files to your PC, then using Filezilla upload all files overwriting the existing ones
go to your forum and start the process to upgrade to 1.1.2
once you have 1.1.2 installed  download and install the patch file ElkArte_v1-1-3_patch.zip from here https://github.com/ElkArte/ElkArte/releases/tag/v1.1.3 (use elkarte add-on installer to install this patch)
Title: Re: Re: Upgrade 1.0.x to 1.1.3 does not work
Post by: Mrs. Chaos on April 23, 2018, 06:37:42 am
I'm trying to do the ugrade to 1.1.2 now. The installer page says this on the first page:

Warning!
This upgrade script is out of date! The current version of ElkArte is 1.1.2 but this upgrade script is for 1.1.1.
It is recommended that you visit the ElkArte Community website to ensure you are upgrading to the latest version.

Should I ignore that and keep going on?
Title: Re: Re: Upgrade 1.0.x to 1.1.3 does not work
Post by: radu81 on April 23, 2018, 06:45:58 am
I did ignore that message. Don't know if it's the best choice, otherwise wait an answer from developers
Title: Re: Re: Upgrade 1.0.x to 1.1.3 does not work
Post by: Mrs. Chaos on April 23, 2018, 08:44:14 am
It doesn't work. Each time when the message comes that the 1.1.2 has been successfully installed and I can now visit the forum, then doesn't open the forum, but again the first page of the upgrade program... I tried it two times. :(
Title: Re: Re: Upgrade 1.0.x to 1.1.3 does not work
Post by: radu81 on April 23, 2018, 10:40:01 am
try with another browser, or try in incognito mode. Otherwise clean browser temporary files and cookies. I had the same problems and forgot to mention, sorry :(
Make sure the installer deleted the install folder, if not delete it manually
Title: Re: Re: Upgrade 1.0.x to 1.1.3 does not work
Post by: emanuele on April 23, 2018, 02:56:17 pm
I split the topic because it is already messy when two bugs are discussed in the same topic, let alone a bug and a support issue. :)
Thanks for the understanding. ;)
Title: Re: Upgrade 1.0.x to 1.1.3 does not work
Post by: Mrs. Chaos on April 23, 2018, 03:10:52 pm
The split is okay. :)

- - - - - - -

Unfortunately, none of these works. :(
I tried it in the incognito mode with Firefox and Chrome, and with Firefox with cleaned browser temporary files and cookies.
With all I ended after the "succesful" installation again on the first page of the upgrade program.
If I try to go on there, on the second page is this error message to find. From there it will not continue.
Title: Re: Re: Upgrade 1.0.x to 1.1.3 does not work
Post by: radu81 on April 23, 2018, 04:12:58 pm
Once completed the upgrade to 1.1.2, did you checked if the install folder is still present on your forum? 
Title: Re: Re: Upgrade 1.0.x to 1.1.3 does not work
Post by: Mrs. Chaos on April 23, 2018, 04:33:36 pm
I deleted it every time after the 1.0.10 installation - but not after the 1.1.12 ...
That was it!!
I kicked the install folder out now and the forum is there! :)
Now I will try the patch to 1.1.3.
Title: Re: Upgrade 1.0.x to 1.1.3 does not work
Post by: Mrs. Chaos on April 23, 2018, 04:41:29 pm
Oh, again the error message "You cannot download or install new packages because the packages directory or one of the files in it are not writable!" is shown, but the packages directory and sub directory are writable on 777.
Title: Re: Upgrade 1.0.x to 1.1.3 does not work
Post by: Mrs. Chaos on April 23, 2018, 04:59:05 pm
After changing the directory owner to "PHP User" it worked. The forum is now a 1.1.3, but the installation of some addons still does not work.

Now I'm again at this point:
https://www.elkarte.net/community/index.php?topic=5169.0 (https://www.elkarte.net/community/index.php?topic=5169.0)
Title: Re: Upgrade 1.0.x to 1.1.3 does not work
Post by: radu81 on April 23, 2018, 05:26:13 pm
Glad you solved at least this problem. ;)
Title: Re: Upgrade 1.0.x to 1.1.3 does not work
Post by: Spuds on May 07, 2018, 11:33:25 am
I think the upgrade error is due to the spot check we do to make sure the upgrade script and files are compatible.   The version of the upgrade script is defined in installcore.php ... so for 1.1.3 it sets

Code: [Select]
CURRENT_VERSION = '1.1.3'

Next we check one of the files and historically it is index.php.   This involves reading the comment header where we look for the @ version tag and compare that value with what CURRENT_VERSION .  this results in 1.1.3 vs 1.1.1 becuase index.php has not changed since 1.1.1.

Historically index.php always changed with each new revision since the forum version constant was set in that file, but in 1.1 we moved that setting to bootstrap.php

So what does that all mean, basically we need to read bootstrap.php and not index.php going forward.  In the upgrade.php script we need to make the following change.

Code: (find) [Select]
	// Do a quick version spot check.
$temp = substr(@implode('', @file(BOARDDIR . '/index.php')), 0, 4096);

Code: (replace) [Select]
	// Do a quick version spot check.
$temp = substr(@implode('', @file(BOARDDIR . '/bootstrap.php')), 0, 4096);
Title: Re: Upgrade 1.0.x to 1.1.3 does not work
Post by: ahrasis on May 07, 2018, 07:47:29 pm
Don't forget to track and merge this. ;)