TWiki Upgrade Guide | ||||||||
Changed: | ||||||||
< < | This guide covers upgrading from a previous version of TWiki (such as TWiki-4.3) to TWiki-5.0 | |||||||
> > | This guide covers upgrading from a previous version of TWiki (such as TWiki-4.3) to TWiki-5.1 | |||||||
On this page:
Overview | ||||||||
Changed: | ||||||||
< < | TWiki-5.0.0 is a major release introducing usability enhancements, feature enhancements, and adds extensions to strengthen TWiki as an enterprise collaboration platform. Use this guide to upgrade a previous TWiki release to 5.0. Use the TWikiInstallationGuide if you do not have data to carry forward. | |||||||
> > | TWiki-5.1 is a minor release introducing mostly usability enhancements, feature enhancements, and adds extensions to strengthen TWiki as an enterprise collaboration platform. Use this guide to upgrade a previous TWiki release to TWiki-5.1. Use the TWikiInstallationGuide if you do not have data to carry forward. | |||||||
Upgrade Requirements
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Major Changes Compared to Earlier TWiki Releases | ||||||||
Changed: | ||||||||
< < | See TWikiReleaseNotes04x00, TWikiReleaseNotes04x01, TWikiReleaseNotes04x02, TWikiReleaseNotes04x03 and TWikiReleaseNotes05x00 | |||||||
> > | See TWikiReleaseNotes04x00, TWikiReleaseNotes04x01, TWikiReleaseNotes04x02, TWikiReleaseNotes04x03, TWikiReleaseNotes05x00 and TWikiReleaseNotes05x01 | |||||||
Added: | ||||||||
> > |
New Upgrade Option with BackupRestorePluginTWiki now as a new solution to backup, restore and upgrade TWiki sites. It can be used via browser and on the command line. The BackupRestorePlugin is pre-installed in TWiki-5.1 and later releases; it can be installed in older TWiki releases as low as TWiki-2001-09-01 (Athens Release) to easily create a backup that can be restored on a new TWiki release. This offers an easy upgrade path for TWiki. The plugin is currently in Beta, check TWiki:Plugins.BackupRestorePlugin for updates. | |||||||
Upgrade ProcedureThe following steps are a rough guide to upgrading only. It is impossible to give detailed instructions, as what you have to do may depend on whether you can configure the webserver or not, and how much you have changed distributed files in your current TWiki release. The main steps are:
![]() Installation
Install Extensions
Copy your old webs to new TWiki
Copy Users And Their Topics From Main Web
Apply Customizations To The Skin
Apply Preferences From Old Installation
Customization of Special PagesSome pages in the TWiki web are meant to be customized after choice of authentication. If you do not use the internal TWiki password manager the topics that contains the features for changing and resetting passwords and changing the email address should be changed to a note describing how to perform these tasks in your organization. If you have made such customizations remember to replace these topics in the TWiki web with the tailored versions from your old installation. The topics are:
Upgrading from Cairo to TWiki-4 (additional advice)FaviconTWiki-4's PatternSkin introduces the use of the favicon feature which most browsers use to show a small icon in front of the URL and for bookmarks. In TWiki-4 it is assumed that each web has a favicon.ico file attached to the WebPreferences topic. When you upgrade from Cairo to TWiki-4 you do not have this file and you will get flooded with errors the error log of your web server. There are two solutions to this.
* Set FAVICON = %PUBURLPATH%/%SYSTEMWEB%/%WEBPREFSTOPIC%/favicon.ico TWikiUsers topic in Main webYour old Main.TWikiUsers topic will work in the new TWiki but you will need to ensure that the following four users from the TWikiUsersTemplate topic are copied to the existing TWikiUsers topic in proper alphabetical order:* TWikiContributor - 2005-01-01 * TWikiGuest - guest - 1999-02-10 * TWikiRegistrationAgent - 2005-01-01 * UnknownUser - 2005-01-01What these users are:
Set ALLOWTOPICCHANGE = TWikiAdminGroup, TWikiRegistrationAgent access control setting. Otherwise people will not be able to register.
Important Changes since TWiki-4.0.5Supported Perl versionTWiki 4.0.5 worked on Perl version 5.6.X. Reports from users has shown that unfortunately TWiki 4.1.0 does not support Perl versions older then 5.8.0. It is the goal that TWiki should work on at least Perl version 5.6.X but none of the developers have had access to Perl installations older than 5.8.0. Since TWiki 4.1.0 has some urgent bugs the development team decided to release TWiki 4.1.1 without resolving the issue with Perl 5.6.X. We will however address this and try and resolve it for a planned 4.1.2 release. The TWiki community is very interested in contributions from users that have fixes for the code which will enable TWiki to run on older versions of Perl. See the WhatVersionsOfPerlAreSupported topic to keep up to date with the discussion how to get back support for earlier Perl versions.Template spec changedUntil TWiki 4.0.5 TWikiTemplates the text inside template definition blocks (anything between%TMPL:DEF{"block"}% and %TMPL:END% was stripped of leading and trailing white space incl new lines.
This caused a lot of problems for skin developers when you wanted a newline before or after the block text.
From TWiki 4.1.0 this has changed so that white space is no longer stripped. Skins like PatternSkin and NatSkin have been updated so that they work with the new behavior. But if you use an older skin or have written your own you will most likely need to make some adjustments.
It is not difficult. The general rule is - if you get mysterious blank lines in your skin, the newline after the %TMPL:DEF{"block"}% needs to be removed. Ie. the content of the block must follow on the same line as the TMPL:DEF.
The spec change have the same impact on CommentPlugin templates where you may have to remove the first line break after the TMPL:DEF. See the CommentPluginTemplate for examples of how comment template definitions should look like in TWiki-4.1.X
An example: A CommentPlugin template that adds a comment as appending a row to a table. Before the spec change this would work.
<verbatim> %TMPL:DEF{OUTPUT:tabletest}%%POS:BEFORE% |%URLPARAM{"comment"}%| -- %WIKIUSERNAME% - %DATE% | %TMPL:END% </verbatim>From Twiki 4.1.0 the old template definition will add an empty line before the new table row. To fix it simply remove the new line before the table. <verbatim> %TMPL:DEF{OUTPUT:tabletest}%%POS:BEFORE%|%URLPARAM{"comment"}%| -- %WIKIUSERNAME% - %DATE% | %TMPL:END% </verbatim>The advantage of the spec change is that now you can add leading and trailing white space including new lines. This was not possible before. Important Changes since TWiki-4.1.0New location for session and other temporary filesAn upgrader upgrading to 4.1.1 should note the following important change The directory for passthrough files and session files have been replaced by a common directory for temporary files used by TWiki. Previously the two configure settings{PassthroughDir} and {Sessions}{Dir} were by default set to /tmp . These config settings have been replaced by {TempfileDir} with the default setting value /tmp/twiki . If the twiki directory does not exist twiki will create it first time it needs it.
It is highly recommended no longer to use the tmp directory common to other web applications and the new default will work fine for most. You may want to delete all the old session files in /tmp after the upgrade to 4.1.1. They all start with cgisess_. It is additionally highly recommended to limit write access to the {TempfileDir} for security reasons if you have non-admin users with login access to the webserver just like you would do with the other webserver directories.
Important Changes since TWiki-4.1.2New WYSIWYG EditorTWiki now ships with a new WYSIWYG editor based on TinyMCE replaces the Kupu based editor.TinyMCE is not a perfect Wysiwyg editor but it is magnitudes better than the Kupu editor The WysiwygPlugin that drives the engine behind both TinyMCE has additionally been heavily improved so that less TWiki Applications are negatively affected by editing WYSIWYG When TinyMCEPlugin is enabled the Edit button per default becomes WYSIWYG editing mode. A new Raw Edit link has been added to enable application developers to edit the good old way The WYSIWYG button has been removed. NEWTOPICLINKSYMBOL removedThe NEWTOPICLINKSYMBOL preference which was deprecated in 4.1 has now been removed from the code. If you want to control the appearance of new links, you can use NEWLINKFORMAT.UserForm and NewUserTemplate CustomizationWhen a new user registers on TWiki his user topic is created based on theNewUserTemplate and UserForm .
The NewUserTemplate was located in the TWiki web and the UserForm in the Main web. When upgrading TWiki these were some of the topics you had to take care not to overwrite.
From 4.2.0 the UserForm and NewUserTemplate are distributed in the TWiki web. If you create the two in the Main web the Main web version will be used instead. So if you tailor the user topic format or the form then you should always copy the two files to the Main web and modify the ones in the Main web. When you later upgrade TWiki your tailored template and form will not be overwritten.
TWikiUsers no longer distributedTheMain.TWikiUsers topic contains all the registered users. It is a topic you do not want to overwrite when you upgrade TWiki.
From 4.2.0 this file is no longer included in the TWiki distribution. When you register the first time TWiki creates the Main.TWikiUsers topic in the Main web if it does not exist already. This means that you can now upgrade TWiki without risk of overwriting the important TWikiUsers topic.
New
A new directory | ||||||||
Added: | ||||||||
> > |
Important Changes since TWiki-5.1.0New Page Bookmarks FeatureA new bookmark feature has been introduced that replaces the personal left-bar links. Bookmarking a page is now a simple point and click operation: In the Account pulldown menu, select "Bookmark this page...". Existing bookmarks can be managed with an edit table in Main.<wikiname>Bookmarks topic, accessible via the "----- Bookmarks -----" pulldown menu of the Account pulldown. The personal left-bar topics such as JohnSmithLeftBar are no longer used. Ask users to select the "----- Bookmarks -----" pulldown menu of the Account pulldown to initially create the bookmarks topic, then to either bookmark pages, or to manually copy & paste old left-bar links to the bookmarks topic.User Profile Pages Tailored for WorkplacePrevious user profile pages had a bare bone look and the form fields were more tailored for public TWiki sites. TWiki-5.1 brings a more visual/modern page layout with profile picture selector, as well as default form fields tailored for the workplace. Changes to the TWiki.UserForm: Renamed:
| |||||||
Related Topics: AdminDocumentationCategory, TWiki:TWiki.UpgradingTWiki, TWiki:TWiki.UpgradingTWiki04x00PatchReleases, TWiki:TWiki.InstallingTWiki#OtherPlatforms, TWiki:TWiki.ApacheConfigGenerator, TWiki:TWiki.SettingFileAccessRightsLinuxUnix Contributors: TWiki:Main.PeterThoeny, TWiki:Main.KennethLavrsen, TWiki:Main.CrawfordCurrie, TWiki:Main.HaraldJoerg, TWiki:Main.BobBagwill |
TWiki Upgrade GuideThis guide covers upgrading from a previous version of TWiki (such as TWiki-4.3) to TWiki-5.0On this page:
OverviewTWiki-5.0.0 is a major release introducing usability enhancements, feature enhancements, and adds extensions to strengthen TWiki as an enterprise collaboration platform. Use this guide to upgrade a previous TWiki release to 5.0. Use the TWikiInstallationGuide if you do not have data to carry forward.Upgrade Requirements
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Major Changes Compared to Earlier TWiki ReleasesSee TWikiReleaseNotes04x00, TWikiReleaseNotes04x01, TWikiReleaseNotes04x02, TWikiReleaseNotes04x03 and TWikiReleaseNotes05x00Upgrade ProcedureThe following steps are a rough guide to upgrading only. It is impossible to give detailed instructions, as what you have to do may depend on whether you can configure the webserver or not, and how much you have changed distributed files in your current TWiki release. The main steps are:
![]() Installation | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < | ||||||||
> > | ||||||||
Install Extensions
Copy your old webs to new TWiki
Copy Users And Their Topics From Main Web
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Apply Customizations To The Skin
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Apply Preferences From Old Installation
Customization of Special PagesSome pages in the TWiki web are meant to be customized after choice of authentication. If you do not use the internal TWiki password manager the topics that contains the features for changing and resetting passwords and changing the email address should be changed to a note describing how to perform these tasks in your organization. If you have made such customizations remember to replace these topics in the TWiki web with the tailored versions from your old installation. The topics are:
Upgrading from Cairo to TWiki-4 (additional advice)FaviconTWiki-4's PatternSkin introduces the use of the favicon feature which most browsers use to show a small icon in front of the URL and for bookmarks. In TWiki-4 it is assumed that each web has a favicon.ico file attached to the WebPreferences topic. When you upgrade from Cairo to TWiki-4 you do not have this file and you will get flooded with errors the error log of your web server. There are two solutions to this.
| ||||||||
Changed: | ||||||||
< < | To change the location of favicon.ico in TWikiPreferences to the TWiki web add this line to TWikiPreferences | |||||||
> > | To change the location of favicon.ico in TWikiPreferences to the TWiki web add the following setting to Main.TWikiPreferences: | |||||||
* Set FAVICON = %PUBURLPATH%/%SYSTEMWEB%/%WEBPREFSTOPIC%/favicon.ico TWikiUsers topic in Main web | ||||||||
Changed: | ||||||||
< < | Your Cairo Main.TWikiUsers topic will work in TWiki-4 but you will need to ensure that these 4 users from the default TWiki-4 version of TWikiUsers are copied to the existing TWikiUsers topic. TWikiGuest is probably already there but the others are new | |||||||
> > | Your old Main.TWikiUsers topic will work in the new TWiki but you will need to ensure that the following four users from the TWikiUsersTemplate topic are copied to the existing TWikiUsers topic in proper alphabetical order: | |||||||
Deleted: | ||||||||
< < |
| |||||||
Added: | ||||||||
> > | * TWikiContributor - 2005-01-01 * TWikiGuest - guest - 1999-02-10 * TWikiRegistrationAgent - 2005-01-01 * UnknownUser - 2005-01-01 | |||||||
Changed: | ||||||||
< < | You additionally need to ensure that TWikiUsers has the Set ALLOWTOPICCHANGE = TWikiAdminGroup, TWikiRegistrationAgent . Otherwise people will not be able to register. | |||||||
> > | What these users are: | |||||||
Added: | ||||||||
> > |
| |||||||
Added: | ||||||||
> > | You additionally need to ensure that TWikiUsers has the Set ALLOWTOPICCHANGE = TWikiAdminGroup, TWikiRegistrationAgent access control setting. Otherwise people will not be able to register. | |||||||
Important Changes since TWiki-4.0.5Supported Perl versionTWiki 4.0.5 worked on Perl version 5.6.X. Reports from users has shown that unfortunately TWiki 4.1.0 does not support Perl versions older then 5.8.0. It is the goal that TWiki should work on at least Perl version 5.6.X but none of the developers have had access to Perl installations older than 5.8.0. Since TWiki 4.1.0 has some urgent bugs the development team decided to release TWiki 4.1.1 without resolving the issue with Perl 5.6.X. We will however address this and try and resolve it for a planned 4.1.2 release. The TWiki community is very interested in contributions from users that have fixes for the code which will enable TWiki to run on older versions of Perl. See the WhatVersionsOfPerlAreSupported topic to keep up to date with the discussion how to get back support for earlier Perl versions.Template spec changed | ||||||||
Changed: | ||||||||
< < | Until TWiki 4.0.5 TWikiTemplates the text inside template definition blocks (anything between %TMPL:DEF{"block"}% and %TMPL:END% was stripped of leading and trailing white space incl new lines. | |||||||
> > | Until TWiki 4.0.5 TWikiTemplates the text inside template definition blocks (anything between %TMPL:DEF{"block"}% and %TMPL:END% was stripped of leading and trailing white space incl new lines. | |||||||
This caused a lot of problems for skin developers when you wanted a newline before or after the block text. From TWiki 4.1.0 this has changed so that white space is no longer stripped. Skins like PatternSkin and NatSkin have been updated so that they work with the new behavior. But if you use an older skin or have written your own you will most likely need to make some adjustments. | ||||||||
Changed: | ||||||||
< < | It is not difficult. The general rule is - if you get mysterious blank lines in your skin, the newline after the %TMPL:DEF{"block"}% needs to be removed. Ie. the content of the block must follow on the same line as the TMPL:DEF. | |||||||
> > | It is not difficult. The general rule is - if you get mysterious blank lines in your skin, the newline after the %TMPL:DEF{"block"}% needs to be removed. Ie. the content of the block must follow on the same line as the TMPL:DEF. | |||||||
The spec change have the same impact on CommentPlugin templates where you may have to remove the first line break after the TMPL:DEF. See the CommentPluginTemplate for examples of how comment template definitions should look like in TWiki-4.1.X
An example: A CommentPlugin template that adds a comment as appending a row to a table. Before the spec change this would work.
<verbatim> %TMPL:DEF{OUTPUT:tabletest}%%POS:BEFORE% |%URLPARAM{"comment"}%| -- %WIKIUSERNAME% - %DATE% | %TMPL:END% </verbatim>From Twiki 4.1.0 the old template definition will add an empty line before the new table row. To fix it simply remove the new line before the table. <verbatim> %TMPL:DEF{OUTPUT:tabletest}%%POS:BEFORE%|%URLPARAM{"comment"}%| -- %WIKIUSERNAME% - %DATE% | %TMPL:END% </verbatim>The advantage of the spec change is that now you can add leading and trailing white space including new lines. This was not possible before. Important Changes since TWiki-4.1.0New location for session and other temporary filesAn upgrader upgrading to 4.1.1 should note the following important change The directory for passthrough files and session files have been replaced by a common directory for temporary files used by TWiki. Previously the two configure settings{PassthroughDir} and {Sessions}{Dir} were by default set to /tmp . These config settings have been replaced by {TempfileDir} with the default setting value /tmp/twiki . If the twiki directory does not exist twiki will create it first time it needs it.
It is highly recommended no longer to use the tmp directory common to other web applications and the new default will work fine for most. You may want to delete all the old session files in /tmp after the upgrade to 4.1.1. They all start with cgisess_. It is additionally highly recommended to limit write access to the {TempfileDir} for security reasons if you have non-admin users with login access to the webserver just like you would do with the other webserver directories.
Important Changes since TWiki-4.1.2New WYSIWYG EditorTWiki now ships with a new WYSIWYG editor based on TinyMCE replaces the Kupu based editor.TinyMCE is not a perfect Wysiwyg editor but it is magnitudes better than the Kupu editor The WysiwygPlugin that drives the engine behind both TinyMCE has additionally been heavily improved so that less TWiki Applications are negatively affected by editing WYSIWYG When TinyMCEPlugin is enabled the Edit button per default becomes WYSIWYG editing mode. A new Raw Edit link has been added to enable application developers to edit the good old way The WYSIWYG button has been removed. NEWTOPICLINKSYMBOL removedThe NEWTOPICLINKSYMBOL preference which was deprecated in 4.1 has now been removed from the code. If you want to control the appearance of new links, you can use NEWLINKFORMAT.UserForm and NewUserTemplate CustomizationWhen a new user registers on TWiki his user topic is created based on theNewUserTemplate and UserForm .
The NewUserTemplate was located in the TWiki web and the UserForm in the Main web. When upgrading TWiki these were some of the topics you had to take care not to overwrite.
From 4.2.0 the UserForm and NewUserTemplate are distributed in the TWiki web. If you create the two in the Main web the Main web version will be used instead. So if you tailor the user topic format or the form then you should always copy the two files to the Main web and modify the ones in the Main web. When you later upgrade TWiki your tailored template and form will not be overwritten.
TWikiUsers no longer distributedTheMain.TWikiUsers topic contains all the registered users. It is a topic you do not want to overwrite when you upgrade TWiki.
From 4.2.0 this file is no longer included in the TWiki distribution. When you register the first time TWiki creates the Main.TWikiUsers topic in the Main web if it does not exist already. This means that you can now upgrade TWiki without risk of overwriting the important TWikiUsers topic.
New
A new directory | ||||||||
Changed: | ||||||||
< < | The TopMenuSkin adds pulldown menus for better usability and corporate/modern look&feel. This skin is based on the PatternSkin, which used the WebLeftBar in each web for navigation. The TopMenuSkin has a new WebTopBar that defines the menu structure in each web. A default menu is shown in case WebTopBar is missing, so you do not need to add a WebTopBar topic to all your existing webs. See TopMenuSkin#WebSpecific instructions in case you need a customized menu structure in a web. | |||||||
> > | The TopMenuSkin adds pulldown menus for better usability and corporate/modern look&feel. This skin is based on the PatternSkin, which used the WebLeftBar in each web for navigation. The TopMenuSkin has a new WebTopBar that defines the menu structure in each web. A default menu is shown in case WebTopBar is missing in a web, so you do not need to add a WebTopBar topic to all your existing webs. See TopMenuSkin#WebSpecific instructions in case you need a customized menu structure in a specific web. | |||||||
Related Topics: AdminDocumentationCategory, TWiki:TWiki.UpgradingTWiki, TWiki:TWiki.UpgradingTWiki04x00PatchReleases, TWiki:TWiki.InstallingTWiki#OtherPlatforms, TWiki:TWiki.ApacheConfigGenerator, TWiki:TWiki.SettingFileAccessRightsLinuxUnix Contributors: TWiki:Main.PeterThoeny, TWiki:Main.KennethLavrsen, TWiki:Main.CrawfordCurrie, TWiki:Main.HaraldJoerg, TWiki:Main.BobBagwill |
TWiki Upgrade Guide | ||||||||
Changed: | ||||||||
< < | This guide covers upgrading from a previous version of TWiki (such as Cairo or TWiki-4.0) to TWiki-4.3 | |||||||
> > | This guide covers upgrading from a previous version of TWiki (such as TWiki-4.3) to TWiki-5.0 | |||||||
On this page:
Overview | ||||||||
Changed: | ||||||||
< < | TWiki-4.0.0 was a major new release. TWiki-4.1.x, TWiki-4.2.x, TWiki-4.3.x minor releases containing new features that can be seen by the end user, a large number of bug fixes. Use the TWikiInstallationGuide if you do not have data to carry forward. | |||||||
> > | TWiki-5.0.0 is a major release introducing usability enhancements, feature enhancements, and adds extensions to strengthen TWiki as an enterprise collaboration platform. Use this guide to upgrade a previous TWiki release to 5.0. Use the TWikiInstallationGuide if you do not have data to carry forward. | |||||||
Upgrade Requirements
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Major Changes Compared to Earlier TWiki Releases | ||||||||
Changed: | ||||||||
< < | See TWikiReleaseNotes04x00, TWikiReleaseNotes04x01, TWikiReleaseNotes04x02 and TWikiReleaseNotes04x03 | |||||||
> > | See TWikiReleaseNotes04x00, TWikiReleaseNotes04x01, TWikiReleaseNotes04x02, TWikiReleaseNotes04x03 and TWikiReleaseNotes05x00 | |||||||
Deleted: | ||||||||
< < | ||||||||
Upgrade ProcedureThe following steps are a rough guide to upgrading only. It is impossible to give detailed instructions, as what you have to do may depend on whether you can configure the webserver or not, and how much you have changed distributed files in your current TWiki release. The main steps are:
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
![]() Installation | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < | ||||||||
> > | ||||||||
Deleted: | ||||||||
< < | ||||||||
Install Extensions | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Deleted: | ||||||||
< < |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Copy your old webs to new TWiki | ||||||||
Added: | ||||||||
> > |
| |||||||
Copy Users And Their Topics From Main Web
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Apply Customizations To The Skin | ||||||||
Deleted: | ||||||||
< < |
| |||||||
Apply Preferences From Old Installation
Customization of Special PagesSome pages in the TWiki web are meant to be customized after choice of authentication. If you do not use the internal TWiki password manager the topics that contains the features for changing and resetting passwords and changing the email address should be changed to a note describing how to perform these tasks in your organization. If you have made such customizations remember to replace these topics in the TWiki web with the tailored versions from your old installation. The topics are:
Upgrading from Cairo to TWiki-4 (additional advice)FaviconTWiki-4's PatternSkin introduces the use of the favicon feature which most browsers use to show a small icon in front of the URL and for bookmarks. In TWiki-4 it is assumed that each web has a favicon.ico file attached to the WebPreferences topic. When you upgrade from Cairo to TWiki-4 you do not have this file and you will get flooded with errors the error log of your web server. There are two solutions to this.
* Set FAVICON = %PUBURLPATH%/%SYSTEMWEB%/%WEBPREFSTOPIC%/favicon.ico TWikiUsers topic in Main webYour Cairo Main.TWikiUsers topic will work in TWiki-4 but you will need to ensure that these 4 users from the default TWiki-4 version of TWikiUsers are copied to the existing TWikiUsers topic. TWikiGuest is probably already there but the others are new
Set ALLOWTOPICCHANGE = TWikiAdminGroup, TWikiRegistrationAgent . Otherwise people will not be able to register. | ||||||||
Changed: | ||||||||
< < | Important Changes since 4.0.5 | |||||||
> > | Important Changes since TWiki-4.0.5 | |||||||
Supported Perl versionTWiki 4.0.5 worked on Perl version 5.6.X. Reports from users has shown that unfortunately TWiki 4.1.0 does not support Perl versions older then 5.8.0. It is the goal that TWiki should work on at least Perl version 5.6.X but none of the developers have had access to Perl installations older than 5.8.0. Since TWiki 4.1.0 has some urgent bugs the development team decided to release TWiki 4.1.1 without resolving the issue with Perl 5.6.X. We will however address this and try and resolve it for a planned 4.1.2 release. The TWiki community is very interested in contributions from users that have fixes for the code which will enable TWiki to run on older versions of Perl. See the WhatVersionsOfPerlAreSupported topic to keep up to date with the discussion how to get back support for earlier Perl versions.Template spec changedUntil TWiki 4.0.5 TWikiTemplates the text inside template definition blocks (anything between %TMPL:DEF{"block"}% and %TMPL:END% was stripped of leading and trailing white space incl new lines. This caused a lot of problems for skin developers when you wanted a newline before or after the block text. From TWiki 4.1.0 this has changed so that white space is no longer stripped. Skins like PatternSkin and NatSkin have been updated so that they work with the new behavior. But if you use an older skin or have written your own you will most likely need to make some adjustments. It is not difficult. The general rule is - if you get mysterious blank lines in your skin, the newline after the %TMPL:DEF{"block"}% needs to be removed. Ie. the content of the block must follow on the same line as the TMPL:DEF. The spec change have the same impact on CommentPlugin templates where you may have to remove the first line break after the TMPL:DEF. See the CommentPluginTemplate for examples of how comment template definitions should look like in TWiki-4.1.X An example: A CommentPlugin template that adds a comment as appending a row to a table. Before the spec change this would work.<verbatim> %TMPL:DEF{OUTPUT:tabletest}%%POS:BEFORE% |%URLPARAM{"comment"}%| -- %WIKIUSERNAME% - %DATE% | %TMPL:END% </verbatim>From Twiki 4.1.0 the old template definition will add an empty line before the new table row. To fix it simply remove the new line before the table. <verbatim> %TMPL:DEF{OUTPUT:tabletest}%%POS:BEFORE%|%URLPARAM{"comment"}%| -- %WIKIUSERNAME% - %DATE% | %TMPL:END% </verbatim>The advantage of the spec change is that now you can add leading and trailing white space including new lines. This was not possible before. | ||||||||
Changed: | ||||||||
< < | Important Changes since 4.1.0 | |||||||
> > | Important Changes since TWiki-4.1.0 | |||||||
New location for session and other temporary filesAn upgrader upgrading to 4.1.1 should note the following important change The directory for passthrough files and session files have been replaced by a common directory for temporary files used by TWiki. Previously the two configure settings{PassthroughDir} and {Sessions}{Dir} were by default set to /tmp . These config settings have been replaced by {TempfileDir} with the default setting value /tmp/twiki . If the twiki directory does not exist twiki will create it first time it needs it.
It is highly recommended no longer to use the tmp directory common to other web applications and the new default will work fine for most. You may want to delete all the old session files in /tmp after the upgrade to 4.1.1. They all start with cgisess_. It is additionally highly recommended to limit write access to the {TempfileDir} for security reasons if you have non-admin users with login access to the webserver just like you would do with the other webserver directories. | ||||||||
Changed: | ||||||||
< < | Important Changes since 4.1.2 | |||||||
> > | Important Changes since TWiki-4.1.2 | |||||||
New WYSIWYG EditorTWiki now ships with a new WYSIWYG editor based on TinyMCE replaces the Kupu based editor.TinyMCE is not a perfect Wysiwyg editor but it is magnitudes better than the Kupu editor The WysiwygPlugin that drives the engine behind both TinyMCE has additionally been heavily improved so that less TWiki Applications are negatively affected by editing WYSIWYG When TinyMCEPlugin is enabled the Edit button per default becomes WYSIWYG editing mode. A new Raw Edit link has been added to enable application developers to edit the good old way The WYSIWYG button has been removed. NEWTOPICLINKSYMBOL removedThe NEWTOPICLINKSYMBOL preference which was deprecated in 4.1 has now been removed from the code. If you want to control the appearance of new links, you can use NEWLINKFORMAT.UserForm and NewUserTemplate CustomizationWhen a new user registers on TWiki his user topic is created based on theNewUserTemplate and UserForm .
The NewUserTemplate was located in the TWiki web and the UserForm in the Main web. When upgrading TWiki these were some of the topics you had to take care not to overwrite.
From 4.2.0 the UserForm and NewUserTemplate are distributed in the TWiki web. If you create the two in the Main web the Main web version will be used instead. So if you tailor the user topic format or the form then you should always copy the two files to the Main web and modify the ones in the Main web. When you later upgrade TWiki your tailored template and form will not be overwritten.
TWikiUsers no longer distributedTheMain.TWikiUsers topic contains all the registered users. It is a topic you do not want to overwrite when you upgrade TWiki.
From 4.2.0 this file is no longer included in the TWiki distribution. When you register the first time TWiki creates the Main.TWikiUsers topic in the Main web if it does not exist already. This means that you can now upgrade TWiki without risk of overwriting the important TWikiUsers topic.
New
A new directory | ||||||||
Added: | ||||||||
> > |
Important Changes since TWiki-5.0.0New TopMenuSkinThe TopMenuSkin adds pulldown menus for better usability and corporate/modern look&feel. This skin is based on the PatternSkin, which used the WebLeftBar in each web for navigation. The TopMenuSkin has a new WebTopBar that defines the menu structure in each web. A default menu is shown in case WebTopBar is missing, so you do not need to add a WebTopBar topic to all your existing webs. See TopMenuSkin#WebSpecific instructions in case you need a customized menu structure in a web. | |||||||
Related Topics: AdminDocumentationCategory, TWiki:TWiki.UpgradingTWiki, TWiki:TWiki.UpgradingTWiki04x00PatchReleases, TWiki:TWiki.InstallingTWiki#OtherPlatforms, TWiki:TWiki.ApacheConfigGenerator, TWiki:TWiki.SettingFileAccessRightsLinuxUnix Contributors: TWiki:Main.PeterThoeny, TWiki:Main.KennethLavrsen, TWiki:Main.CrawfordCurrie, TWiki:Main.HaraldJoerg, TWiki:Main.BobBagwill |
TWiki Upgrade Guide | ||||||||
Changed: | ||||||||
< < | This guide covers upgrading from a previous version of TWiki (such as Cairo or TWiki4.0) to TWiki 4.2 | |||||||
> > | This guide covers upgrading from a previous version of TWiki (such as Cairo or TWiki-4.0) to TWiki-4.3 | |||||||
On this page:
Overview | ||||||||
Changed: | ||||||||
< < | TWiki-4.0.0 was a major new release. TWiki-4.1.0 was a minor release without dramatic changes since 4.0.0. TWiki-4.2.0 is also a minor release containing a few new features that can be seen by the end user, a large number of bug fixes, and a face lift for the skin. It also contains some important updates under the hood to the way users are handled which enables new types of authentication and integration with other systems. The most important new feature is the QuerySearch feature. | |||||||
> > | TWiki-4.0.0 was a major new release. TWiki-4.1.x, TWiki-4.2.x, TWiki-4.3.x minor releases containing new features that can be seen by the end user, a large number of bug fixes. Use the TWikiInstallationGuide if you do not have data to carry forward. | |||||||
Upgrade Requirements
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Deleted: | ||||||||
< < |
| |||||||
Changed: | ||||||||
< < | Major Changes Compared to TWiki Release 01-Sep-2004 and TWiki Release 4.0.0 | |||||||
> > | Major Changes Compared to Earlier TWiki Releases | |||||||
Changed: | ||||||||
< < | See TWikiReleaseNotes04x00, TWikiReleaseNotes04x01 and TWikiReleaseNotes04x02 | |||||||
> > | See TWikiReleaseNotes04x00, TWikiReleaseNotes04x01, TWikiReleaseNotes04x02 and TWikiReleaseNotes04x03 | |||||||
Upgrade ProcedureThe following steps are a rough guide to upgrading only. It is impossible to give detailed instructions, as what you have to do may depend on whether you can configure the webserver or not, and how much you have changed distributed files in your current TWiki release. The main steps are:
| ||||||||
Added: | ||||||||
> > |
![]() | |||||||
Installation
Install Extensions | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Copy your old webs to new TWiki
Copy Users And Their Topics From Main Web
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Apply Customizations To The Skin | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Apply Preferences From Old Installation
Customization of Special PagesSome pages in the TWiki web are meant to be customized after choice of authentication. If you do not use the internal TWiki password manager the topics that contains the features for changing and resetting passwords and changing the email address should be changed to a note describing how to perform these tasks in your organization. If you have made such customizations remember to replace these topics in the TWiki web with the tailored versions from your old installation. The topics are:
| ||||||||
Changed: | ||||||||
< < | Upgrading from Cairo to TWiki4 (additional advice) | |||||||
> > | Upgrading from Cairo to TWiki-4 (additional advice) | |||||||
Favicon | ||||||||
Changed: | ||||||||
< < | TWiki4's PatternSkin introduces the use of the favicon feature which most browsers use to show a small icon in front of the URL and for bookmarks. | |||||||
> > | TWiki-4's PatternSkin introduces the use of the favicon feature which most browsers use to show a small icon in front of the URL and for bookmarks. | |||||||
Changed: | ||||||||
< < | In TWiki4 it is assumed that each web has a favicon.ico file attached to the WebPreferences topic. When you upgrade from Cairo to TWiki4 you do not have this file and you will get flooded with errors the error log of your web server. There are two solutions to this. | |||||||
> > | In TWiki-4 it is assumed that each web has a favicon.ico file attached to the WebPreferences topic. When you upgrade from Cairo to TWiki-4 you do not have this file and you will get flooded with errors the error log of your web server. There are two solutions to this. | |||||||
* Set FAVICON = %PUBURLPATH%/%SYSTEMWEB%/%WEBPREFSTOPIC%/favicon.ico TWikiUsers topic in Main web | ||||||||
Changed: | ||||||||
< < | Your Cairo Main.TWikiUsers topic will work in TWiki4 but you will need to ensure that these 4 users from the default TWiki4 version of TWikiUsers are copied to the existing TWikiUsers topic. TWikiGuest is probably already there but the others are new | |||||||
> > | Your Cairo Main.TWikiUsers topic will work in TWiki-4 but you will need to ensure that these 4 users from the default TWiki-4 version of TWikiUsers are copied to the existing TWikiUsers topic. TWikiGuest is probably already there but the others are new | |||||||
Set ALLOWTOPICCHANGE = TWikiAdminGroup, TWikiRegistrationAgent . Otherwise people will not be able to register.
Important Changes since 4.0.5Supported Perl versionTWiki 4.0.5 worked on Perl version 5.6.X. Reports from users has shown that unfortunately TWiki 4.1.0 does not support Perl versions older then 5.8.0. It is the goal that TWiki should work on at least Perl version 5.6.X but none of the developers have had access to Perl installations older than 5.8.0. Since TWiki 4.1.0 has some urgent bugs the development team decided to release TWiki 4.1.1 without resolving the issue with Perl 5.6.X. We will however address this and try and resolve it for a planned 4.1.2 release. The TWiki community is very interested in contributions from users that have fixes for the code which will enable TWiki to run on older versions of Perl. See the WhatVersionsOfPerlAreSupported topic to keep up to date with the discussion how to get back support for earlier Perl versions.Template spec changedUntil TWiki 4.0.5 TWikiTemplates the text inside template definition blocks (anything between %TMPL:DEF{"block"}% and %TMPL:END% was stripped of leading and trailing white space incl new lines. This caused a lot of problems for skin developers when you wanted a newline before or after the block text. From TWiki 4.1.0 this has changed so that white space is no longer stripped. Skins like PatternSkin and NatSkin have been updated so that they work with the new behavior. But if you use an older skin or have written your own you will most likely need to make some adjustments. It is not difficult. The general rule is - if you get mysterious blank lines in your skin, the newline after the %TMPL:DEF{"block"}% needs to be removed. Ie. the content of the block must follow on the same line as the TMPL:DEF. The spec change have the same impact on CommentPlugin templates where you may have to remove the first line break after the TMPL:DEF. See the CommentPluginTemplate for examples of how comment template definitions should look like in TWiki-4.1.X An example: A CommentPlugin template that adds a comment as appending a row to a table. Before the spec change this would work.<verbatim> %TMPL:DEF{OUTPUT:tabletest}%%POS:BEFORE% |%URLPARAM{"comment"}%| -- %WIKIUSERNAME% - %DATE% | %TMPL:END% </verbatim>From Twiki 4.1.0 the old template definition will add an empty line before the new table row. To fix it simply remove the new line before the table. <verbatim> %TMPL:DEF{OUTPUT:tabletest}%%POS:BEFORE%|%URLPARAM{"comment"}%| -- %WIKIUSERNAME% - %DATE% | %TMPL:END% </verbatim>The advantage of the spec change is that now you can add leading and trailing white space including new lines. This was not possible before. Important Changes since 4.1.0New location for session and other temporary filesAn upgrader upgrading to 4.1.1 should note the following important change The directory for passthrough files and session files have been replaced by a common directory for temporary files used by TWiki. Previously the two configure settings{PassthroughDir} and {Sessions}{Dir} were by default set to /tmp . These config settings have been replaced by {TempfileDir} with the default setting value /tmp/twiki . If the twiki directory does not exist twiki will create it first time it needs it.
It is highly recommended no longer to use the tmp directory common to other web applications and the new default will work fine for most. You may want to delete all the old session files in /tmp after the upgrade to 4.1.1. They all start with cgisess_. It is additionally highly recommended to limit write access to the {TempfileDir} for security reasons if you have non-admin users with login access to the webserver just like you would do with the other webserver directories.
Important Changes since 4.1.2New WYSIWYG EditorTWiki now ships with a new WYSIWYG editor based on TinyMCE replaces the Kupu based editor.TinyMCE is not a perfect Wysiwyg editor but it is magnitudes better than the Kupu editor The WysiwygPlugin that drives the engine behind both TinyMCE has additionally been heavily improved so that less TWiki Applications are negatively affected by editing WYSIWYG When TinyMCEPlugin is enabled the Edit button per default becomes WYSIWYG editing mode. A new Raw Edit link has been added to enable application developers to edit the good old way The WYSIWYG button has been removed. NEWTOPICLINKSYMBOL removedThe NEWTOPICLINKSYMBOL preference which was deprecated in 4.1 has now been removed from the code. If you want to control the appearance of new links, you can use NEWLINKFORMAT.UserForm and NewUserTemplate CustomizationWhen a new user registers on TWiki his user topic is created based on theNewUserTemplate and UserForm .
The NewUserTemplate was located in the TWiki web and the UserForm in the Main web. When upgrading TWiki these were some of the topics you had to take care not to overwrite.
From 4.2.0 the UserForm and NewUserTemplate are distributed in the TWiki web. If you create the two in the Main web the Main web version will be used instead. So if you tailor the user topic format or the form then you should always copy the two files to the Main web and modify the ones in the Main web. When you later upgrade TWiki your tailored template and form will not be overwritten.
TWikiUsers no longer distributedTheMain.TWikiUsers topic contains all the registered users. It is a topic you do not want to overwrite when you upgrade TWiki.
From 4.2.0 this file is no longer included in the TWiki distribution. When you register the first time TWiki creates the Main.TWikiUsers topic in the Main web if it does not exist already. This means that you can now upgrade TWiki without risk of overwriting the important TWikiUsers topic.
New
A new directory | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
{WorkingDir} defines the container directory for temporary files, extensions' work areas, and intermediate registration data. The default is working under your installation root.
Take care for that change if you run your own routine to delete obsolete session files, which will now be found under working/tmp/cgisess* . | ||||||||
Changed: | ||||||||
< < | ||||||||
> > | ||||||||
New Internal Admin LoginTWiki 4.2 introduces a new Internal Admin Login feature which uses "admin" (configurable) as username and the password used for configure to become temporary administrator. When you do a new installation you need to use this feature as Main.TWikiAdminGroup is now access restricted by default to avoid security attacks during the hours an installation may take. From configure there is a link to the TWikiAdminGroup topic and on TWikiAdminGroup the step by step instructions are written in a yellow box. Our advice is not to remove this help text in case you need it later. Related Topics: AdminDocumentationCategory, TWiki:TWiki.UpgradingTWiki, TWiki:TWiki.UpgradingTWiki04x00PatchReleases, TWiki:TWiki.InstallingTWiki#OtherPlatforms, TWiki:TWiki.ApacheConfigGenerator, TWiki:TWiki.SettingFileAccessRightsLinuxUnix | ||||||||
Added: | ||||||||
> > | Contributors: TWiki:Main.PeterThoeny, TWiki:Main.KennethLavrsen, TWiki:Main.CrawfordCurrie, TWiki:Main.HaraldJoerg, TWiki:Main.BobBagwill | |||||||
Changed: | ||||||||
< < | TWiki Upgrade Guide | |||||||
> > | TWiki Upgrade Guide | |||||||
Changed: | ||||||||
< < | This guide covers upgrading from a previous version of TWiki (such as Cairo or TWiki4.0) to TWiki 4.1_ | |||||||
> > | This guide covers upgrading from a previous version of TWiki (such as Cairo or TWiki4.0) to TWiki 4.2 | |||||||
On this page:
Overview | ||||||||
Changed: | ||||||||
< < | TWiki-4.0.0 was a major new release. TWiki-4.1.0 is a minor release without dramatic changes since 4.0.0 | |||||||
> > | TWiki-4.0.0 was a major new release. TWiki-4.1.0 was a minor release without dramatic changes since 4.0.0. TWiki-4.2.0 is also a minor release containing a few new features that can be seen by the end user, a large number of bug fixes, and a face lift for the skin. It also contains some important updates under the hood to the way users are handled which enables new types of authentication and integration with other systems. The most important new feature is the QuerySearch feature. | |||||||
Upgrade Requirements
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Major Changes Compared to TWiki Release 01-Sep-2004 and TWiki Release 4.0.0 | ||||||||
Changed: | ||||||||
< < | See TWikiReleaseNotes04x00 and TWikiReleaseNotes04x01 | |||||||
> > | See TWikiReleaseNotes04x00, TWikiReleaseNotes04x01 and TWikiReleaseNotes04x02 | |||||||
Upgrade ProcedureThe following steps are a rough guide to upgrading only. It is impossible to give detailed instructions, as what you have to do may depend on whether you can configure the webserver or not, and how much you have changed distributed files in your current TWiki release. The main steps are:
Installation
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Added: | ||||||||
> > |
| |||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Install Extensions
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
Copy your old webs to new TWiki
| ||||||||
Changed: | ||||||||
< < | ||||||||
> > |
| |||||||
Added: | ||||||||
> > |
| |||||||
Copy Users And Their Topics From Main Web
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
Apply Customizations To The Skin
Apply Preferences From Old Installation | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Added: | ||||||||
> > | Customization of Special PagesSome pages in the TWiki web are meant to be customized after choice of authentication. If you do not use the internal TWiki password manager the topics that contains the features for changing and resetting passwords and changing the email address should be changed to a note describing how to perform these tasks in your organization. If you have made such customizations remember to replace these topics in the TWiki web with the tailored versions from your old installation. The topics are:
| |||||||
Upgrading from Cairo to TWiki4 (additional advice)FaviconTWiki4's PatternSkin introduces the use of the favicon feature which most browsers use to show a small icon in front of the URL and for bookmarks. In TWiki4 it is assumed that each web has a favicon.ico file attached to the WebPreferences topic. When you upgrade from Cairo to TWiki4 you do not have this file and you will get flooded with errors the error log of your web server. There are two solutions to this.
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
TWikiUsers topic in Main webYour Cairo Main.TWikiUsers topic will work in TWiki4 but you will need to ensure that these 4 users from the default TWiki4 version of TWikiUsers are copied to the existing TWikiUsers topic. TWikiGuest is probably already there but the others are new
Set ALLOWTOPICCHANGE = TWikiAdminGroup, TWikiRegistrationAgent . Otherwise people will not be able to register.
Important Changes since 4.0.5Supported Perl versionTWiki 4.0.5 worked on Perl version 5.6.X. Reports from users has shown that unfortunately TWiki 4.1.0 does not support Perl versions older then 5.8.0. It is the goal that TWiki should work on at least Perl version 5.6.X but none of the developers have had access to Perl installations older than 5.8.0. Since TWiki 4.1.0 has some urgent bugs the development team decided to release TWiki 4.1.1 without resolving the issue with Perl 5.6.X. We will however address this and try and resolve it for a planned 4.1.2 release. The TWiki community is very interested in contributions from users that have fixes for the code which will enable TWiki to run on older versions of Perl. See the WhatVersionsOfPerlAreSupported topic to keep up to date with the discussion how to get back support for earlier Perl versions.Template spec changedUntil TWiki 4.0.5 TWikiTemplates the text inside template definition blocks (anything between %TMPL:DEF{"block"}% and %TMPL:END% was stripped of leading and trailing white space incl new lines. This caused a lot of problems for skin developers when you wanted a newline before or after the block text. From TWiki 4.1.0 this has changed so that white space is no longer stripped. Skins like PatternSkin and NatSkin have been updated so that they work with the new behavior. But if you use an older skin or have written your own you will most likely need to make some adjustments. It is not difficult. The general rule is - if you get mysterious blank lines in your skin, the newline after the %TMPL:DEF{"block"}% needs to be removed. Ie. the content of the block must follow on the same line as the TMPL:DEF. The spec change have the same impact on CommentPlugin templates where you may have to remove the first line break after the TMPL:DEF. See the CommentPluginTemplate for examples of how comment template definitions should look like in TWiki-4.1.X An example: A CommentPlugin template that adds a comment as appending a row to a table. Before the spec change this would work.<verbatim> %TMPL:DEF{OUTPUT:tabletest}%%POS:BEFORE% |%URLPARAM{"comment"}%| -- %WIKIUSERNAME% - %DATE% | %TMPL:END% </verbatim>From Twiki 4.1.0 the old template definition will add an empty line before the new table row. To fix it simply remove the new line before the table. <verbatim> %TMPL:DEF{OUTPUT:tabletest}%%POS:BEFORE%|%URLPARAM{"comment"}%| -- %WIKIUSERNAME% - %DATE% | %TMPL:END% </verbatim>The advantage of the spec change is that now you can add leading and trailing white space including new lines. This was not possible before. Important Changes since 4.1.0 | ||||||||
Changed: | ||||||||
< < | New location for session files | |||||||
> > | New location for session and other temporary files | |||||||
Changed: | ||||||||
< < | An upgrader upgrading to 4.1.1 should note the following important change | |||||||
> > | An upgrader upgrading to 4.1.1 should note the following important change | |||||||
The directory for passthrough files and session files have been replaced by a common directory for temporary files used by TWiki. Previously the two configure settings {PassthroughDir} and {Sessions}{Dir} were by default set to /tmp . These config settings have been replaced by {TempfileDir} with the default setting value /tmp/twiki . If the twiki directory does not exist twiki will create it first time it needs it.
It is highly recommended no longer to use the tmp directory common to other web applications and the new default will work fine for most. You may want to delete all the old session files in /tmp after the upgrade to 4.1.1. They all start with cgisess_. It is additionally highly recommended to limit write access to the {TempfileDir} for security reasons if you have non-admin users with login access to the webserver just like you would do with the other webserver directories. | ||||||||
Added: | ||||||||
> > | Important Changes since 4.1.2New WYSIWYG EditorTWiki now ships with a new WYSIWYG editor based on TinyMCE replaces the Kupu based editor.TinyMCE is not a perfect Wysiwyg editor but it is magnitudes better than the Kupu editor The WysiwygPlugin that drives the engine behind both TinyMCE has additionally been heavily improved so that less TWiki Applications are negatively affected by editing WYSIWYG When TinyMCEPlugin is enabled the Edit button per default becomes WYSIWYG editing mode. A new Raw Edit link has been added to enable application developers to edit the good old way The WYSIWYG button has been removed. NEWTOPICLINKSYMBOL removedThe NEWTOPICLINKSYMBOL preference which was deprecated in 4.1 has now been removed from the code. If you want to control the appearance of new links, you can use NEWLINKFORMAT.UserForm and NewUserTemplate CustomizationWhen a new user registers on TWiki his user topic is created based on theNewUserTemplate and UserForm .
The NewUserTemplate was located in the TWiki web and the UserForm in the Main web. When upgrading TWiki these were some of the topics you had to take care not to overwrite.
From 4.2.0 the UserForm and NewUserTemplate are distributed in the TWiki web. If you create the two in the Main web the Main web version will be used instead. So if you tailor the user topic format or the form then you should always copy the two files to the Main web and modify the ones in the Main web. When you later upgrade TWiki your tailored template and form will not be overwritten.
TWikiUsers no longer distributedTheMain.TWikiUsers topic contains all the registered users. It is a topic you do not want to overwrite when you upgrade TWiki.
From 4.2.0 this file is no longer included in the TWiki distribution. When you register the first time TWiki creates the Main.TWikiUsers topic in the Main web if it does not exist already. This means that you can now upgrade TWiki without risk of overwriting the important TWikiUsers topic.
New
A new directory | |||||||
Related Topics: AdminDocumentationCategory, TWiki:TWiki.UpgradingTWiki, TWiki:TWiki.UpgradingTWiki04x00PatchReleases, TWiki:TWiki.InstallingTWiki#OtherPlatforms, TWiki:TWiki.ApacheConfigGenerator, TWiki:TWiki.SettingFileAccessRightsLinuxUnix |
Deleted: | ||||||||
< < | On this page:
| |||||||
Changed: | ||||||||
< < | TWiki Upgrade Guide | |||||||
> > | TWiki Upgrade Guide | |||||||
Changed: | ||||||||
< < | Upgrade from the previous TWiki 01-Sep-2004 Production Release to TWiki-4.X | |||||||
> > | This guide covers upgrading from a previous version of TWiki (such as Cairo or TWiki4.0) to TWiki 4.1_ | |||||||
Added: | ||||||||
> > |
On this page:
| |||||||
OverviewTWiki-4.0.0 was a major new release. TWiki-4.1.0 is a minor release without dramatic changes since 4.0.0Upgrade Requirements
Major Changes Compared to TWiki Release 01-Sep-2004 and TWiki Release 4.0.0See TWikiReleaseNotes04x00 and TWikiReleaseNotes04x01Upgrade ProcedureThe following steps are a rough guide to upgrading only. It is impossible to give detailed instructions, as what you have to do may depend on whether you can configure the webserver or not, and how much you have changed distributed files in your current TWiki release. The main steps are:
Installation
Install Extensions
Copy your old webs to new TWiki
Copy Users And Their Topics From Main Web
Apply Customizations To The Skin
Apply Preferences From Old Installation
Upgrading from Cairo to TWiki4 (additional advice)FaviconTWiki4's PatternSkin introduces the use of the favicon feature which most browsers use to show a small icon in front of the URL and for bookmarks. In TWiki4 it is assumed that each web has a favicon.ico file attached to the WebPreferences topic. When you upgrade from Cairo to TWiki4 you do not have this file and you will get flooded with errors the error log of your web server. There are two solutions to this.
* Set FAVICON = %PUBURLPATH%/%TWIKIWEB%/%WEBPREFSTOPIC%/favicon.ico TWikiUsers topic in Main webYour Cairo Main.TWikiUsers topic will work in TWiki4 but you will need to ensure that these 4 users from the default TWiki4 version of TWikiUsers are copied to the existing TWikiUsers topic. TWikiGuest is probably already there but the others are new
Set ALLOWTOPICCHANGE = TWikiAdminGroup, TWikiRegistrationAgent . Otherwise people will not be able to register.
Important Changes since 4.0.5Supported Perl versionTWiki 4.0.5 worked on Perl version 5.6.X. Reports from users has shown that unfortunately TWiki 4.1.0 does not support Perl versions older then 5.8.0. It is the goal that TWiki should work on at least Perl version 5.6.X but none of the developers have had access to Perl installations older than 5.8.0. Since TWiki 4.1.0 has some urgent bugs the development team decided to release TWiki 4.1.1 without resolving the issue with Perl 5.6.X. We will however address this and try and resolve it for a planned 4.1.2 release. The TWiki community is very interested in contributions from users that have fixes for the code which will enable TWiki to run on older versions of Perl. See the WhatVersionsOfPerlAreSupported topic to keep up to date with the discussion how to get back support for earlier Perl versions.Template spec changedUntil TWiki 4.0.5 TWikiTemplates the text inside template definition blocks (anything between %TMPL:DEF{"block"}% and %TMPL:END% was stripped of leading and trailing white space incl new lines. This caused a lot of problems for skin developers when you wanted a newline before or after the block text. From TWiki 4.1.0 this has changed so that white space is no longer stripped. Skins like PatternSkin and NatSkin have been updated so that they work with the new behavior. But if you use an older skin or have written your own you will most likely need to make some adjustments. It is not difficult. The general rule is - if you get mysterious blank lines in your skin, the newline after the %TMPL:DEF{"block"}% needs to be removed. Ie. the content of the block must follow on the same line as the TMPL:DEF. The spec change have the same impact on CommentPlugin templates where you may have to remove the first line break after the TMPL:DEF. See the CommentPluginTemplate for examples of how comment template definitions should look like in TWiki-4.1.X An example: A CommentPlugin template that adds a comment as appending a row to a table. Before the spec change this would work.<verbatim> %TMPL:DEF{OUTPUT:tabletest}%%POS:BEFORE% |%URLPARAM{"comment"}%| -- %WIKIUSERNAME% - %DATE% | %TMPL:END% </verbatim>From Twiki 4.1.0 the old template definition will add an empty line before the new table row. To fix it simply remove the new line before the table. <verbatim> %TMPL:DEF{OUTPUT:tabletest}%%POS:BEFORE%|%URLPARAM{"comment"}%| -- %WIKIUSERNAME% - %DATE% | %TMPL:END% </verbatim>The advantage of the spec change is that now you can add leading and trailing white space including new lines. This was not possible before. Important Changes since 4.1.0New location for session filesAn upgrader upgrading to 4.1.1 should note the following important change The directory for passthrough files and session files have been replaced by a common directory for temporary files used by TWiki. Previously the two configure settings{PassthroughDir} and {Sessions}{Dir} were by default set to /tmp . These config settings have been replaced by {TempfileDir} with the default setting value /tmp/twiki . If the twiki directory does not exist twiki will create it first time it needs it.
It is highly recommended no longer to use the tmp directory common to other web applications and the new default will work fine for most. You may want to delete all the old session files in /tmp after the upgrade to 4.1.1. They all start with cgisess_. It is additionally highly recommended to limit write access to the {TempfileDir} for security reasons if you have non-admin users with login access to the webserver just like you would do with the other webserver directories.
Related Topics: AdminDocumentationCategory, TWiki:TWiki.UpgradingTWiki, TWiki:TWiki.UpgradingTWiki04x00PatchReleases, TWiki:TWiki.InstallingTWiki#OtherPlatforms, TWiki:TWiki.ApacheConfigGenerator, TWiki:TWiki.SettingFileAccessRightsLinuxUnix |
On this page:
TWiki Upgrade GuideUpgrade from the previous TWiki 01-Sep-2004 Production Release to TWiki-4.XOverviewTWiki-4.0.0 was a major new release. TWiki-4.1.0 is a minor release without dramatic changes since 4.0.0Upgrade Requirements
Major Changes Compared to TWiki Release 01-Sep-2004 and TWiki Release 4.0.0See TWikiReleaseNotes04x00 and TWikiReleaseNotes04x01Upgrade ProcedureThe following steps are a rough guide to upgrading only. It is impossible to give detailed instructions, as what you have to do may depend on whether you can configure the webserver or not, and how much you have changed distributed files in your current TWiki release. The main steps are:
Installation
Install Extensions
Copy your old webs to new TWiki
Copy Users And Their Topics From Main Web
Apply Customizations To The Skin
Apply Preferences From Old Installation
Upgrading from Cairo to TWiki4 (additional advice)FaviconTWiki4's PatternSkin introduces the use of the favicon feature which most browsers use to show a small icon in front of the URL and for bookmarks. In TWiki4 it is assumed that each web has a favicon.ico file attached to the WebPreferences topic. When you upgrade from Cairo to TWiki4 you do not have this file and you will get flooded with errors the error log of your web server. There are two solutions to this.
* Set FAVICON = %PUBURLPATH%/%TWIKIWEB%/%WEBPREFSTOPIC%/favicon.ico TWikiUsers topic in Main webYour Cairo Main.TWikiUsers topic will work in TWiki4 but you will need to ensure that these 4 users from the default TWiki4 version of TWikiUsers are copied to the existing TWikiUsers topic. TWikiGuest is probably already there but the others are new
Set ALLOWTOPICCHANGE = TWikiAdminGroup, TWikiRegistrationAgent . Otherwise people will not be able to register. | ||||||||
Added: | ||||||||
> > | Important Changes since 4.0.5Supported Perl versionTWiki 4.0.5 worked on Perl version 5.6.X. Reports from users has shown that unfortunately TWiki 4.1.0 does not support Perl versions older then 5.8.0. It is the goal that TWiki should work on at least Perl version 5.6.X but none of the developers have had access to Perl installations older than 5.8.0. Since TWiki 4.1.0 has some urgent bugs the development team decided to release TWiki 4.1.1 without resolving the issue with Perl 5.6.X. We will however address this and try and resolve it for a planned 4.1.2 release. The TWiki community is very interested in contributions from users that have fixes for the code which will enable TWiki to run on older versions of Perl. See the WhatVersionsOfPerlAreSupported topic to keep up to date with the discussion how to get back support for earlier Perl versions.Template spec changedUntil TWiki 4.0.5 TWikiTemplates the text inside template definition blocks (anything between %TMPL:DEF{"block"}% and %TMPL:END% was stripped of leading and trailing white space incl new lines. This caused a lot of problems for skin developers when you wanted a newline before or after the block text. From TWiki 4.1.0 this has changed so that white space is no longer stripped. Skins like PatternSkin and NatSkin have been updated so that they work with the new behavior. But if you use an older skin or have written your own you will most likely need to make some adjustments. It is not difficult. The general rule is - if you get mysterious blank lines in your skin, the newline after the %TMPL:DEF{"block"}% needs to be removed. Ie. the content of the block must follow on the same line as the TMPL:DEF. The spec change have the same impact on CommentPlugin templates where you may have to remove the first line break after the TMPL:DEF. See the CommentPluginTemplate for examples of how comment template definitions should look like in TWiki-4.1.X An example: A CommentPlugin template that adds a comment as appending a row to a table. Before the spec change this would work.<verbatim> %TMPL:DEF{OUTPUT:tabletest}%%POS:BEFORE% |%URLPARAM{"comment"}%| -- %WIKIUSERNAME% - %DATE% | %TMPL:END% </verbatim>From Twiki 4.1.0 the old template definition will add an empty line before the new table row. To fix it simply remove the new line before the table. <verbatim> %TMPL:DEF{OUTPUT:tabletest}%%POS:BEFORE%|%URLPARAM{"comment"}%| -- %WIKIUSERNAME% - %DATE% | %TMPL:END% </verbatim>The advantage of the spec change is that now you can add leading and trailing white space including new lines. This was not possible before. Important Changes since 4.1.0New location for session filesAn upgrader upgrading to 4.1.1 should note the following important change The directory for passthrough files and session files have been replaced by a common directory for temporary files used by TWiki. Previously the two configure settings{PassthroughDir} and {Sessions}{Dir} were by default set to /tmp . These config settings have been replaced by {TempfileDir} with the default setting value /tmp/twiki . If the twiki directory does not exist twiki will create it first time it needs it.
It is highly recommended no longer to use the tmp directory common to other web applications and the new default will work fine for most. You may want to delete all the old session files in /tmp after the upgrade to 4.1.1. They all start with cgisess_. It is additionally highly recommended to limit write access to the {TempfileDir} for security reasons if you have non-admin users with login access to the webserver just like you would do with the other webserver directories. | |||||||
Related Topics: AdminDocumentationCategory, TWiki:TWiki.UpgradingTWiki, TWiki:TWiki.UpgradingTWiki04x00PatchReleases, TWiki:TWiki.InstallingTWiki#OtherPlatforms, TWiki:TWiki.ApacheConfigGenerator, TWiki:TWiki.SettingFileAccessRightsLinuxUnix | ||||||||
Deleted: | ||||||||
< < | ||||||||
On this page:
TWiki Upgrade Guide | ||||||||
Changed: | ||||||||
< < | Upgrade from the previous TWiki 01-Sep-2004 Prodcution Release to TWiki-4.0.0 | |||||||
> > | Upgrade from the previous TWiki 01-Sep-2004 Production Release to TWiki-4.X | |||||||
Overview | ||||||||
Changed: | ||||||||
< < | TWiki-4.0.0 is a major new release. You can chose between an automated upgrade using a script or a manual update. | |||||||
> > | TWiki-4.0.0 was a major new release. TWiki-4.1.0 is a minor release without dramatic changes since 4.0.0 | |||||||
Upgrade Requirements
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Changed: | ||||||||
< < | Major Changes Compared to TWiki Release 01-Sep-2004 | |||||||
> > | Major Changes Compared to TWiki Release 01-Sep-2004 and TWiki Release 4.0.0 | |||||||
Changed: | ||||||||
< < | See TWikiReleaseNotes04x00. | |||||||
> > | See TWikiReleaseNotes04x00 and TWikiReleaseNotes04x01 | |||||||
Deleted: | ||||||||
< < | Automated Upgrade Procedure | |||||||
Changed: | ||||||||
< < | If you would prefer to do things manually, or if you made custom modifications to distributed files (except topics), then skip to the manual upgrade procedure below. | |||||||
> > | ||||||||
Added: | ||||||||
> > | Upgrade Procedure | |||||||
Changed: | ||||||||
< < | The upgrade script is called "UpgradeTwiki" , and is found in the root of the distribution. It can be run by any user, though you will need to make sure you correct the permissions so that the webserver user can write all files in the new installation when you have finished. The upgrade script does not write to your existing installation. | |||||||
> > | The following steps are a rough guide to upgrading only. It is impossible to give detailed instructions, as what you have to do may depend on whether you can configure the webserver or not, and how much you have changed distributed files in your current TWiki release. | |||||||
Changed: | ||||||||
< < | The upgrade script will upgrade the TWiki core only. Plugins will need to be upgraded separately. | |||||||
> > | The main steps are: | |||||||
Changed: | ||||||||
< < | Note: To upgrade from a Beta, do not use UpgradeTWiki. Instead follow the steps outlined in Upgrading a Beta, below. | |||||||
> > |
| |||||||
Added: | ||||||||
> > |
Installation | |||||||
Changed: | ||||||||
< < | It will: | |||||||
> > |
| |||||||
Added: | ||||||||
> > |
| |||||||
Changed: | ||||||||
< < |
| |||||||
> > | Install Extensions | |||||||
Deleted: | ||||||||
< < |
| |||||||
Changed: | ||||||||
< < | To perform the upgrade, you need to: | |||||||
> > |
| |||||||
Added: | ||||||||
> > |
| |||||||
Changed: | ||||||||
< < |
| |||||||
> > | Copy your old webs to new TWiki | |||||||
Deleted: | ||||||||
< < |
| |||||||
Changed: | ||||||||
< < | Assuming all goes well, UpgradeTwiki will give you the final instructions. | |||||||
> > |
| |||||||
Added: | ||||||||
> > |
Copy Users And Their Topics From Main Web | |||||||
Changed: | ||||||||
< < | Visit TWiki:Codev.KnownIssuesOfTWiki04x00x00 and fix known issues that apply to you. | |||||||
> > |
| |||||||
Added: | ||||||||
> > |
| |||||||
Changed: | ||||||||
< < | There are a few points worth noting: | |||||||
> > | Apply Customizations To The Skin | |||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Added: | ||||||||
> > |
Apply Preferences From Old Installation | |||||||
Added: | ||||||||
> > |
| |||||||
Deleted: | ||||||||
< < |
Manual Upgrade ProcedureThe following steps are a rough guide to upgrading only. It is impossible to give detailed instructions, as what you have to do may depend on whether you can configure the webserver or not, and how much you have changed distributed files in your current TWiki release.
Upgrading a BetaIf you followed the recommendations and avoided modifying any distributed files, then this is quite straightforward:
| |||||||
Upgrading from Cairo to TWiki4 (additional advice)FaviconTWiki4's PatternSkin introduces the use of the favicon feature which most browsers use to show a small icon in front of the URL and for bookmarks. In TWiki4 it is assumed that each web has a favicon.ico file attached to the WebPreferences topic. When you upgrade from Cairo to TWiki4 you do not have this file and you will get flooded with errors the error log of your web server. There are two solutions to this.
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
To change the location of favicon.ico in TWikiPreferences to the TWiki web add this line to TWikiPreferences
* Set FAVICON = %PUBURLPATH%/%TWIKIWEB%/%WEBPREFSTOPIC%/favicon.ico | ||||||||
Added: | ||||||||
> > | TWikiUsers topic in Main webYour Cairo Main.TWikiUsers topic will work in TWiki4 but you will need to ensure that these 4 users from the default TWiki4 version of TWikiUsers are copied to the existing TWikiUsers topic. TWikiGuest is probably already there but the others are new
Set ALLOWTOPICCHANGE = TWikiAdminGroup, TWikiRegistrationAgent . Otherwise people will not be able to register. | |||||||
Changed: | ||||||||
< < | Related Topics: AdminDocumentationCategory, TWiki:TWiki.UpgradingTWiki | |||||||
> > | Related Topics: AdminDocumentationCategory, TWiki:TWiki.UpgradingTWiki, TWiki:TWiki.UpgradingTWiki04x00PatchReleases, TWiki:TWiki.InstallingTWiki#OtherPlatforms, TWiki:TWiki.ApacheConfigGenerator, TWiki:TWiki.SettingFileAccessRightsLinuxUnix | |||||||
On this page:
TWiki Upgrade GuideUpgrade from the previous TWiki 01-Sep-2004 Prodcution Release to TWiki-4.0.0OverviewTWiki-4.0.0 is a major new release. You can chose between an automated upgrade using a script or a manual update.Upgrade Requirements
Major Changes Compared to TWiki Release 01-Sep-2004 | ||||||||
Changed: | ||||||||
< < | See TWikiReleaseNotes04x00x00. | |||||||
> > | See TWikiReleaseNotes04x00. | |||||||
Automated Upgrade ProcedureIf you would prefer to do things manually, or if you made custom modifications to distributed files (except topics), then skip to the manual upgrade procedure below. The upgrade script is called"UpgradeTwiki" , and is found in the root of the distribution. It can be run by any user, though you will need to make sure you correct the permissions so that the webserver user can write all files in the new installation when you have finished. The upgrade script does not write to your existing installation.
The upgrade script will upgrade the TWiki core only. Plugins will need to be upgraded separately.
Note: To upgrade from a Beta, do not use UpgradeTWiki. Instead follow the steps outlined in Upgrading a Beta, below.
It will:
UpgradeTwiki will give you the final instructions.
Visit TWiki:Codev.KnownIssuesOfTWiki04x00x00 and fix known issues that apply to you.
There are a few points worth noting:
Manual Upgrade ProcedureThe following steps are a rough guide to upgrading only. It is impossible to give detailed instructions, as what you have to do may depend on whether you can configure the webserver or not, and how much you have changed distributed files in your current TWiki release.
Upgrading a BetaIf you followed the recommendations and avoided modifying any distributed files, then this is quite straightforward:
| ||||||||
Added: | ||||||||
> > |
Upgrading from Cairo to TWiki4 (additional advice)FaviconTWiki4's PatternSkin introduces the use of the favicon feature which most browsers use to show a small icon in front of the URL and for bookmarks. In TWiki4 it is assumed that each web has a favicon.ico file attached to the WebPreferences topic. When you upgrade from Cairo to TWiki4 you do not have this file and you will get flooded with errors the error log of your web server. There are two solutions to this.
* Set FAVICON = %PUBURLPATH%/%TWIKIWEB%/%WEBPREFSTOPIC%/favicon.ico | |||||||
Related Topics: AdminDocumentationCategory, TWiki:TWiki.UpgradingTWiki |
On this page:
TWiki Upgrade GuideUpgrade from the previous TWiki 01-Sep-2004 Prodcution Release to TWiki-4.0.0OverviewTWiki-4.0.0 is a major new release. You can chose between an automated upgrade using a script or a manual update.Upgrade Requirements | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Major Changes Compared to TWiki Release 01-Sep-2004See TWikiReleaseNotes04x00x00.Automated Upgrade ProcedureIf you would prefer to do things manually, or if you made custom modifications to distributed files (except topics), then skip to the manual upgrade procedure below. The upgrade script is called"UpgradeTwiki" , and is found in the root of the distribution. It can be run by any user, though you will need to make sure you correct the permissions so that the webserver user can write all files in the new installation when you have finished. The upgrade script does not write to your existing installation.
The upgrade script will upgrade the TWiki core only. Plugins will need to be upgraded separately.
Note: To upgrade from a Beta, do not use UpgradeTWiki. Instead follow the steps outlined in Upgrading a Beta, below.
It will: | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
To perform the upgrade, you need to: | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Assuming all goes well, UpgradeTwiki will give you the final instructions.
Visit TWiki:Codev.KnownIssuesOfTWiki04x00x00 and fix known issues that apply to you.
There are a few points worth noting: | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Added: | ||||||||
> > |
| |||||||
Deleted: | ||||||||
< < | If you use it, and would be kind enough to add your experiences to TWiki:Codev.UpgradeTWiki, it would be much appreciated. The report of your experience will help to make UpgradeTwiki more robust. | |||||||
Manual Upgrade ProcedureThe following steps are a rough guide to upgrading only. It is impossible to give detailed instructions, as what you have to do may depend on whether you can configure the webserver or not, and how much you have changed distributed files in your current TWiki release. | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Added: | ||||||||
> > |
| |||||||
You are highly recommended not to change any distributed files if you can avoid it, to simplify future upgrades!
Upgrading a BetaIf you followed the recommendations and avoided modifying any distributed files, then this is quite straightforward: | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Added: | ||||||||
> > |
| |||||||
If you changed any of the distributed files, you will have to continue from Step 5 above. Related Topics: AdminDocumentationCategory, TWiki:TWiki.UpgradingTWiki |
On this page:
TWiki Upgrade Guide | ||||||||
Changed: | ||||||||
< < | Upgrade from the previous TWiki 01-Feb-2003 production release to TWiki 01-Sep-2004 | |||||||
> > | Upgrade from the previous TWiki 01-Sep-2004 Prodcution Release to TWiki-4.0.0 | |||||||
Overview | ||||||||
Changed: | ||||||||
< < | This guide describes how to upgrade from TWiki 01-Feb-2003 to TWiki 01-Sep-2004. This is a major new release. You can chose between an automated upgrade using a script or a manual update. | |||||||
> > | TWiki-4.0.0 is a major new release. You can chose between an automated upgrade using a script or a manual update. | |||||||
Upgrade Requirements
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Added: | ||||||||
> > |
| |||||||
Changed: | ||||||||
< < | Major Changes Compared to TWiki 01-Feb-2003 | |||||||
> > | Major Changes Compared to TWiki Release 01-Sep-2004 | |||||||
Changed: | ||||||||
< < |
| |||||||
> > | See TWikiReleaseNotes04x00x00. | |||||||
Deleted: | ||||||||
< < |
| |||||||
Added: | ||||||||
> > | Automated Upgrade Procedure | |||||||
Changed: | ||||||||
< < | Automated Upgrade Procedure from 01-Feb-2003 to 01-Sep-2004 Release | |||||||
> > | If you would prefer to do things manually, or if you made custom modifications to distributed files (except topics), then skip to the manual upgrade procedure below. | |||||||
Changed: | ||||||||
< < | With the 01-Sep-2004 Release, for the first time, comes a helper script for upgrading from a previous version. This feature is currently at beta stage, it has only been sanity tested under Unix. It should be worth giving it a try, it won't mess up your existing | |||||||
> > | The upgrade script is called "UpgradeTwiki" , and is found in the root of the distribution. It can be run by any user, though you will need to make sure you correct the permissions so that the webserver user can write all files in the new installation when you have finished. The upgrade script does not write to your existing installation. | |||||||
Deleted: | ||||||||
< < | TWiki installation because it leaves that untouched. | |||||||
Changed: | ||||||||
< < | If you would prefer to do things manually than trust a beta script, skip to the manual upgrade procedure below. | |||||||
> > | The upgrade script will upgrade the TWiki core only. Plugins will need to be upgraded separately. | |||||||
Changed: | ||||||||
< < | The upgrade script is called "UpgradeTwiki" , and is found in the root of the distribution. | |||||||
> > | Note: To upgrade from a Beta, do not use UpgradeTWiki. Instead follow the steps outlined in Upgrading a Beta, below. | |||||||
It will:
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < | ./UpgradeTwiki <full path to new_twiki> | |||||||
> > | ./UpgradeTwiki <full path to existing_twiki's setlib.cfg> <full path to new_twiki> | |||||||
Added: | ||||||||
> > |
| |||||||
Assuming all goes well, UpgradeTwiki will give you the final instructions. | ||||||||
Added: | ||||||||
> > | Visit TWiki:Codev.KnownIssuesOfTWiki04x00x00 and fix known issues that apply to you. | |||||||
There are a few points worth noting:
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Deleted: | ||||||||
< < |
| |||||||
Changed: | ||||||||
< < | If you use it, and would be kind enough to add your experiences to TWiki:Codev.UpgradeTwiki, it would be much appreciated. The report of your experience will help to make UpgradeTwiki more robust. | |||||||
> > | If you use it, and would be kind enough to add your experiences to TWiki:Codev.UpgradeTWiki, it would be much appreciated. The report of your experience will help to make UpgradeTwiki more robust. | |||||||
Changed: | ||||||||
< < | Manual Upgrade Procedure from 01-Feb-2003 to 01-Sep-2004 Release | |||||||
> > | Manual Upgrade Procedure | |||||||
Changed: | ||||||||
< < | The following steps describe the upgrade assuming that $TWIKIROOT is the root of your current 01-Feb-2003 release. As written this will require some downtime. A process for switching over without downtime is described at the end of this section. | |||||||
> > | The following steps are a rough guide to upgrading only. It is impossible to give detailed instructions, as what you have to do may depend on whether you can configure the webserver or not, and how much you have changed distributed files in your current TWiki release. | |||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Deleted: | ||||||||
< < | %TMPL:DEF{"topicaction"}% <input type="submit" class="twikiSubmit" name="action" value="Cancel" id="cancel" /> <input type="submit" class="twikiSubmit" name="action" value="Preview" id="preview" /> <input type="submit" class="twikiSubmit" name="action" value="Checkpoint" id="checkpoint" /> <input type="submit" class="twikiSubmit" name="action" value="QuietSave" id="quietsave" /> <input type="submit" class="twikiSubmit" name="action" value="Save" id="save" />%TMPL:END%
| |||||||
Changed: | ||||||||
< < | Note: These steps assume a downtime during the time of upgrade. You could install the new version in parallel to the existing one and switch over in an instant without affecting the users. As a guideline, install the new version into $TWIKIROOT/bin1 , $TWIKIROOT/lib1 , $TWIKIROOT/templates1 , $TWIKIROOT/data/TWiki1 (from data/TWiki ), $TWIKIROOT/pub/TWiki1 (from pub/TWiki ), and configure TWiki.cfg to point to the same data and pub directory like the existing installation. Once tested and ready to go, reconfigure $TWIKIROOT/bin1/setlib.cfg and $TWIKIROOT/lib1/TWiki.cfg , then rename $TWIKIROOT/bin to $TWIKIROOT/bin2 , $TWIKIROOT/bin1 to $TWIKIROOT/bin . Do the same with the lib , templates and data/TWiki directories. | |||||||
> > | You are highly recommended not to change any distributed files if you can avoid it, to simplify future upgrades! | |||||||
Changed: | ||||||||
< < | Known Issues | |||||||
> > | Upgrading a Beta | |||||||
Added: | ||||||||
> > | If you followed the recommendations and avoided modifying any distributed files, then this is quite straightforward:
| |||||||
Deleted: | ||||||||
< < |
| |||||||
Added: | ||||||||
> > | Related Topics: AdminDocumentationCategory, TWiki:TWiki.UpgradingTWiki | |||||||
On this page:
TWiki Upgrade GuideUpgrade from the previous TWiki 01-Feb-2003 production release to TWiki 01-Sep-2004OverviewThis guide describes how to upgrade from TWiki 01-Feb-2003 to TWiki 01-Sep-2004. This is a major new release. You can chose between an automated upgrade using a script or a manual update.Upgrade Requirements
Major Changes Compared to TWiki 01-Feb-2003
Automated Upgrade Procedure from 01-Feb-2003 to 01-Sep-2004 ReleaseWith the 01-Sep-2004 Release, for the first time, comes a helper script for upgrading from a previous version. This feature is currently at beta stage, it has only been sanity tested under Unix. It should be worth giving it a try, it won't mess up your existing TWiki installation because it leaves that untouched. If you would prefer to do things manually than trust a beta script, skip to the manual upgrade procedure below. The upgrade script is called"UpgradeTwiki" , and is found in the root of the distribution.
It will:
UpgradeTwiki will give you the final instructions.
There are a few points worth noting:
UpgradeTwiki more robust.
Manual Upgrade Procedure from 01-Feb-2003 to 01-Sep-2004 ReleaseThe following steps describe the upgrade assuming that$TWIKIROOT is the root of your current 01-Feb-2003 release. As written this will require some downtime. A process for switching over without downtime is described at the end of this section.
$TWIKIROOT/bin1 , $TWIKIROOT/lib1 , $TWIKIROOT/templates1 , $TWIKIROOT/data/TWiki1 (from data/TWiki ), $TWIKIROOT/pub/TWiki1 (from pub/TWiki ), and configure TWiki.cfg to point to the same data and pub directory like the existing installation. Once tested and ready to go, reconfigure $TWIKIROOT/bin1/setlib.cfg and $TWIKIROOT/lib1/TWiki.cfg , then rename $TWIKIROOT/bin to $TWIKIROOT/bin2 , $TWIKIROOT/bin1 to $TWIKIROOT/bin . Do the same with the lib , templates and data/TWiki directories.
Known Issues
|