After updating to OS X 10.9 I discovered apache wasn’t working correctly. Fixing apache was a simple fix – during the upgrade, the shipping version of Apache and PHP was updated so they installed a new http.config and removed my php.ini. To get Apache up and running (and configured) again, run a diff of /etc/apache2/httpd.conf […]
Entries Tagged as 'Uncategorized'
Installing pecl_http on OS X Mavericks (10.9)
October 23rd, 2013 · 1 Comment
Tags: Uncategorized
Fixing NIL errors from ‘XML-RPC for PHP’ library
April 25th, 2012 · 1 Comment
I was working with the pyapns push server, sending XML-RPC requests from PHP. A common response from pyapns is <nil/> which isn’t handled by default correctly by XML-RPC for PHP and instead you are given the error, ‘Invalid return payload: enable debugging to examine incoming payload found not-xmlrpc xml element NIL’. To solve this error, […]
Tags: Uncategorized
WordPress: transition_post_status action
October 11th, 2011 · 2 Comments
I needed an action to monitor for posts being published, unpublished or updated after they were already published in my WordPress plugin. I discovered Post_Status_Transitions and specifically the transtion_post_status action that is called for every change to a post’s status. I then check if either the $old_status or the $new_status variables are ‘publish‘ and then […]
Tags: Uncategorized