![]() |
|
US-ASCII not supported - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: US-ASCII not supported (/thread-12412.html) |
US-ASCII not supported - rtwingfield - 2016-01-13 I'm recovering from a very serious break in the ZenPhoto system following a major OS upgrade(FreeBSD v10.1 to v10.2); MySQL upgrade from 5.6 to 5.7.10; and PHP to v.5.6.16. Something in the upgrades wiped out most of my *.php scripts; however, I've been able to recover from my inventory of manual backups, etc. I did mysteriously loose several but not all album contents (fortunately backed up). I finally decided to run a restore database from about a year old version and now I cannot even get past the login prompt . . .see the following: Quote:Notice: unserialize(): Error at offset 0 of 38 bytes in /usr/local/www/zenphoto/zp-core/setup/index.php on line 431 Zenphoto Setup Warning: htmlspecialchars(): charset 308 } ` function html_encode($this_string) {
` Quote:str=...11-US-ASCIIWarning: htmlspecialchars(): charset `US-ASCII' not supported, assuming utf-8 in /usr/local/www/zenphoto/zp-core/functions-common.php on line 308 Where in the code (or setup table, etc.) is the character set specified? US-ASCII not supported - acrylian - 2016-01-14 Nothing to repair, "US-ASCII" is not the actual name of an encoding and not supported by the PHP function therefore: ISO 8859-1 would probably be the one to use. But utf-8 should actually cover everything and is the default that should be used nowadays and is also the default Zenphoto sets generally. US-ASCII not supported - rtwingfield - 2016-01-14 Thanks for the reply. Unfortunately, I just cannot determine where the I cannot logon and rerun the setup per displayed message, "You must be logged in to run setup." BTW, I've added a temporary line of code to display the function arguments in /www/zenphoto/zp-core/functions-common.php
The result is the following display in the User field of the User/Password form: Quote:str=, 11, US-ASCII -- Warning: htmlspecialchars(): charset `US-ASCII' not supported, assuming utf-8 in /usr/local/www/zenphoto/zp-core/functions-common.php on line 308 Seems that somewhere? . . .I should be able manually edit something to change a value from [b]US-ASCII[/b] back to [b]utf-8[/b]. Also as an afterthought, I find occasional commented code, Thanks again for any suggestions. US-ASCII not supported - acrylian - 2016-01-14 Zenphoto has an option for the charset that defines the US-ASCII not supported - rtwingfield - 2016-01-14 stand by Found the following: ` filesystem_charset US-ASCII Found Problem re: US-ASCII not supported - rtwingfield - 2016-01-14 . . .error msg. display at top of page is: Quote:Notice: unserialize(): Error at offset 0 of 38 bytes in /usr/local/www/zenphoto/zp-core/setup/index.php on line 430 `428 $taskDisplay = array('create' => gettext("create"), 'update' => gettext("update")); 429 if ($i = getOption('zenphoto_install')) { 430 $install = unserialize($i); 431 $prevRel = $install['ZENPHOTO']; 432 } else { 433 $prevRel = ''; 434 }` US-ASCII not supported - acrylian - 2016-01-14 Probably you need to delete the adminstrators table and re-start fresh by creating a new user account. Maybe because of your update trouble and the encoding the password hash doesn't match anymore. Just a quick guess off hand but if it is so that is your only chance. US-ASCII not supported - rtwingfield - 2016-01-15 I have decided to install fresh Zenphoto-1.4.11 . . .too much broken in old install. I've save and removed the production MySQL tables, configuration files, etc., from the ZenPhoto environment and started from "scratch." I downloaded Started the installation, all seemed to go as advertised until the install system prompted for a database user and password. I assumed this meant the MySQL db user, so I provided the userid and password for the same. Some processing transpired and now the system tosses me into a prompt panel (form) that instructs that What to do? US-ASCII not supported - acrylian - 2016-01-15 Quote: (don't understand why it arrived named as a hyphenated "zenphoto-zenphoto" object Are you sure you really deleted all tables? Maybe delete the whole database and re-create it. If Zenphoto request to login there is already at least a administrators table present. Otherwise it should directly run setup as a fresh install naturally doesn't have anything to login. Note that deleting the tables will cause any data entered to albums, images manually to be lost naturally. US-ASCII not supported - rtwingfield - 2016-01-15 Thanks for the quick reply. No problem with GitHub's idiosyncrasy. Yes, all MySQL db tables are "out of the picture" Quote:root@bravo:/var/db/mysql/ZenPhoto # ls -lsa I'm not clear on the purpose of the FYI, the instructions from the documentation that I'm following are: Quote:3. Create a MySQL database. (Technically Zenphoto can do that but virtually no host allows this!)
US-ASCII not supported - acrylian - 2016-01-16 The db.opt file is nothing Zenphoto related. Setup will create the tables in the database noted either when setup asks with a form or if you already set them in the config file. After you hit "Go" to be exact. |