View source for 5.4 Release Notes

===R5.4==
(12.07.2014) ((Commit:3679c8e51cc52770361678d93dc2b4148471acae 3679c8e)) -> M3 ++(((/Dev/Release/R5.4/ChangeLog Change Log)))++

{{toc numerate=1}}

This is a minor release.
In addition to miscellaneous fixes the 5.4 release serves mainly one purposes:  PHP 5.4 - 5.6 compatibility.

For major changes please read the ((/Dev/Release/R5.0/ReleaseNotes Release Notes of R5.0)).

Notable in this release:
  * complete PHP 5.4 - 5.6 compatibility 
  * Removed legacy MySQL extension.  Instead, use the MySQLi or PDO_MySQL extensions.
  * Fixed a number of localization issues
  * Fixed: ((bugs:405 toc action does not recognize include page structure))
  * minor fixes

milestones
  * final - 17.04.14
  * maintenance3 – 12.07.14

====Download==
**((https://downloads.sourceforge.net/wackowiki/legacy/wacko.r5.4.3.zip wacko.r5.4.3.zip))**
  * SHA1: f772e1ff54727d5f17664edd07d44f6f92bdf7a9 
  * File updated to change set 3679c8e51cc52770361678d93dc2b4148471acae


Repo files
  * **((https://bitbucket.org/wackowiki/wackowiki/get/5.4.3.zip R5.4.3 (zip) ))**
  * **((https://bitbucket.org/wackowiki/wackowiki/get/5.4.3.tar.gz R5.4.3 (tar.gz) ))**

Clone repo
%%git clone -b 5.4.3 https://bitbucket.org/wackowiki/wackowiki.git%%

====Translations==
  * Call for Localization
    * If you can help with languages other than English and German, it would be appreciated.

====Upgrade path==
R4.x -> R5.0 (requires PHP >= 5.2)
R5.x -> R5.4 (requires **PHP >= 5.4**)

Please read the **((/Dev/Release/R5.4/Upgrade upgrade notices))** carefully.

=====Upgrade from R5.4.0==
If you want upgrade from R5.4.0 to R5.4.3 then just copy the new files over the old ones __except__:
folders ##cache/##, ##config/##, ##files/##, ##lib/captcha/## and
files ##.htaccess##, ##robots.txt##

WackoWiki will still report themselves as R5.4.0 because this is a maintenance release.

====Installation==

=====Requirements=====
requires now
  * PHP 5.4 - 5.6 (PHP 5.5 recommended)
  * Apache >= 2.0
  * SQL database system, one of:
    * MariaDB >= 5.5 (MariaDB 10 recommended)
    * MySQL >= 5.5 (MySQL 5.6 recommended)

Step by step as **((/Doc/English/Installation/Screenshots Installer Screenshots))**.

**Data base configuration**: If the installer asks you for charset, select the appropriate character set, e.g. [cp1252 Western European] for Latin 1.

=====File Permissions=====
Change the permissions on the following directories to be writable
##touch config/config.php##
##chmod 666 config/config.php##

Example: ##chmod 0755 xml files/global files/perpage sitemap.xml _cache/config/ _cache/queries/ _cache/pages/ _cache/feeds/##

##chmod 644 config/config.php##

=====RewriteBase==
If your webserver's URLs are not directly related to physical file paths, you will need to use ((https://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase RewriteBase)) in every .htaccess file where you want to use RewriteRule directives. 
%%
RewriteBase /
%%
%%
RewriteBase /folder/
%%

e.g. .htaccess
%%
<IfModule mod_rewrite.c>
 RewriteEngine on
 
 RewriteBase /doc/
 
 RewriteCond    %{REQUEST_FILENAME}  -d
 RewriteRule ^(.*/[^\./]*[^/])$ $1/
 RewriteRule ^admin\.php$ admin.php [L]
 RewriteRule ^(robots\.txt)$ robots.txt [L]
 RewriteRule ^(sitemap\.xml)$ sitemap.xml [L]
 RewriteRule ^(favicon\.ico)$ favicon.ico [L]
 RewriteRule ^(.*)$ index.php?page=$1 [QSA,L]

</IfModule>
%%

=====SQL Mode==
If you work on a home-brew stack using MySQL 5.6 or 5.7, please check your sql_mode settings.
((https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html MySQL switched the SQL-Mode to 'strict' as default since 5.6)) and all versions of WackoWiki prior to 5.5 will fail with SQL-Mode 'strict' on. So you must turn it off. We working on a patch.

%%
SELECT @@GLOBAL.sql_mode, @@SESSION.sql_mode;
%%

Disable: NO_ZERO_DATE, ONLY_FULL_GROUP_BY, STRICT_TRANS_TABLES, STRICT_ALL_TABLES, TRADITIONAL.

**my.cnf**
%%
# The MySQL server
[mysqld]
sql_mode = NO_ENGINE_SUBSTITUTION,NO_AUTO_CREATE_USER
%%

=====new config settings==
primary config
  1. 'database_charset' => '[latin1|cp1251|...]',

constants
  1. HTML_ENTITIES_CHARSET

=====path to user profile=====
To guide the link to the users page or profile ##""((user:UserName UserName))""## set in **config/interwiki.conf** the right path, 
if your Wiki does not resides in root don't forget to add the folders.

#|
*|mode_rewrite on |mode_rewrite off  |*
|| ##user /Users?profile=## | ##user /?page=Users&profile=## ||
|| ##user /folder_test/wacko/Users?profile=## | ##user /folder_test/wacko/?page=Users&profile=## ||
|#

====Backwards Compatibility==
We dropped compatibility code for older PHP and MySQL versions. R5.4 and later requires at least PHP 5.4 and MySQL 5.5. To use with older PHP or MySQL versions, use the older (but still maintained) branch of 5.1.x releases, which you can find on the ((/Download download page)). 

====Hacks / Patches==
  1. ((/Dev/PatchesHacks/Gallery gallery action))

====Known Issues==
All known issues are tracked in our ((http://wackowiki.sourceforge.net/bugs/ Bug Tracker.))
  1. To use Captcha, you must ensure that the session settings in **freecap.php** do not differ from the default values or your config settings, else Captcha can't pass its values to the session. In the following link you find a workaround:
    * ((/Dev/Release/R5.0/CaptchaAndSession Fixing Captcha And Session))
  1. ""@@[local]"" in intra link may break the Formatter in combination with the toc action  
    * e.g. ##""((../Русский/WackoÑèíòàêñèñ Ðóññêèé @@ru))""##
  1. **activate** the option ##multilanguage## in the installer / secondary config to avoid the following issues:
    3.  chars from another charset are not converted to HTML unicode entities
  5. ##multilanguage## on: a user with a different but available browser default language can't access the default pages including login via the available theme because the Wacko engine will load this language and the related pages defined there are however possibly not applied / deleted or moved -> Solution: Restore / create the missing default pages for this language 


====Documentation==
  * URL: https://wackowiki.org
  * Bug Tracker https://wackowiki.org/bugs/
  * Repository ##~https://github.com/WackoWiki/wackowiki.git##
  * Documentation https://wackowiki.org/doc/

====Credits==
  * varaha -- patches ((bugs:425 #425)), ((bugs:426 #426)), ((bugs:422 #422)), ((bugs:430 #430))
  * ((user:TriS TriS)) -- patches ((bugs:432 #432))
  * Vyacheslav Belkin -- patches ((bugs:405 #405))
  * ((user:Raysir Raysir)) -- patches ((bugs:445 #445)), ((bugs:446 #446))