<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum - Topic: Australia Post Extension</title>
		<link>http://www.kriesi.at/support/topic/australia-post-extension</link>
		<description>Support Forum - Topic: Australia Post Extension</description>
		<language>en-US</language>
		<pubDate>Sat, 25 May 2013 00:22:31 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/australia-post-extension" rel="self" type="application/rss+xml" />

		<item>
			<title>Sharon on "Australia Post Extension"</title>
			<link>http://www.kriesi.at/support/topic/australia-post-extension#post-72966</link>
			<pubDate>Mon, 27 Aug 2012 00:51:04 +0000</pubDate>
			<dc:creator>Sharon</dc:creator>
			<guid isPermaLink="false">72966@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks anyway Peter.&#60;/p&#62;
&#60;p&#62;Sharon
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Australia Post Extension"</title>
			<link>http://www.kriesi.at/support/topic/australia-post-extension#post-72923</link>
			<pubDate>Sun, 26 Aug 2012 09:08:39 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">72923@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi! &#60;/p&#62;
&#60;p&#62; Unfortunately I can't debug the issue on my test server and I think we need to wait for a solution from the woo devs. &#60;/p&#62;
&#60;p&#62; Best regards,&#60;br /&#62;
Peter
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Sharon on "Australia Post Extension"</title>
			<link>http://www.kriesi.at/support/topic/australia-post-extension#post-72780</link>
			<pubDate>Sat, 25 Aug 2012 01:03:19 +0000</pubDate>
			<dc:creator>Sharon</dc:creator>
			<guid isPermaLink="false">72780@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I have been using this extension since I launched the website at the end of April without any problems. A few days ago a number of customers advised us through facebook that they could not complete their purchases.&#60;/p&#62;
&#60;p&#62;I am using the latest Woocommerce and extensions on another website and there's no issue. It seems to be a conflict with this theme. So far I have no real solution from Woo. They said they would look into it but I haven't received any update. &#60;/p&#62;
&#60;p&#62;I'm not having any luck myself trying to figure out what the conflict is with the theme. Anyone have any suggestions?&#60;/p&#62;
&#60;p&#62;The following is the error message I get when going to the cart or checkout.&#60;/p&#62;
&#60;p&#62;Error Message: Fatal error: Call to a member function children() on a non-object in /public_html/wp-content/plugins/woocommerce-austpost/hypnoticzoo_utilities.php on line 84&#60;/p&#62;
&#60;p&#62;Line 84 is                             &#60;/p&#62;
&#60;p&#62;$children = $xml-&#38;gt;children();&#60;/p&#62;
&#60;p&#62;The full php file is: &#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * For WooCommerce 1.4.2 and above&#60;br /&#62;
 * HypnoticZoo shipping utilities&#60;br /&#62;
 * Author Andy Zhang&#60;br /&#62;
 * Company: Hypnotic Zoo&#60;br /&#62;
 * Company Url: hypnoticzoo.com&#60;br /&#62;
 */&#60;/p&#62;
&#60;p&#62;if (!class_exists('ArrayToXML')) {&#60;/p&#62;
&#60;p&#62;	class ArrayToXML {&#60;/p&#62;
&#60;p&#62;		/**&#60;br /&#62;
		 * The main function for converting to an XML document.&#60;br /&#62;
		 * Pass in a multi dimensional array and this recrusively loops through and builds up an XML document.&#60;br /&#62;
		 *&#60;br /&#62;
		 * @param array $data&#60;br /&#62;
		 * @param string $rootNodeName - what you want the root node to be - defaultsto data.&#60;br /&#62;
		 * @param SimpleXMLElement $xml - should only be used recursively&#60;br /&#62;
		 * @return string XML&#60;br /&#62;
		 */&#60;br /&#62;
		public static function toXML($data, $rootNodeName = 'ResultSet', &#38;amp;$xml = null) {&#60;/p&#62;
&#60;p&#62;			// turn off compatibility mode as simple xml throws a wobbly if you don't.&#60;br /&#62;
			if (ini_get('zend.ze1_compatibility_mode') == 1)&#60;br /&#62;
				ini_set('zend.ze1_compatibility_mode', 0);&#60;br /&#62;
			if (is_null($xml)) {&#60;br /&#62;
				$xml = simplexml_load_string(&#34;&#38;lt;$rootNodeName /&#38;gt;&#34;);&#60;br /&#62;
				$rootNodeName = rtrim($rootNodeName, 's');&#60;br /&#62;
			}&#60;br /&#62;
			// loop through the data passed in.&#60;br /&#62;
			foreach ($data as $key =&#38;gt; $value) {&#60;/p&#62;
&#60;p&#62;				// no numeric keys in our xml please!&#60;br /&#62;
				$numeric = 0;&#60;br /&#62;
				if (is_numeric($key)) {&#60;br /&#62;
					$numeric = 1;&#60;br /&#62;
					$key = $rootNodeName;&#60;br /&#62;
				}&#60;/p&#62;
&#60;p&#62;				// delete any char not allowed in XML element names&#60;br /&#62;
				$key = preg_replace('/[^a-z0-9\-\_\.\:]/i', '', $key);&#60;/p&#62;
&#60;p&#62;				// if there is another array found recursively call this function&#60;br /&#62;
				if (is_array($value)) {&#60;br /&#62;
					$node = ( ArrayToXML::isAssoc($value) &#124;&#124; $numeric ) ? $xml-&#38;gt;addChild($key) : $xml;&#60;/p&#62;
&#60;p&#62;					// recursive call.&#60;br /&#62;
					if ($numeric)&#60;br /&#62;
						$key = 'anon';&#60;br /&#62;
					ArrayToXML::toXml($value, $key, $node);&#60;br /&#62;
				} else {&#60;/p&#62;
&#60;p&#62;					// add single node.&#60;br /&#62;
					$value = htmlentities($value);&#60;br /&#62;
					$xml-&#38;gt;addChild($key, $value);&#60;br /&#62;
				}&#60;br /&#62;
			}&#60;/p&#62;
&#60;p&#62;			// pass back as XML&#60;br /&#62;
			return $xml-&#38;gt;asXML();&#60;/p&#62;
&#60;p&#62;			// if you want the XML to be formatted, use the below instead to return the XML&#60;br /&#62;
			//$doc = new DOMDocument('1.0');&#60;br /&#62;
			//$doc-&#38;gt;preserveWhiteSpace = false;&#60;br /&#62;
			//$doc-&#38;gt;loadXML( $xml-&#38;gt;asXML() );&#60;br /&#62;
			//$doc-&#38;gt;formatOutput = true;&#60;br /&#62;
			//return $doc-&#38;gt;saveXML();&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		/**&#60;br /&#62;
		 * Convert an XML document to a multi dimensional array&#60;br /&#62;
		 * Pass in an XML document (or SimpleXMLElement object) and this recrusively loops through and builds a representative array&#60;br /&#62;
		 *&#60;br /&#62;
		 * @param string $xml - XML document - can optionally be a SimpleXMLElement object&#60;br /&#62;
		 * @return array ARRAY&#60;br /&#62;
		 */&#60;br /&#62;
		public static function toArray($xml) {&#60;br /&#62;
			if (is_string($xml))&#60;br /&#62;
				$xml = new SimpleXMLElement($xml);&#60;br /&#62;
			$children = $xml-&#38;gt;children();&#60;br /&#62;
			if (!$children)&#60;br /&#62;
				return (string) $xml;&#60;br /&#62;
			$arr = array();&#60;br /&#62;
			foreach ($children as $key =&#38;gt; $node) {&#60;br /&#62;
				$node = ArrayToXML::toArray($node);&#60;/p&#62;
&#60;p&#62;				// support for 'anon' non-associative arrays&#60;br /&#62;
				if ($key == 'anon')&#60;br /&#62;
					$key = count($arr);&#60;/p&#62;
&#60;p&#62;				// if the node is already set, put it into an array&#60;br /&#62;
				if (array_key_exists($key, $arr) &#38;amp;&#38;amp; isset($arr[$key])) {&#60;br /&#62;
					if (!is_array($arr[$key]) &#124;&#124; !array_key_exists(0, $arr[$key]) &#124;&#124; ( array_key_exists(0, $arr[$key]) &#38;amp;&#38;amp; ($arr[$key][0] == null)))&#60;br /&#62;
						$arr[$key] = array($arr[$key]);&#60;br /&#62;
					$arr[$key][] = $node;&#60;br /&#62;
				} else {&#60;br /&#62;
					$arr[$key] = $node;&#60;br /&#62;
				}&#60;br /&#62;
			}&#60;br /&#62;
			return $arr;&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		// determine if a variable is an associative array&#60;br /&#62;
		public static function isAssoc($array) {&#60;br /&#62;
			return (is_array($array) &#38;amp;&#38;amp; 0 !== count(array_diff_key($array, array_keys(array_keys($array)))));&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;	}&#60;/p&#62;
&#60;p&#62;}&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;Thanks in advance.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
