Tech-Today
USPS::submit_request: domxml_open_mem is uncallable
I am calling the USPS API when I got the above error.
The problem is the server where my application resides is equipped with php version 5, while the class that I have downloaded and using is class.usps.php. This class use the old domxml object available to php version 4.
The solution is convert the domxml calls to the new dom object in php5 OR use the domxml-php4-to-php5.php. All you need to do is include this lines:
if (PHP_VERSION>='5')
require_once('domxml-php4-to-php5.php'); //Load the PHP5 converter
Before you make a call to domxml methods.
-
How To Setup Your Wordpress Website In Nginx Server
Long ago I learned of the advantages of nginx over apache, just google it. Planned to migrate our sites but didn't manage to do it until last weekend. So here's what I did to do that: I'm assuming you already have a functional wordpress with...
-
How To Install Apache2 Php5 And Mysql5 In Ubuntu 12.04
These are the set of scripts I executed in ubuntu to install the ff: 1.) apache2 2.) php5 3.) mysql5 >sudo apt-get install apache2 //installs in /etc/apache2 >sudo apt-get install php5 //installs in /etc/php5 >sudo apt-get install libapache2-mod-php5...
-
Magento 1and1 Vps Setup - Setting Up The Vps Settings
Magento 1and1 VPS Setup - Setting up the VPS settings At this point it is assumed that a VPS Domain is properly setup. Although the magento check : http://www.magentocommerce.com/knowledge-base/entry/how-do-i-know-if-my-server-is-compatible-with-magento...
-
How To Setup A Magento System In A 1and1 Vps Server 2 - Updating The Default 1and1 Php Image Installed
For this you must have a root access to your database There is a built it script to test your system whether it is ready for magento deployment or not, you can download it here: http://www.magentocommerce.com/knowledge-base/entry/how-do-i-know-if-my-server-is-compatible-with-magento...
-
-2147219047;solserver.verify_respondinvalid Xml The Name Of The Top Most Element Must Match The Name Of The Doctype Declaration.
I was testing the USPS Api, when I got that error. This is because of the error in my root tag, my request is as follow: API=Verify&XML=<verifyrequest USERID='207BAZLI7194' PASSWORD='053FG85YP581'><address ID="0"> <address1></Address1><address2>Address2</Address2><city>City</City><state>State</State><zip5>Zip...
Tech-Today