Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Languages & Translations (http://forum.bytesforall.com/forumdisplay.php?f=11)
-   -   Entering Chinese characters into Atahualpa options causes all options to reset (http://forum.bytesforall.com/showthread.php?t=17990)

aeriph Jul 16, 2012 12:20 AM

Entering Chinese characters into Atahualpa options causes all options to reset
 
I tried setting up a date format including Chinese characters in UTF-8. After I hit the save button, all of Atahualpa's options had been reset to default.... Are the options fields not set up to take UTF8 input?

juggledad Jul 16, 2012 04:14 AM

what version of Atahualpa and WP?
What is the url?
Quote:

I tried setting up a date format including Chinese characters in UTF-8.
where did you do this?
what is the exact text you used?

aeriph Jul 17, 2012 10:16 PM

Thanks for your response.

Wordpress 3.4.1, Atahualpa 3.7.7

Well, I've arlready started going back through redesigning it, but the URL is: http://eastasiastudent.net/

I tried to put this as the contents of 'BYLINE: Single Post Pages':

Code:

By %author%, first published %date('Y 年 n 月 j 日')%
After I saved that, all of the Atahualpa settings reset. I did have backups, but unfortunately they turned out not to work when I needed them. Going to use a variety of backup options from now on.

juggledad Jul 18, 2012 04:19 AM

Atahualpa uses the php date() function. From my reading, it doesnt seem to handle Chinese characters. I did find an example of how to do the translation (http://www.cantonese.sheik.co.uk/pho...?2,19149,34521)

If I could tell you how to put this in the code, would it work for you?

P.s. learn to use the ato->export/import setting options

aeriph Jul 18, 2012 05:21 AM

Yeah I really should have backed up with the ata export, I just thought that my overall backup would cover it. By the way, would it be possible to have Atahualpa auto-export its settings and keep them in a folder with the other files? Say, once a week. Might save a lot of people.

I'm thinking a simple solution to this might be to just put this in for the date:

Code:

%date('Y')% 年 %date('n')% 月 %date('j')% 日

juggledad Jul 18, 2012 06:06 AM

The atahualpa settings are stored in the database, so a database backup will have them. I use a plugin to backup databases on a regular basis. You can use wp-dbmanager(free) or backupbudy($ but backup the files not just the db)

As for your solution, give it a try

aeriph Jul 20, 2012 11:21 PM

OK, so I tried the method above, keeping the Chinese characters out of the date function. Same result: Atahualpa completely resets (this time I had the settings backed up though :) )

juggledad Jul 21, 2012 04:04 AM

2 Attachment(s)
it must be something else about your environment. I just tried both your examples and this
HTML Code:

By %author%, first published %date('Y 年 n 月 j 日')%
gave me this result
Attachment 1955
while this
HTML Code:

%date('Y')% 年 %date('n')% 月 %date('j')% 日
gave me this result
Attachment 1956

aeriph Jul 21, 2012 05:12 AM

OK, I'll have a look into other causes then. Thanks for your help

juggledad Jul 21, 2012 06:53 AM

Check your sites error and access logs on the host for any clues


All times are GMT -6. The time now is 09:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.