SymptomsThe following error is shown when edit site in Sitebuilder Wizard:
Internal SiteBuilder error.
File: /usr/local/sitebuilder/include/Base/GUI.php; Line: 99
Message: PHP Warning : DOMDocument::loadXML() [function.DOMDocument-loadXML]: Input is not proper UTF-8, indicate encoding ! Bytes: 0xE1 0x2E 0x6A 0x70 in Entity, line: 2; Code: 2
How to resolve the problem?
CauseNational characters were put to site contact, however they were saved as not UTF-8 symbols in Sitebuilder database.
When site is edited in Sitebuilder Wizard its pages are compiled anew. These not UTF-8 symbols cannot be processed correctly and cause the error.
There are two problems here:
- national characters are saved as not UTF-8 symbols in Sitebuilder database;
- not UTF-8 characters cannot be processed correctly when edit site in Sitebuilder wizard.
Both problems have been fixed in Parallels Plesk Sitebuilder since version 4.2.3. You should upgrade to avoid these problems.
ResolutionHotfix for Parallels Plesk Sitebuilder 4.1 is in the attachment.
The hotfix strips not valid symbols in XML.
To install the hotfix you should download the archive and put it to directory <sb_root>.
Where <sb_root> is Sitebuilder installation directory:
- /usr/local/sitebuilder for RedHat-like operating systems and FreeBSD;
- /opt/sitebuilder/ for Debian and Ubuntu.
~# mv sb41_national_characters.tar.gz <sb_root>
~# cd <sb_root>
~# tar -zxvf sb41_national_characters.tar.gz
Verify and correct ownership and permissions of replaced files. It should be root:root, 644.
You may correct permissions with command chown and chmod:
~# cd <sb_root>
~# chown root:root include/Base/Filter.php \
~# chmod 644 include/Base/Filter.php \