angelleye Posted February 27, 2013 Posted February 27, 2013 I'm trying to get the USPS calculator working on a client's website that's using osCommerce 2.2-MS2. My first attempt was to use the existing USPS module they had in there already, which had the following info at the top... /* $Id: usps.php,v 1.47 2003/04/08 23:23:42 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ This module seemed to load fine in the admin panel and we filed in our USPS username and password that we got when we signed up for USPS Web Tools. The option simply wasn't showing up on the site, though, when we enabled the module. At that point I found this thread where it explains that if you still see both un and pw in the module then you need to update the module. That thread (and a simple Google search for "oscommerce usps module") leads me to this page. I downloaded that module and placed usps.php into /includes/modules/shipping and I placed USPS_methods_utility.php into /admin per the very limited documentation provided. Now, though, when I load the shipping modules page in the admin panel I get the following PHP errors: Warning: require_once(includes/classes/xml_5.php) [function.require-once]: failed to open stream: No such file or directory in /home/lanae33/public_html/includes/modules/shipping/usps.php on line 13 Fatal error: require_once() [function.require]: Failed opening required 'includes/classes/xml_5.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lanae33/public_html/includes/modules/shipping/usps.php on line 13 I checked the /includes/classes directory and I can confirm that xml_5.php does not exist, but I have no idea where that was supposed to come from in the first place..?? It's not included with this module. Any information on this would be greatly appreciated. Thanks!
angelleye Posted February 27, 2013 Author Posted February 27, 2013 I see in the new usps.php that it's attempting to load either xml_5.php or xml.php depending on the PHP version, but neither of those exist in /includes/classes so again, I have no idea where those were supposed to come from..??
suzgems1 Posted March 3, 2013 Posted March 3, 2013 I'm also having the same, or similar problem with this showing up after I've followed the instructions: Warning: require_once(includes/classes/xml_5.php) [function.require-once]: failed to open stream: No such file or directory in/home/content/s/u/z/suzgems/html/includes/modules/shipping/usps.php on line 13 Fatal error: require_once() [function.require]: Failed opening required 'includes/classes/xml_5.php' (include_path='.:/usr/local/php5/lib/php') in/home/content/s/u/z/suzgems/html/includes/modules/shipping/usps.php on line 13 Can anyone help with this?
♥kymation Posted March 4, 2013 Posted March 4, 2013 @@angelleye Click the History tab on the addon that you linked and download the USPS Methods 6.1a complete version. You can extract the missing files from that release. Regards Jim See my profile for a list of my addons and ways to get support.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.