Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Languages & Translations »

Entering Chinese characters into Atahualpa options causes all options to reset


  #1  
Old Jul 16, 2012, 01:20 AM
aeriph
 
13 posts · Sep 2010
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?

Last edited by aeriph; Jul 16, 2012 at 01:25 AM.
  #2  
Old Jul 16, 2012, 05:14 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jul 17, 2012, 11:16 PM
aeriph
 
13 posts · Sep 2010
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.
  #4  
Old Jul 18, 2012, 05:19 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jul 18, 2012, 06:21 AM
aeriph
 
13 posts · Sep 2010
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')% 日
  #6  
Old Jul 18, 2012, 07:06 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Jul 21, 2012, 12:21 AM
aeriph
 
13 posts · Sep 2010
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 )
  #8  
Old Jul 21, 2012, 05:04 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
Click image for larger version

Name:	case1.png
Views:	2705
Size:	95.0 KB
ID:	1955
while this
HTML Code:
%date('Y')% 年 %date('n')% 月 %date('j')% 日
gave me this result
Click image for larger version

Name:	case2.png
Views:	2743
Size:	55.8 KB
ID:	1956
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Jul 21, 2012, 06:12 AM
aeriph
 
13 posts · Sep 2010
OK, I'll have a look into other causes then. Thanks for your help
  #10  
Old Jul 21, 2012, 07:53 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Check your sites error and access logs on the host for any clues
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Atahualpa & qTranslates: Atahualpa resets qT specifiations in it's theme options Michael T. Plugins & Atahualpa 4 Nov 18, 2011 04:54 AM
[SOLVED] 3.6.4: Reset all options does not reset all options mdmower New Versions, & Updating 9 Feb 13, 2011 05:25 PM
[SOLVED] Can't configure theme options - I can only Reset ALL! AndrewSw New Versions, & Updating 7 Nov 4, 2009 02:13 PM
Atahualpa 3.3.3 Themes panel options shows the options but it does not work pkmittal81 New Versions, & Updating 7 Jun 11, 2009 06:31 AM
Font Size & Face setting reset on save in Page Menu Bar options RobertSGold Page & Category Menu Bars 6 Apr 10, 2009 10:54 PM


All times are GMT -6. The time now is 04:51 PM.


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