Latest News: (loading..)

ArtcoInc

Members
  • Content count

    765
  • Joined

  • Last visited

  • Days Won

    13

ArtcoInc last won the day on March 4

ArtcoInc had the most liked content!

About ArtcoInc

Profile Information

  • Real Name
    Malcolm

Recent Profile Visitors

17,047 profile views
  1. I *think* that the OP was asking, "If I set up additional security, such as password protection to the admin directory through my cPanel, can osC check that too, and not check just for .htaccess." And, I think the answer is No. Malcolm
  2. @Dan Cole I have entertained the idea of doing this too. Could you further explain how you did this? A write-up on how you set up and maintain this would be most welcome. Thanks! Malcolm
  3. @mattjt83 If so, will you release it? Please (and commercially is fine too ) Malcolm
  4. @kymation Thanks, Jim! That seems to have solved it And yes, it's line 124 here too. Malcolm
  5. @kymation *** UPDATE *** This is a new shop I am developing. I wanted to see if the problem could be caused by any of the add-ons or changes I had already made. So, I installed a clean copy of EDGE (dated 5/11/17), and installed the USPS Rate module. I then entered an order with an UK address. BAM ... Yes, I'm developing the shop on an in-house WAMP box. So, I then wanted to see if somehow the problem was due to my in-house box. I created a temporary directory on one of my hosted shops, installed a clean copy of EDGE, and again installed the USPS Rates module. I ran an order through the shop with an UK address, and It worked! No warnings! So, I took the shop I have been developing, and moved it up to my host (I already had the domain name registered, and a preliminary site started). BAM ... the site crashed. All I got was the background color. I was able to log into the admin site, but the store was empty. Debug showed me an "500 internal server error". Geez, that's helpful ... So ... I logged into my host, and started examining the error logs. For some reason, one module in the navbar wasn't finding it's template. Everything was there, but it was being fussy. So, I "temporarily" moved the contents of the template file into the navbar module itself, and the shop came back to life! Still puzzled about that one ... Anyway, the shop was up. I ran an order through the shop with an UK address, and no warnings! So, was this a case of "Why you should develop on your real host, and not on an in-house box" ? Nope... While I was looking through the error logs on my host, I noticed many, many instances of the same PHP warning, both for the new site I'm working on, but also for my existing shops that also use the USPS Rates module .. [01-Aug-2017 12:39:42 America/Los_Angeles] PHP Warning: Invalid argument supplied for foreach() in /XXXXX/XXXXX/XXXX/XXXXX/catalog/includes/modules/shipping/usps.php on line 123 So, I've been getting these warning all along! But, I'm guessing that I have the warning set off in the live sites, but set on in the ones I am working on here in-house. Like I said above, the USPS was passing back the proper rates. So, the module does work, but there is an issue in the code that is generating these warnings. We can hide the warnings, but that doesn't really solve the problem. Thanks for letting me vent a bit Malcolm
  6. Ok, I found this list of countries on the USPS website ... https://pe.usps.com/text/imm/ab_toc.htm And I compared it to my database. There were some differences (some countries on one list but not the other), but for the three warning countries I listed above ... Afghanistan: warning <--- The countries were the same in both Cambodia: warning <--- The countries were the same in both UK: warning <--- The USPS has it as 'Great Britain and Northern Ireland' and osC has it as 'United Kingdom' The USPS debug email for the UK says ... Request: API=IntlRateV2&XML=<IntlRateV2Request USERID="************"> <Revision>2</Revision> <Package ID="0"> <Pounds>5</Pounds> <Ounces>1.6</Ounces> <MailType>All</MailType> <GXG> <POBoxFlag>N</POBoxFlag> <GiftFlag>N</GiftFlag> </GXG> <ValueOfContents>0</ValueOfContents> <Country>United Kingdom</Country> <Container>RECTANGULAR</Container> <Size>LARGE</Size> <Width>0.2</Width> <Length>0.2</Length> <Height>0.2</Height> <Girth>0</Girth> <OriginZip>95112</OriginZip> <CommercialFlag>Y</CommercialFlag> <ExtraServices> <ExtraService>0</ExtraService> <ExtraService>1</ExtraService> <ExtraService>2</ExtraService> <ExtraService>3</ExtraService> <ExtraService>6</ExtraService> <ExtraService>9</ExtraService> </ExtraServices> </Package> </IntlRateV2Request> Response: <?xml version="1.0" encoding="UTF-8"?> <IntlRateV2Response> <Package ID="0"> <Prohibitions>Aerosols. Ammunition, except lead pellets. Animals, live (including reptiles). Arms and parts of arms, or any component classified as munitions of war; imitations and antiques; paint-ball or toy guns; taser guns; air rifles, air pistols, components of firearms, and all other items similar to or resembling the foregoing. Articles, goods infringing British trademarks or copyright laws. Asbestos items of any kind. Christmas crackers (holiday popper). Clinical and medical waste (e.g., contaminated dressings, bandages, and needles). Coins; platinum, gold, or silver (manufactured or not); precious stones; jewels; and other valuable articles. Counterfeit currency, bank notes, and postage stamps. Dies and equipment for making imitations, etc., of any current postage stamp for denoting any rate of postage. Fish, live. Frozen food. Frozen water (including bags of ice). Goods made in foreign prisons, except those imported for a noncommercial purpose or of a kind not manufactured in the United Kingdom. Human and animal cremated remains (ashes). Indecent and obscene prints, paintings, books, cards, lithographs, and other engravings, films, video tapes, or any other indecent or obscene articles. Lead acid batteries (e.g., car batteries) and sealed lead acid batteries. Lottery tickets and related advertisements for illegal lotteries. Medicines classified as flammable or toxic. Radioactive materials and samples that are classified as radioactive using Table 2-12 of the latest edition of the International Civil Aviation organization''s Technical Instructions - e.g., fissile material (uranium 235, etc.), radioactive waste material, thorium, or uranium ores and luminous dials from aircraft. Soil. Soiled clothes and rags. Stun gun, electric. Switchblade knives (also knows as flick knives) and gravity knives. Waste, dirt, filth, or refuse, including household waste or rubbish. </Prohibitions> <Restrictions>A consignment of live bees must contain only queen bees and their attendant workers; colonies are not permitted. Each consignment must be accompanied by an import license issued by the Dept. of Agriculture (DEFRA) and a health certificate issued by the country of origin. Caterpillars, cockroaches, crickets, destroyers of noxious pests, earthworms, fish fry and eggs, flies of the family Drosophilidae, leeches, lugworms, maggots, mealworms, pupae and chrysalides, rag worms, silkworms, spiders, and stick insects are admissible only for biomedical research (see license requirement for bees). Medicines and drugs when sent for scientific purposes must be sent by a practitioner, registered dental practitioner, veterinary surgeon, registered nurse, or recognized laboratory or institution. Plants and parts of plants require an import permit issued by the appropriate Agricultural Department in the United Kingdom. Vaccines may be sent only by, or at the specific request of, a qualified medical practitioner, registered dental practitioner, veterinary surgeon, registered nurse, or recognized laboratory or institution.</Restrictions> <Observations>1. The following is a list of the names of the counties and city names in Northern Ireland. The County names are in capital letters. The geographic identifiers should be used in addressing mail to Northern Ireland: ANTRIM: Antrim Ballymena Belfast Carrickfergus Larne Lisburn Portrush Toomebridge Whitehead ARMAGH: Armagh Lurgan Portsdown DOWN: Banbridge Bangor Downpatrick Kilkeel Newcastle Newry Newtownards LONDONDERRY: Coleraine Kilrea Limavady Londonderry Magherafelt Portstewart TYRONE: Cookstown Dugannon Moy Omagh Strabane FERMANAGH: Enniskillen 2. Many types of merchandise, unless sent as unsolicited gifts, require import licenses that the addressees must obtain from the British Board of Trade. Before mailing commercial shipments, senders should be assured that the addressees can obtain licenses if needed. 3. All goods sent to the UK are liable to customs duty and Value Added Tax on importation whether or not the package is marked as a "gift." Packages are admitted free of customs charges, however, if they meet the following conditions: (a) Gift packages of small value provided they do not contain any tobacco goods, spirits or wine; (b) Gift packages containing only well-worn clothing (excluding garments of high value), limited quantities of foodstuffs (other than caviar), soap or consumable medical supplies. 4. Postal packages without a customs declaration that contain goods liable to customs duty or control may be seized by the customs authorities. 5. Firearms that are intended for sporting purposes are mailable to Great Britain, provided the prospective addressee has obtained the required import license. 6. Great Britain limits the weight of M-bags to 20 kg. (44 lbs.). </Observations> <CustomsForms>First-Class Mail International items and Priority Mail International Flat Rate Envelopes and Small Flat Rate Boxes: PS Form 2976 (see 123.61) Priority Mail International parcels: PS Form 2976-A inside 2976-E (envelope) </CustomsForms> <ExpressMail>Country Code: GB Reciprocal Service Name: Datapost Required Customs Form/Endorsement 1. Business correspondence, commercial papers, and documents. PS Form 2976-B placed inside PS Form 2976-E (plastic envelope). Endorse item clearly next to mailing label as BUSINESS PAPERS. 2. Merchandise samples without commercial value. PS Form 2976-B placed inside PS Form 2976-E (plastic envelope). 3. Merchandise and all articles subject to customs duty. PS Form 2976-B placed inside PS Form 2976-E (plastic envelope). Note: 1. Coins; banknotes; currency notes, including paper money; securities of any kind payable to bearer; traveler's checks; platinum, gold, and silver; precious stones; jewelry; watches; and other valuable articles are prohibited in Priority Mail Express International shipments to Great Britain and Northern Ireland. 2. Priority Mail Express International With Guarantee service - which offers a date-certain, postage-refund guarantee - is available to Great Britain and Northern Ireland. Areas Served: All points in England, Scotland, Wales, Northern Ireland, Guernsey, Jersey, Alderney, Sark, and the Isle of Man. </ExpressMail> <AreasServed>Please reference Express Mail for Areas Served.</AreasServed> <AdditionalRestrictions>No Additional Restrictions Data found.</AdditionalRestrictions> <Service ID="4"> <Pounds>5</Pounds> <Ounces>1.6</Ounces> <MailType>All</MailType> <GXG> <POBoxFlag>N</POBoxFlag> <GiftFlag>N</GiftFlag> </GXG> <Container>RECTANGULAR</Container> <Size>LARGE</Size> <Width>0.2</Width> <Length>0.2</Length> <Height>0.2</Height> <Girth>0</Girth> <Country>UNITED KINGDOM</Country> <Postage>124.50</Postage> <CommercialPostage>118.28</CommercialPostage> <ExtraServices> <ExtraService> <ServiceID>1</ServiceID> <ServiceName>Insurance</ServiceName> <Available>True</Available> <OnlineAvailable>True</OnlineAvailable> <Price>0.00</Price> <PriceOnline>0.00</PriceOnline> <DeclaredValueRequired>True</DeclaredValueRequired> </ExtraService> </ExtraServices> <SvcCommitments>1 - 3 business days to many major markets</SvcCommitments> <SvcDescription>Global Express Guaranteed&lt;sup&gt;&#174;&lt;/sup&gt; (GXG)</SvcDescription> <MaxDimensions>Max. length 46", width 35", height 46" and max. length plus girth combined 108"</MaxDimensions> <MaxWeight>70</MaxWeight> <GXGLocations> <PostOffice> <Name>COLONNADE</Name> <Address>200 S 3RD ST</Address> <City>SAN JOSE</City> <State>CA</State> <ZipCode>95112</ZipCode> <RetailGXGCutOffTime>3:00 PM</RetailGXGCutOffTime> <SaturDayCutOffTime>12:00 PM</SaturDayCutOffTime> </PostOffice> <PostOffice> <Name>SPARTAN SHOPS INC</Name> <Address>1125 N 7TH ST</Address> <City>SAN JOSE</City> <State>CA</State> <ZipCode>95112</ZipCode> <RetailGXGCutOffTime>12:00 AM</RetailGXGCutOffTime> <SaturDayCutOffTime>12:00 AM</SaturDayCutOffTime> </PostOffice> <PostOffice> <Name>SENTER VIDEO CPU</Name> <Address>2360 SENTER RD</Address> <City>SAN JOSE</City> <State>CA</State> <ZipCode>95112</ZipCode> <RetailGXGCutOffTime>5:00 PM</RetailGXGCutOffTime> <SaturDayCutOffTime>2:00 PM</SaturDayCutOffTime> </PostOffice> </GXGLocations> </Service> <Service ID= Errors: (I reformatted it for clarity) So, the Request was for "United Kingdom", and the Response was "UNITED KINGDOM". Thoughts? TIA! Malcolm
  7. @kymation Thanks, Jim. I just looked through the USPS debug emails. All of the requests have the country in mixed caps (ex: Canada), and the reply has it in all caps (ex: CANADA). This is the same for both the countries that produce the warning, and the countries that don't. Besides the case, the country requested and the country replied are the same. Besides, if the country name requested (ie: in the database) is different than what the USPS is expecting, how is it that the USPS does return a postage cost? Malcolm
  8. He may be on holiday, as much of Europe is now. (just saying) Malcolm
  9. As others have reported here before, I am also getting the following warning for SOME countries: Warning: Invalid argument supplied for foreach() in xxxxx\catalog-m3\includes\modules\shipping\usps.php on line 123 But, the post office DOES return a postage rate, even for the countries that produce this warning. I've not tested EVERY country, but of the handful that I have tested ... Afghanistan: warning Cambodia: warning Canada: no warning Denmark: no warning Netherlands: no warning Turkey: no warning UK: warning United States (with or without ZIP code): no warning I enabled the debugging email, but can not see any commonality in the emails between those countries that produce the warning, and/or those that do not. I can post them here, if anyone wishes. Has anyone found a solution for this? TIA Malcolm
  10. @gregba Glad to point you in the right direction Malcolm
  11. @98stratos Is this a new store, or an existing one? If this a live existing store, you would be better spending your time moving it to the latest responsive version of osCommerce. When your host upgrades their version of PHP, your store will crash. Malcolm
  12. @gregba Are you using the .htaccess security feature in the admin side of your shop? Malcolm
  13. @98stratos What version of osCommerce are you using? Malcolm
  14. @raiwa Thank you. Malcolm
  15. @raiwa Because I am trying not to change 'core files' Changed. And the quantity still can be adjusted. Thank you! Malcolm