|
Important: Please read before upgrading to version 2.1 Features introduced in jTips 2.1 require PHP version of at least 5.1 (5.2 is preferred). Please ensure your web server is running this version or has this version available. If you are unsure, please contact your host or system administrator. Always backup your website and database before upgrading any application or software.
If you are currently running jTips 2.0.12 or later on Joomla! 1.0 you will need to take some additional steps prior to upgrading via OneClick. If you are using Joomla! 1.5, you will be able to upgrade immediately.
The the extensive work done for jTips 2.1 we have identified an issue that prevents jTips from upgrading when used on a Joomla! 1.0 system. This issue can be resolved by editing a single file. However, if you are not comfortable with editing scripts or code, or you have no desire to know how to do so, please contact our Support Desk to arrange a suitable time for us to apply the fix for you. Alternatively, a clean install will bypass this issue. If you would like to proceed with a clean install, contact our Support Desk for the latest version.
If you are confident you know what you are doing, please read on.
Remember, this only affects jTips 2.0.12 or greater and only on Joomla! 1.0.
From here on things get a bit technical. To start, you'll need either FTP or SSH access to the server jTips is installed on. Once you are connected, either download (FTP) or edit (SSH) the following file:
/YOUR/WEB/ROOT/administrator/components/com_jtips/update.php
Look for the following section inside the 'jTipsExtractZip' function:
$zip = new dUnzip2($archive); $zip->unzipAll($path); if(full_copy($path . '/admin/', $admin) and full_copy($path . '/front/', $site)) { $result = true; } else { $result = false; }
Now, replace that chunk with:
$result = jTipsExtractLegacy($archive);
First part done. Now, go to the very bottom of the file, just before '?>' and paste in the following:
function jTipsExtractLegacy($filepath="") { global $mosConfig_absolute_path, $jLicence; $writefile = $mosConfig_absolute_path. '/administrator/components/com_jtips/updates/pilot.php'; $zip = new dUnzip2($filepath); $zip->getList(); $zip->unzip('pilot.php', $writefile); $updates = null; include($writefile); $failed = false; if (is_array($updates)) { foreach ($updates as $key => $files) { $path = $mosConfig_absolute_path.($key == 'admin' ? '/administrator' : ''). '/components/com_jtips/'; foreach ($files as $file) { if (makeDirectories($path, $file)) { _log("unzipping file $key/" .$file. " => " .$path.$file); $res = $zip->unzip("$key/$file", $path.$file); if ($res === false) { $failed = true; } } } } } else { _log("No files to update"); } _log("Update result (failed = 1): " .intval($failed)); $jLicence->revalidate(true); return intval(!$failed); }
That's it!
Now save your file and upload it back to the same place (FTP).
You can now use OneClick to upgrade to version 2.1!
Did you get stuck somewhere? No problem. Contact our Support Desk for help.
|