.





About this Site - Sitemap



UTOPIE

----1400----

VORLÄUFER

----1890----

LEBENSREFORM

BOHEME

  • in München
----1918----

RÄTEREPUBLIK

  • in München

ARBEITERTHEATER 1880-1930s

WEIMARER REPUBLIK

  • braunes München
  • Berlin
  • Moskau - Paris - New York
----1955----

1960 - 1970 - 1980

----1989----

HEUTE



























edit this sidebar



Recent Changes Printable View Page History Upload File Edit Page

PmWiki is designed to make it easy to upgrade the Pm Wiki software without affecting your existing data files or installation. For most upgrades, you simply copy the files in the new release over your existing installation.

Note for Pm Wiki 1.0 sites: Upgrading from 1.0.x to 2.0 requires more than simply copying the 2.0 software over the 1.0 installation. See Upgrading From PmWiki 1 for more details.

Note: this page may have a more recent version, see PmWiki:Upgrades.

Generic instructions

1. Read the release notes

Please read carefully the ReleaseNotes before performing an upgrade, about the changes between your previous version and the new one. See if there are any significant changes or preparation tasks that must be handled before performing the upgrade.

2. Backup

It's always a good idea to have a backup copy of your existing Pm Wiki installation before starting. You can copy the entire directory containing your existing installation, or you can just make copies of the wiki.d/ directory and any other local customization files you may have created (e.g., config.php, localmap.txt, etc.).

3. Download and extract

Download the version of Pm Wiki that you want from the download page.

Extract the tar image using tar -xvzf tgzfile, where tgzfile is the tar file you downloaded above. This will create a pmwiki-x.y.z directory with the new version of the software.

4. Copy

Copy the files in pmwiki-x.y.z over the files of your existing Pm Wiki installation. For example, if your existing Pm Wiki installation is in a directory called pmwiki, then one way to copy the new files over the existing ones is to enter the command:

cp -a pmwiki-x.y.z/. pmwiki

Note that BSD systems will not have the -a option as a command-line argument for cp, but that's okay, since it's just shorthand for cp -dpR, so use that instead of -a.

Some environments have an alias established for cp that enable interactive prompts before overwriting a file. To work around this specify the absolute path to cp, such as /bin/cp.

On (some) FreeBSD servers and Mac OS X systems you need to use

cp -Rpv pmwiki-x.y.z/. pmwiki

5. Update customisations and recipes

That's it! Your base Pm Wiki installation is complete.

Now use the PmWiki:Site Analyzer to determine which recipes could be updated to the most recent version.

Unless you have made customizations to the pmwiki.php script or to the files in scripts/, your Pm Wiki installation should continue to run correctly! (Changes to these files are not recommended).

(Local customizations should go in local/config.php, pub/css, and pub/skins/yourskinname)

Note: Additional tips can be found on the PmWiki:Troubleshooting page.

Upgrading from version 2.1.27 to 2.2.0

Between the stable versions 2.1.27 and 2.2.0 there are a number of additions. Some of them may need changes to local config files or to wiki pages, and they are outlined here. For the full list of changes see the release notes.

If you are upgrading from a 2.2.beta version, your wiki may already include these features.

  • Some pages that were formerly in the Site.* group are now in a separate read-protected SiteAdmin.* group: Site.Auth User, Site.Auth List?, Site.Notify List?, Site.Blocklist, and Site.Approved Urls?. If upgrading from an earlier version, Pm Wiki will prompt to automatically copy these pages to their new location if needed. If a site wishes to continue using the old Site.* group for these pages, simply set to config.php $SiteAdminGroup = $SiteGroup;
  • To authorize reading or editing in protected areas, the former password "nopass" should now be written as "@nopass".
  • WikiWords are now disabled by default. To re-enable them, set either $LinkWikiWords or $EnableWikiWords to 1.
  • The $ROSPatterns variable has changed -- replacement strings are no longer passed through Fmt Page Name() i.e., it must now be done explicitly.
  • Page links inside included pages, sidebars, headers or footers are now treated as relative to the page where they are written, instead of the page where they appear. For example, in Site.Side Bar, always set the group in a wikilink like [[Main/HomePage]] or with a page variable [[{*$Group}/HomePage]], because a link [[HomePage]] will point to a page Site.Home Page?.
  • PageLists
    • Spaces no longer separate wildcard patterns -- use commas.
    • {$PageCount}, {$GroupCount}, {$GroupPageCount} variables used in pagelist templates are now {$$PageCount}, {$$GroupCount}, {$$GroupPageCount}.
    • The directive no longer accepts parameters from urls by default. In order to have it accept such parameters (which was the default in 2.1 and earlier), add a request=1 option to the (:pagelist:) directive.
  • Skin templates are now required to have <!--HTML Header?--> and <!--HTML Footer?--> directives.
  • Authentication using Active Directory is now simplified, see PmWiki.AuthUser.

Upgrading from version 2.2.0 to 2.2.145

Note: this page may have a more recent version, see PmWiki:Upgrades.

Some additions since version 2.2.0 may need changes to local config files or to wiki pages, and they are outlined here. For the full list of changes see release notes and change log.

  • Version 2.2.10: $EnableRelativePageVars was changed to enabled by default, and it affects PageVariables from included pages, sidebars, headers and footers.
  • Version 2.2.35: Important change for international wikis: the XL Page?() function no longer loads encoding scripts such as xlpage-utf-8.php. When you upgrade, you need to include those scripts from config.php, before the call to XL Page?():
      include_once("scripts/xlpage-utf-8.php"); # if your wiki uses UTF-8
      XLPage('bg','PmWikiBg.XLPage');
    

Upgrading from version 2.2.145 to 2.3.0

Note: this page may have a more recent version, see PmWiki:Upgrades.

Version 2.3.0 requires PHP 5.3 or more recent. The new version includes a number of new features, some of which were previously provided by recipes.

Here are the things to review when upgrading:

  • If you previously used Cookbook:PageListMultiTargets, please disable it when you upgrade. The same functionality is now available in the core.
  • For PHP 8.1, the function strftime() has been deprecated. Pm Wiki 2.3.0 provides a replacement function PSFT(), see PmWiki:Functions#PSFT.
  • The Recent Changes pages now store in the page source the time stamp in a slightly different, and portable international format (easily parsable). When the page is displayed, the new format is automatically converted to the current one ($TimeFmt), so the Recent Changes pages will look exactly like before, but the source code will be slightly different.
    If you have custom $RecentChangesFmt settings, they will be preserved. If you have no custom settings but still prefer the old format, to revert to the old format, add this to config.php:
    # revert to pre-2.3.0 RecentChanges
    $RecentChangesFmt = array(
      '$SiteGroup.AllRecentChanges' => 
        '* [[{$Group}.{$Name}]]  . . . $CurrentTime $[by] $AuthorLink: [=$ChangeSummary=]',
      '$Group.RecentChanges' =>
        '* [[{$Group}/{$Name}]]  . . . $CurrentTime $[by] $AuthorLink: [=$ChangeSummary=]');
    
  • The variable $EnableNotSavedWarning is now enabled by default. Add to config.php $EnableNotSavedWarning = 0; to disable it.
  • The core table of contents function ($PmTOC) has had its styles updated, in order to properly indent long sub-headings. Notably, the TOC links now have a display:block setting and there are no line breaks between them. If you have previously added custom styles for Pm TOC?, please review these in case they need updating.

See also Release Notes for any changes between your previous version and the new one.

If you have any questions or difficulties, please let us know.

Upgrading from version 2.3.0 to more recent versions

2.3.15 GUI Edit Buttons change

Part of these functions were rewritten to avoid 'unsafe inline' Java Script?. While default and most custom buttons should work without change, you should no longer need to url-encode some characters like % or add backslashes. If you have such buttons, you may need to update their declarations to strip the extra backslashes.

FAQ

How can I determine what version of Pm Wiki I'm running now?

See version - Determining and displaying the current version of Pm Wiki (pmwiki-2.3.23).

How can I test a new version of Pm Wiki on my wiki without changing the prior version used by visitors?

The easy way to do this is to install the new version in a separate directory, and for the new version set (in local/config.php):

    $WikiLibDirs = array(&$WikiDir,
      new PageStore('/path/to/existing/wiki.d/{$FullName}'),
      new PageStore('wikilib.d/{$FullName}'));

This lets you test the new version using existing page content without impacting the existing site or risking modification of the pages. (Of course, any recipes or local customizations have to be installed in the new version as well.)

Then, once you're comfortable that the new version seems to work as well as the old, it's safe to upgrade the old version (and one knows of any configuration or page changes that need to be made).


This page may have a more recent version on pmwiki.org: PmWiki:Upgrades, and a talk page: PmWiki:Upgrades-Talk.

Edit Page - Page History - Printable View - Recent Changes - WikiHelp - SearchWiki
Page last modified on November 21, 2022, at 08:08 PM