Forums / Addon Shipping Modules / usps shipping module installation problems

usps shipping module installation problems

Locked

Views: 3,310

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
22 Apr 2014, 11:14 PM
#1
ken1 avatar

ken1

Zen Follower

Join Date:
Mar 2014
Location:
Central California
Posts:
105
Plugin Contributions:
0

usps shipping module installation problems

I am installing the latest version USPS shipping module into zen cart 151.
After in install the include folder I go to Admin>Modules and I now have
United States Postal Service - Nothing has been selected for Quotes.

Also at the top in yellow is a Shipping Configuration error.
"Warning: USPS shipping module is either missing the username, or it is set to TEST rather than PRODUCTION and will not work."

Clicking the edit button doesn't allow me to do anything.
I have checked with the post office and their server is in production mode.
I have checked with my hosting site and CURL is working.
How do I configure the module.

k1

23 Apr 2014, 10:10 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: usps shipping module installation problems

Admin->Modules->Shipping
click USPS
click Edit

What happens?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Apr 2014, 4:09 PM
#3
ken1 avatar

ken1

Zen Follower

Join Date:
Mar 2014
Location:
Central California
Posts:
105
Plugin Contributions:
0

Re: usps shipping module installation problems

The line United States Postal Service has in red - "Nothing has been selected for Quotes" in red.
I click USPS and to the far right a green box with information that has buttons for edit and remove.
I click on edit and the green information box goes away and it looks like the like the first screen only with out the
green information section and the screen goes all the way across.
Attachment 14002
I have a jpeg attached of what the screen looks like after I click on the edit button.
k1

23 Apr 2014, 4:16 PM
#4
ken1 avatar

ken1

Zen Follower

Join Date:
Mar 2014
Location:
Central California
Posts:
105
Plugin Contributions:
0

Re: usps shipping module installation problems

This is what the screen looks like after pressing Modules>Shipping>USPS but before pressing the edit button.Attachment 14004
k1

23 Apr 2014, 5:02 PM
#5
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: usps shipping module installation problems

ken1:

Also at the top in yellow is a Shipping Configuration error.
"Warning: USPS shipping module is either missing the username, or it is set to TEST rather than PRODUCTION and will not work."

How do I configure the module.

Is there a reason that you have not entered the USPS UserID (UserName) provided to you by the USPS into the proper field? And then selected the USPS classes that you offer as a selection to your customers?

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

23 Apr 2014, 5:16 PM
#6
ken1 avatar

ken1

Zen Follower

Join Date:
Mar 2014
Location:
Central California
Posts:
105
Plugin Contributions:
0

Re: usps shipping module installation problems

I am never given a opportunity to enter any information.
I install the usps module and when I click on edit to enter my information it goes to the screen I showed in my
post.
If there is somewhere else I need to input it I don't know where that is.
k1

23 Apr 2014, 5:31 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: usps shipping module installation problems

Go to your Tools ... Install SQL Patches ... and run this ...

delete from configuration where configuration_key like 'MODULE\_SHIPPING\_USPS\_%';

Now see if you can go to the Modules ... Shipping ... and install and configure your USPS shipping module ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

23 Apr 2014, 5:57 PM
#8
ken1 avatar

ken1

Zen Follower

Join Date:
Mar 2014
Location:
Central California
Posts:
105
Plugin Contributions:
0

Re: usps shipping module installation problems

Still the same. I am unable to enter any information when I click on edit.
k1

23 Apr 2014, 5:59 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: usps shipping module installation problems

If you look in the directory /logs ... do you see any myDebug-adm-xxxxxxx.log logs created?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

23 Apr 2014, 6:05 PM
#10
ken1 avatar

ken1

Zen Follower

Join Date:
Mar 2014
Location:
Central California
Posts:
105
Plugin Contributions:
0

Re: usps shipping module installation problems

All the /logs files for today look like this

[23-Apr-2014 12:55:58 America/Chicago] PHP Warning: preg_replace() has been disabled for security reasons in /home/momcat/public_html/working_title/includes/modules/shipping/usps.php on line 1876

23 Apr 2014, 6:11 PM
#11
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: usps shipping module installation problems

ken1:

... PHP Warning: preg_replace() has been disabled for security reasons ...
Contact your hosting provider and tell them you need to be able to use preg_replace().

If they are not willing to allow the use of preg_replace, you may wish to change to a different hosting provider. The function preg_replace is used by a number of Zen Cart plugins..

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

23 Apr 2014, 8:24 PM
#12
ken1 avatar

ken1

Zen Follower

Join Date:
Mar 2014
Location:
Central California
Posts:
105
Plugin Contributions:
0

Re: usps shipping module installation problems

I have checked with my hosting company and apparently they have preg_replace disabled and will check for
a work around.
Is there a manual way to make the changes.
k1

24 Apr 2014, 3:15 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: usps shipping module installation problems

If your host is too scared to re-enable preg_replace (and the other preg_ functions) (those are all normally enabled by default) then your host is not capable of running Zen Cart or other advanced website applications. Chances are that they're being frequently hacked and don't know how to secure their servers properly, so they're applying a very inefficient broad brush which cripples normal people like you. Find another host: http://www.zen-cart.com/content.php/3-services

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

25 Apr 2014, 5:17 PM
#14
ken1 avatar

ken1

Zen Follower

Join Date:
Mar 2014
Location:
Central California
Posts:
105
Plugin Contributions:
0

Re: usps shipping module installation problems

Thanks everyone for the help.
I got in touch with my hosting company and they re-enabled the preg_replace function.
That seems to have taken care of the problem.
I installed the usps shipping module and now I can input my user information into it.
k1

25 Apr 2014, 6:00 PM
#15
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: usps shipping module installation problems

Thanks for the update that your hosting provider was finally able to set the settings correctly and that this are now working ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 May 2014, 4:24 PM
#16
ken1 avatar

ken1

Zen Follower

Join Date:
Mar 2014
Location:
Central California
Posts:
105
Plugin Contributions:
0

Re: usps shipping module installation problems

To give a update for any one having this problem. I started being unable to edit the USPS module and looked in the log folder for
any errors. I was getting the preg_replace error again.
I contacted my hosting company and here is what they said,
The following line must be in your .htaccess file in order for preg_replace() to be enabled for your hosting account:
suPHP_ConfigPath /home/hidden/public_html
If that line is not in your .htaccess file, then preg_replace() will be disabled for your hosting account.

Sure enough the line was added and instantly I was able to edit.

I hope this helps.