What you describe is often caused by a change in PHP 5.4 which affects the function htmlspecialchars().

The easiest temporary fix would be in your php.ini, or in .user.ini to change the default_charset directive to an 8-bit charset, for example cp1252:

  default_charset = "Windows-1252"

Or, this may sometimes work in pmwiki/local/config.php:

  ini_set("default_charset", "Windows-1252");

A more permanent fix would be to upgrade your installation to a more recent PmWiki version, your recipes, and to check if your own recipes or modules use htmlspecialchars() and replace these calls with PHSC(), a PmWiki helper function for such cases.

The "blank" pages come from the fact that in PHP 5.4 the default encoding switched from an 8-bit encoding to variable-bit validated UTF-8, and that an incorrect UTF-8 string will be rejected. If your wiki uses an 8-bit encoding, it is virtually certain that it is not valid UTF-8. Worse, even if you do use UTF-8 some browsers may submit invalid bits. So the PHSC() function always pretends that it converts an 8-bit encoding where all bits are allowed.

Petko

---
Change log     :  http://www.pmwiki.org/wiki/PmWiki/ChangeLog
Release notes  :  http://www.pmwiki.org/wiki/PmWiki/ReleaseNotes
If you upgrade :  http://www.pmwiki.org/wiki/PmWiki/Upgrades


On 2016-05-17 23:04, Reiner Bühl wrote:
I have upgraded my system from Debian Squeeze to Wheezy and now I
can't see the content of my pmwiki anymore. The files in wiki.d are
still there and also some links on the sidebar are shown, but in the
main area of the page, I only see the title of the Homepage but no
page content.
I assume that the upgrade did something to the apache2 php.ini, but I
am not sure what is missing or wrong there. In the apache error log I
couldn't see any error messages.
Where should I start searching?

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to