Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

shukei98

Archived
  • Posts

    11
  • Joined

  • Last visited

Profile Information

  • Real Name
    Steve Lew

shukei98's Achievements

  1. Thank you so much JanZ, it finally works! But with a minor error.. it shows: I've tried changing all pickup types but not working. Do you think that I need to change this in my ups account or contact UPS? Regards, Steve
  2. Hi Janz, Here's the newest I got from my upsxml.log... DOes this means my exec() problem is gone? Now with a new problem?
  3. Janz, The information wasn't helpful coz I am running on windows 2003 + IIS 6 (not apache). Any suggestion?
  4. I got the following errors after changing error_log to a file name in php.ini and did a iisreset. I am pretty sure is the cmd.exe problem of not giving premission to IUSR_XXXX that caused exec() to fail, so I've given the whole windows/system32 dir (where cmd.exe resides, following some recommendation in internet) read/read exec permission but still failed. In my upsxml.log still show the same thing Now I really ran out of ideas!! Exhausted.....!
  5. I've enabled php_curl.dll and php_xmlrpc.dll under dynamic extensions in my php.ini and did an iisreset. But I still got the following error!! To answer Gabor's questions, I am from Malaysia. Here's my new configuration on the ups xml module, correct me if I'm wrong... This is the 2 regular error I got in upsxml.log::
  6. Here's what I got from checkout_shipping after I've changed $this->use_exec = '1'; under upsxml.php (following step 8 in readme.txt v1.1.4) .... then in my upsxml.log it became: ------------------------------------------ DATE AND TIME: 2004-12-22 11:03:18 UPS URL: https://wwwcie.ups.com:443/ups.app/xml/TimeInTransit ------------------------------------------ DATE AND TIME: 2004-12-22 11:16:16 UPS URL: https://wwwcie.ups.com:443/ups.app/xml/TimeInTransit UPS REQUEST using exec(): <?xml version="1.0"?> <AccessRequest xml:lang="en-US"> ? <AccessLicenseNumber>xxxxxxxxxxxxxxx</AccessLicenseNumber> ? <UserId>xxxxxxxxxxxx</UserId> ? <Password>xxxxxxxxx</Password> </AccessRequest> <?xml version="1.0"?> <TimeInTransitRequest xml:lang="en-US"> ? <Request> ? ? ? <TransactionReference> ? ? ? ? ? <CustomerContext>Time in Transit</CustomerContext> ? ? ? ? ? <XpciVersion>1.0001</XpciVersion> ? ? ? </TransactionReference> ? ? ? <RequestAction>TimeInTransit</RequestAction> ? </Request> ? <TransitFrom> ? ? ? <AddressArtifactFormat> ? ? ? ? ? <PoliticalDivision2>Seri Kembangan</PoliticalDivision2> ? ? ? ? ? <PoliticalDivision1>Selangor</PoliticalDivision1> ? ? ? ? ? <CountryCode>Malaysia</CountryCode> ? ? ? ? ? <PostcodePrimaryLow>43300</PostcodePrimaryLow> ? ? ? </AddressArtifactFormat> ? </TransitFrom> ? <TransitTo> ? ? ? <AddressArtifactFormat> ? ? ? ? ? <PoliticalDivision2>Seri Kembangan</PoliticalDivision2> ? ? ? ? ? <PoliticalDivision1>Selangor</PoliticalDivision1> ? ? ? ? ? <CountryCode>MY</CountryCode> ? ? ? ? ? <PostcodePrimaryLow>00000</PostcodePrimaryLow> ? ? ? ? ? <PostcodePrimaryHigh>00000</PostcodePrimaryHigh> ? ? ? </AddressArtifactFormat> ? </TransitTo> ? <PickupDate>20041225</PickupDate> ? <ShipmentWeight> ? ? ? <UnitOfMeasurement> ? ? ? ? ? <Code>KGS</Code> ? ? ? </UnitOfMeasurement> ? ? ? <Weight>10</Weight> ? </ShipmentWeight> ? <InvoiceLineTotal> ? ? ? <CurrencyCode>USD</CurrencyCode> ? ? ? <MonetaryValue>100</MonetaryValue> ? </InvoiceLineTotal> </TimeInTransitRequest> Error from cURL using exec() since there is no $xmlResponse UPS RESPONSE using exec(): ------------------------------------------ Time in Transit: 0 ------------------------------------------ DATE AND TIME: 2004-12-22 11:16:16 UPS URL: https://wwwcie.ups.com:443/ups.app/xml/Rate UPS REQUEST using exec(): <?xml version="1.0"?> <AccessRequest xml:lang="en-US"> ? <AccessLicenseNumber>**********</AccessLicenseNumber> ? <UserId>*******</UserId> ? <Password>******</Password> </AccessRequest> <?xml version="1.0"?> <RatingServiceSelectionRequest xml:lang="en-US"> ? <Request> ? ? ? <TransactionReference> ? ? ? ? ? <CustomerContext>Rating and Service</CustomerContext> ? ? ? ? ? <XpciVersion>1.0001</XpciVersion> ? ? ? </TransactionReference> ? ? ? <RequestAction>Rate</RequestAction> ? ? ? <RequestOption>shop</RequestOption> ? </Request> ? <PickupType> ? ? ? <Code>03</Code> ? </PickupType> ? <Shipment> ? ? ? <Shipper> ? ? ? ? ? <Address> ? ? ? ? ? ? ? <City>Seri Kembangan</City> ? ? ? ? ? ? ? <StateProvinceCode>Selangor</StateProvinceCode> ? ? ? ? ? ? ? <CountryCode>Malaysia</CountryCode> ? ? ? ? ? ? ? <PostalCode>43300</PostalCode> ? ? ? ? ? </Address> ? ? ? </Shipper> ? ? ? <ShipTo> ? ? ? ? ? <Address> ? ? ? ? ? ? ? <City>Seri Kembangan</City> ? ? ? ? ? ? ? <StateProvinceCode>Selangor</StateProvinceCode> ? ? ? ? ? ? ? <CountryCode>MY</CountryCode> ? ? ? ? ? ? ? <PostalCode>00000</PostalCode> <ResidentialAddressIndicator/> ? ? ? ? ? </Address> ? ? ? </ShipTo> ? ? ? <Package> ? ? ? ? ? <PackagingType> ? ? ? ? ? ? ? <Code>02</Code> ? ? ? ? ? </PackagingType> ? ? ? ? ? <PackageWeight> ? ? ? ? ? ? ? <UnitOfMeasurement> ? ? ? ? ? ? ? ? ? <Code>KGS</Code> ? ? ? ? ? ? ? </UnitOfMeasurement> ? ? ? ? ? ? ? <Weight>26</Weight> ? ? ? ? ? </PackageWeight> ? ? ? </Package> ? </Shipment> ? <CustomerClassification> ? ? ? <Code>03</Code> ? </CustomerClassification> </RatingServiceSelectionRequest> Error from cURL using exec() since there is no $xmlResponse UPS RESPONSE using exec(): hmm, might it be UPS server itself going wrong? Regards, Steve
  7. Hi Gabor/Ianz, I've tried upload 1.1.4 and enabled logging. Here's what I got in my upsxml.log... ------------------------------------------ DATE AND TIME: 2004-12-22 11:03:18 UPS URL: https://wwwcie.ups.com:443/ups.app/xml/TimeInTransit ... and as I run the test on the curl code below, I also got a BLANK PAGE. <?php $url = "http://www.amazon.com/exec/obidos/search-handle-form/002-5640957-2809605"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_FAILONERROR, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 3); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "url=index%3Dbooks&field-keywords=PHP+MYSQL"); $result = curl_exec($ch); curl_close($ch); echo $result; ?> So what should I do next?
  8. Hi Gador/Ianz, I still facing the same blank page on checkout_shipping.php even after installing the php-xml parser (expat) from http://sourceforge.net/projects/expat/. I've installed the expat_win32bin v1.95.8 on c:\php\Expat-1.95.8. My current system is Windows 2003 Server with PHP Version 4.3.9. I was wondering whether is my php.ini setting problem?? I've tried added some code after <body> tag recommended by Ianz, but nothing in return. You can have a look of my current server's php.ini setting on http://test.domainese.net/php/common/phpinfo.php. Please help :(... Regards, Steve
  9. Hi Gabor, I just wondering what I installed is correct. I've downloaded from sourceforge the expat_win32bin v1.95.8 and installed under c:\php\Expat-1.95.8? My server is running on Windows 2003 Server Standard and PHP Version 4.3.9. After everything installed, I still get a blank page. I've place both Developer's key and Access Key for ups xml but still not working! Getting frustrated... Hope you could help! Thanks :'( Regards, Steve
  10. Hi Janz, I've added the above lines but still get the blank page... I wonder is my configuration problem in php.ini? My machine is running on Windows 2003 server and PHP Version 4.3.9. I've just downloaded and installed expat_win32bin v1.95.8 and installed under c:\php\Expat-1.95.8. I didn't get any error or text displayed in checkout_shipping.php. Please help! Regards Steve
  11. Hi, I am setting up UPS xml contrib v1.1.3a but not successful. I gave a BLANK page on checkout_shipping.php. I've follow the exact steps in readme.txt and updated the database as well, but still no help. When I disable the UPS xml module in Admin > Module > Shipping, the error gone and everything runs smoothly. My server is based on below: Windows 2003 standard MySQL 4.0 + PHP 4.3.9 and my UPS XML config was: United Parcel Service (XML) Enable UPS Shipping True UPS Rates Access Key UPS XML Access Key UPS Rates Username UPS online username UPS Rates Password UPS online password Pickup Method Daily Pickup Packaging Type Customer Package Customer Classification Code 01 Shipping Origin All other origins Origin City Seri Kembangan Origin State/Province SL Origin Country MY Origin Zip/Postal Code 43300 Test or Production Mode Test Unit Weight LBS Unit Length IN Quote Type Commercial Handling Fee 0 Tax Class --none-- Shipping Zone --none-- Sort order of display. 0 Shipping Methods Next Day Air, 2nd Day Air, Ground, Worldwide Express, Standard, 3 Day Select Shipping Delay 1 Kindly help me. Very much appreciated!! REgards Steve
×
×
  • Create New...