Elxis CMS Forum

Support => Administration => Topic started by: kyomar on April 01, 2020, 07:42:43

Title: Autoupdate 5.0 to 5.1 [Solved]
Post by: kyomar on April 01, 2020, 07:42:43
Hello Elxis Team,

First of all thanks a lot for the automatic update function - makes maintaining elxis much easier and efficient.
The update worked fine following the guide provided but please allow me a few things to point out:
1. after the update I received a 404 error message (see attachment).
2. in the admin panel it still shows: "You use an outdated Elxis version! Update as soon as possible to Elxis 5.1 Cronus r2344" although the update was done.
3. in the five template the following code was missing in index.php for tabs to work: 
Code: [Select]
$jsFile = eFactory::getElxis()->secureBase().'/includes/js/jquery/tabs.js';
$eDoc->addJQuery();
$eDoc->addScriptLink($jsFile);
4. All my css files (template, system, etc.) were replaced. How can I secure/preserve my css files?
5. The search field in the page header (template five) can not be turned off (template top settings). I have reported this a while back but forgot how to correct.
Update! found solution here: https://forum.elxis.org/index.php?topic=9052.msg57540#msg57540

Thanks a lot for looking into the above findings.
Title: Re: Autoupdate 5.0 to 5.1
Post by: datahell on April 05, 2020, 12:57:40
You haven't updated all the required files. Go to:
Elxis administration > Extensions > Check filesystem
Click on "Check file-system" green button.
After check is finished see if there are files that needs to be updated. If yes, download Elxis 5.1 from elxis.org (https://www.elxis.org/download.html) and update manually these files via FTP or a file manager. After re-run check filesystem to make sure all of your files are updated.
Title: Re: Autoupdate 5.0 to 5.1
Post by: kyomar on May 20, 2020, 05:39:23
Thanks datahell for your reply. This is my second attempt to upgrade 5.0 to 5.1 following the guide but without success as seen in attached file. It seems that 5.1 hasn't been installed (please also read first post).
The check file-system is based on version 5.0 r2316 (installed is r2299). Do I first need to update to r2316? I am trying to update first a local version (xampp) before the live version, is it possible that this might be the problem?
I thought the automatic updates gonna make life easier but in my case it doesn't. I really miss the update patches :-(.
I am also still concerned about the overriding of some edited files (mainly css). It would be great if one could flag them (e.g. in file system-check) to be preserved. It looks like I am stuck with 5.0 for now.
Thanks a lot.
Title: Re: Autoupdate 5.0 to 5.1
Post by: datahell on May 23, 2020, 18:41:52
If your site can't connect to elxis.org (why?) then do the following:

1. Download these 2 hash files and upload them to repository/cache/edc/ folder
http://www.elxis.org/update/hashes4/elxis_hashes_5.0.txt (http://www.elxis.org/update/hashes4/elxis_hashes_5.0.txt)
http://www.elxis.org/update/hashes4/elxis_hashes_5.1.txt (http://www.elxis.org/update/hashes4/elxis_hashes_5.1.txt)
repository/cache/edc/elxis_hashes_5.0.txt
repository/cache/edc/elxis_hashes_5.1.txt
Note: Your "repository" folder might have a different name.

2. Download Elxis 5.1 (https://www.elxis.org/download.html) and rename it to elxis.zip

3. Decompress locally "elxis.zip" get folder components/com_extmanager/ and update your online installation (the whole "com_extmanager" folder).

4. Upload elxis.zip package to repository/tmp/ folder
repository/tmp/elxis.zip
Note: Your "repository" folder might have a different name.

5. Login in Elxis administration and go to Extensions > Check for updates. Click the link provided to update from 5.0 to 5.1.
Title: Re: Autoupdate 5.0 to 5.1
Post by: kyomar on May 25, 2020, 03:32:20
Thanks a lot datahell for your help and patience with me - really appareciated.
I tried your solution and the update process run through till this 404 error at the end (see attachment). This also happens if I click update elxis in the check file-system window. Also checking the file-system shows a few files didn't update and also copy-paste the files manually didn't solve it (see attachment).
May I give a small recommendation about the start of the update (green button 1/6 ....). I was waiting a few minutes until I realized that I have to push that button. It would be more clear if it says something like "start update".
Thanks again datahell
Title: Re: Autoupdate 5.0 to 5.1
Post by: datahell on May 25, 2020, 21:12:30
Make sure you have updated component Extensions manager manually. Then auto-update will work fine based on my instructions. If the files fails to be updated it is a local permissions issue and you will have to update these files manually. I remind you that the repository folder (including all sub-folders and files) must be writable, else nothing will work properly.
Title: Re: Autoupdate 5.0 to 5.1
Post by: kyomar on May 26, 2020, 10:23:53
Finally the update finished successfully. It wasn't a write permission issue, there was already a folder elxis in the repository/tmp/ folder. I checked and it turned out that this folder had "old" files in it from version 2299 (checked file version.php). I have no idea from where and why, during the automatic update process, this folder wasn't overridden while unzipping the new elxis.zip file. I deleted the folder and run the automatic update and voila it worked flawlessly.
So from the first post following problems are solved:
1. after the update I received a 404 error message.
2. in the admin panel it still shows: "You use an outdated Elxis version! Update as soon as possible to Elxis 5.1 Cronus r2344" although the update was done.
5. The search field in the page header (template five) can not be turned off (template top settings). I have reported this a while back but forgot how to correct.
Update! found solution here: https://forum.elxis.org/index.php?topic=9052.msg57540#msg57540

Following points need to be addressed (in my opinion):
3. in the five template the following code was missing in index.php for tabs to work:
Code: [Select]
$jsFile = eFactory::getElxis()->secureBase().'/includes/js/jquery/tabs.js';
$eDoc->addJQuery();
$eDoc->addScriptLink($jsFile);
4. All my css files (template, system, etc.) were replaced. How can I secure/preserve modified files?

Like I already said it would be really helpful if we could check those files we don't want to be updated. In may case I had to manually upload 17 previously modified files. This could be done in the check file-system and should be quite easy (for a pro which I am not).

Thanks again datahell for your help, as always outstanding support.

Title: Re: Autoupdate 5.0 to 5.1 [Solved]
Post by: datahell on May 26, 2020, 22:04:36
Never modify Elxis standard files. If you dont want to loose your changes on an update add your changes in custom css/js files. Template "Five" is a sample template. You can create a copy of it and rename it to anything you want. For instance, for a site of mine I have renamed it to "Six".