Stats: 3,188,890 members, 7,935,809 topics. Date: Friday, 30 August 2024 at 04:24 PM |
Nairaland Forum / Science/Technology / Webmasters / How To Revert Back To A Previous Version Of Joomla (572 Views)
How To Downgrade Wordpress To Any Previous Version / How You Revert Your Current Wordpress Version To A Previous Version / Premium Theme Jarasale - Wordpress,html, Joomla, Magento, Blogger Etc (2) (3) (4)
(1) (Reply)
How To Revert Back To A Previous Version Of Joomla by todhost(m): 2:10am On Oct 28, 2017 |
Credit: https://www.todhost.com/knowledgebase/812/How-to-Revert-Back-to-a-Previous-Version-of-Joomla.html Website upgrade is a common practice. Keeping up with the latest version of your content management system or website software is a good security measure as it ensures you are dealing with latest security bugs and keeping up with the latest features. But sometimes you decide to upgrade your version of Joomla, and then after the upgrade is done, your website becomes completely unusable or some of its features become broken. Why does that happen, and how to revert back to a previous version of Joomla to undo the upgrade. That will be the focus of this post which essentially will take us the process of reverting back to a previous version of Joomla after you have had some issues with functionality following an upgrade Why a Joomla upgrade might break your website There are several reasons that are behind this, and they mainly are: 1.You have modified the core of your Joomla website: Many website owners modify the core of their Joomla website (or have it modified) in order to add some custom functionality. While this can be necessary, it should be avoided when possible. Only modify the core of your Joomla website when there is no other alternative. Note that in most cases there is an alternative! 99% of the very complicated work on a Joomla website can be done using extensions. You will rarely find any need to modify the core. And, in the very rare cases whereyou have to, it will be good to make changes compatible with future upgrades. 2. You have installed an extension that is not compatible with your current version of Joomla: When you do an upgrade, sometimes a 3rd party extensions can be incompatible with your current version of Joomla, and if this extension is a System plugin that runs on every page, then most likely your page will either show a blank page or will display a fatal error (at best your page will display a warning). There are also cases where an existing extension is not compatible with an upgraded version and it creates problems. So before an upgrade, it is a good idea to check the versions to be sure they are compatible with the version you are planning to upgrade to. 3. You have uploaded the files to the wrong place: A Joomla upgrade usually consists of uploading specific files to specific directories. Sometimes the upgrade can consist of just uploading a couple of files to a couple of directories. What if, for example, you need (as part of the upgrade) to upload index.php to the administrator directory, and instead of uploading that file to the administrator directory, you uploaded it to the root directory of your website. Not a single page on your website will work (the index.php file that is located directly in the root directory of your website is used on every page on the frontend of your Joomla website). You will, in such cases, simply locate the newly uploaded file and delete it or simply move it to the proper directory using your file manager. 4. You haven't finished uploading the files, but you thought you did: As stated above, a Joomla upgrade consists of uploading several files. What if the upgrade consisted of uploading 5 files and you uploaded only 4, and what if the file that you missed is used by those other files? At worst, all of your website will stop working and at best, some of your functionality on your website will be broken. This creates corrupt files on your server and will need a complete re-upload or you find a way to resume upload and complete it. How do you revert back to a previous version of Joomla Once you notice that the upgrade has broken your website, you realize it is big trouble and have to think of a way out. Chances are that you could think there is no way out and so your next step could be to delete the entire files and re-upload Joomla afresh. No! You will have to try out some of our suggestions and see how you could fi things up. If every other efforts fail, then you can consider a new upload. It is important that when this kind of error occurs, you don't panic. Please stay calm and carefully look at the options to fix the problem by reverting back to a functional state. Well, the easiest way to revert back to a previous version of Joomla is to just go back to a previous filesystem backup. But even that can be tricky, especially if the upgrade has modified both your file system and your database. So, if you do have backups, then it's always better, when reverting to a previous filesystem backup, to revert back to a database backup that was generated the same day the filesystem backup (that you're using) was generated. It is for this reason that we emphasize the need for regular back. In fact, we will advice that you need not embark on any upgrade without having a safe backup. Having a backup is just in case something goes wrong. Now, what if you don't have any backups? This is when this can quickly become very challenging. When you uploaded the files, you have erased the previous versions of the files. So, the first thing that you should do is the download the previous Joomla version (the one that you had before the upgrade), and then replace the files that you have already uploaded with the files from this (previous) Joomla version. Once you do that, two things might happen: Your website will return to its previous working state. If that happens, then you need to congratulate yourself. You have done things right and deserve some commendation. The second thing that could happen is that your website will show different errors. In this case, it's because the database was updated using that upgrade. You will need to contact Joomla experts at this point because it'll be really hard to fix these errors without a backup (and you will need programming and MySQL skills to fix them). What if it is a migration? So far, we have been talking about reverting back to a previous version of Joomla if it's an upgrade. But if the error had occurred in the course of doing a migration, then it is a real big problem and in that case, there is no other way but to revert to a previous backup (a migration is a destructive process as it consists of recreating the site from scratch), and if you don’t have any previous backup, you will need to contact a Joomla expert or developer to help revert your Joomla website back to an earlier date. Handling migration issues requires a lot of experience and professional expertise to work on the databases and fi things up. Best practices when upgrading your Joomla website or migrating your Joomla website to another version. Here are some best practices when upgrading or migrating to another Joomla version: Backup your database and your filesystem just before doing the upgrade or the migration. Create a copy of your database (using phpMyAdmin) and create a copy of your actual website under an previous directory (so, in other words, you should upload all the files for your website to that previous directory, which should be located directly under the root directory). Change the configuration.php file in your directory to point to the copy of the database (not the original database). Avoid using Akeeba backup. Akeeba backup is one extension that you will only know it's useless when it's too late. This is because in order for Akeeba Backup to work, your website must be functional (which defies the whole point). In many cases, people revert back to previous versions of their websites when their websites no longer work. If you have problems with your upgrade/migration, then reverting back simply consists of doing a simple redirect in your .htaccess file to yourjoomlawebsite.com/previous, and that's it! So, in case you have problems, you need to add the following lines to your .htaccess file: rewritecond %{http_host} ^yourjoomlawebsite.com [nc] rewriterule ^(.*)$ http://www.yourjoomlawebsite.com/previous/$1 [r=307,nc] Once you add the above lines to your .htaccess file, upload it to your website, and your website will now work! Although the website is working, it's working out of the previous directory. We want to make it work out of the root directory, so here's why you need to do: Delete the original database, and then re-create the original database from the backup. Delete all the directories in your website's filesystem (with the exception of the previous directory, of course), and then re-upload them from the backup. Roll back the changes you did on the .htaccess file and then upload it back. Your website should now work well without issues. You now have to delete the previous directory, you don't need it anymore. |
(1) (Reply)
Week 2 Offer (100% Free) / Is Making Money Online A Mirage? / $1 Hosting-the Perfect And Most Reliable Hosting Plan For Your Business
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 32 |