Attempt to set a non-property-list object as an NSUserDefaults

I thought I knew what was causing this error, but I can’t seem to figure out what I did wrong. Here is the full error message I am getting: Attempt to set a non-property-list object ( “<BC_Person: 0x8f3c140>” ) as an NSUserDefaults value for key personDataArray I have a Person class that I think is … Read more

Site Rss not seen by browser

We have a site http://ort.org.il built with WP 3.1.2. Its RSS address should be http://ort.org.il/feed/, but nothing shows up there. I can see the feed in the View Source, but not in the browser, and not in one of our other applications, that reads the RSS from this site. What could be the problem, and … Read more

How to set charset for wp_remote_post request?

I’m using wp_remote_post() on a project and it works great. But seems like the server on which I need to make the POST request is a Windows (ISS) server. So the third-party service that provides this specific endpoint requires that all POST requests has a Windows-1252 character encoding, otherwise there will be issues with special … Read more

add_rewrite_rule not working for language specific characters

My default search query: example.com/search/?search_text=keyword What I want to transform it: example.com/search/keyword So I added this to my function.php add_rewrite_rule(‘^search/([^/]*)?’,’index.php?pagename=search&search_text=$matches[1]’,’top’); Works fine for english alphabet but whenever I search a keyword in my language like this: example.com/search/kırmızı The title of the page becomes: k%C4%B1rm%C4%B1z%C4%B1 and no results returned. Let me know if you need more … Read more

HTML encoding issues – “” character showing up instead of ” “

I’ve got a legacy app just starting to misbehave, for whatever reason I’m not sure. It generates a bunch of HTML that gets turned into PDF reports by ActivePDF. The process works like this: Pull an HTML template from a DB with tokens in it to be replaced (e.g. “~CompanyName~”, “~CustomerName~”, etc.) Replace the tokens … Read more

How to diagnose and keep in check encoding issues?

What we have for a project is: multiple sites (production, test, local development); migrated by multiple methods (PHPMyAdmin, Navicat, BackupBuddy); And the issue we are having is that while original production site seems to work fine, rest of the installations are constantly plagued by text encoding issues. Original site is configured with latin MySQL tables, … Read more

How to increase the character limit for post name of 200?

I have post name in Thai which uses UTF-8 character. Many of them encode into super long in ASCII e.g. วิธีการหลีกเลี่ยงข้อผิดพลาดทั้ง-8-ในชีวิตการแต่งงาน I’ve changed the type of “post_name” using phpMyAdmin to VARCHAR(1000) and collation to utf8_unicode_ci. However, in my WordPress backend editor, the above post name is still automatically cut to วิธีการหลีกเลี่ยงข้อผิ when I try to … Read more