Jump to content
Sign in to follow this  
MidasMassage

help with USPS Methods 2_9_5_1

Recommended Posts

Could someone please help. I just installed USPS Methods 2_9_5_1 and it seems to work except,

in the admin screen I have no options under " Int'l Shipping Methods Select the international services to be offered:" and when a user is buying from me all are given to them. How do I get these options under Intl shipping to show?

 

It works fine with:

 

 

Domestic Shipping Methods

Select the domestic services to be offered:

 

EXPRESS

PRIORITY

FIRST CLASS

PARCEL

BPM

LIBRARY

MEDIA

 

 

Anybody?

Share this post


Link to post
Share on other sites

Here is some additional info:

 

I'm having the same issue with 2.9.5.1 and I get the error

 

Parse error: syntax error, unexpected T_GLOBAL, expecting ')' in /home/gssibra4/public_html/ausz/AUSZadmin/modules.php(216) : eval()'d code on line 1

 

on the admin screen for USPS just below the page banner when I select EDIT function.

 

So I grabbed the module.php file from 2.9.2a_1 and replaced my manually edited version of modules.php and I get the same "bad" behavior.

Share this post


Link to post
Share on other sites
Here is some additional info:

 

I'm having the same issue with 2.9.5.1 and I get the error

 

Parse error: syntax error, unexpected T_GLOBAL, expecting ')' in /home/gssibra4/public_html/ausz/AUSZadmin/modules.php(216) : eval()'d code on line 1

 

on the admin screen for USPS just below the page banner when I select EDIT function.

 

So I grabbed the module.php file from 2.9.2a_1 and replaced my manually edited version of modules.php and I get the same "bad" behavior.

 

This is addressed in the Troubleshooting part of the readme/install txt file:

 

"2. If you are getting a "parse error" you may need to open phpMyAdmin and update the database -> configuration table and change set_function to TEXT from VARCHAR."

 

Also, if your International options are not showing, this is also the solution. do as number 2 says, then in the admin remove the usps module, then reinstall it and you will see all your options appear - I will add this to the readme file for future updates.

 

Scott

Edited by olsonsp4c

Share this post


Link to post
Share on other sites
This is addressed in the Troubleshooting part of the readme/install txt file:

 

"2. If you are getting a "parse error" you may need to open phpMyAdmin and update the database -> configuration table and change set_function to TEXT from VARCHAR."

 

Also, if your International options are not showing, this is also the solution. do as number 2 says, then in the admin remove the usps module, then reinstall it and you will see all your options appear - I will add this to the readme file for future updates.

 

Scott

 

I am not getting a parse error, and running

ALTER TABLE `configuration` CHANGE `set_function` `set_function` TEXT CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL;

 

did not work for me.

 

Any other ideas?

Steve

Share this post


Link to post
Share on other sites
I am not getting a parse error, and running

ALTER TABLE `configuration` CHANGE `set_function` `set_function` TEXT CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL;

 

did not work for me.

 

Any other ideas?

Steve

 

change configuration -> set_funtion to TEXT from VARCHAR in phpmySQL and it will work

 

Scott

Share this post


Link to post
Share on other sites
change configuration -> set_funtion to TEXT from VARCHAR in phpmySQL and it will work

 

Scott

 

 

Maybe I am confused. IS that not what the following will do:

 

ALTER TABLE `configuration` CHANGE `set_function` `set_function` TEXT CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL;

 

 

After doing that, there is no change.

 

If this is not it, how are you saying to change it as I believe it is text at this point?

Share this post


Link to post
Share on other sites
Maybe I am confused. IS that not what the following will do:

 

ALTER TABLE `configuration` CHANGE `set_function` `set_function` TEXT CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL;

After doing that, there is no change.

 

If this is not it, how are you saying to change it as I believe it is text at this point?

 

with some people this sql statement does not work, you might need to manually go in and change it to TEXT (ingore everything past COLLATE).

 

afterwards, remove the usps module in modules->USPS Methods "Remove" - then click "Install" after it is removed and re-insert your id and all, the intl options should be there.

 

Scott

Share this post


Link to post
Share on other sites
with some people this sql statement does not work, you might need to manually go in and change it to TEXT (ingore everything past COLLATE).

 

afterwards, remove the usps module in modules->USPS Methods "Remove" - then click "Install" after it is removed and re-insert your id and all, the intl options should be there.

 

Scott

 

That is what I did the first time. It is set to TEXT. I removed the USPS methods. I re-installed. I still dont get the options to turn on and turn off under intl. They are always turned on. After I edit the settings, I can see all of the intl options, but when editing the settings, there are no check boxes or text for me to change.

 

Is this driven by the USPS site, or in the DB? I find nothing in the DB and am wondering if driven by USPS, maybe my id does not have access to intl? Any other thoughts? I really think I have done exactly as you state and still nothing.

Share this post


Link to post
Share on other sites
That is what I did the first time. It is set to TEXT. I removed the USPS methods. I re-installed. I still dont get the options to turn on and turn off under intl. They are always turned on. After I edit the settings, I can see all of the intl options, but when editing the settings, there are no check boxes or text for me to change.

 

Is this driven by the USPS site, or in the DB? I find nothing in the DB and am wondering if driven by USPS, maybe my id does not have access to intl? Any other thoughts? I really think I have done exactly as you state and still nothing.

 

It is driven by the DB, then connects with USPS after the settings are saved. Try removing it and overwriting with the most recent files, then re-install and let me know if it is fixed - you should be using production rather than testing and make sure that both the userid and password are filled in with the userid (in other words, it appears 2x). also, this is the line that inserts the correct field in "configuration" table:

 

	  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Int\'l Shipping Methods', 'MODULE_SHIPPING_USPS_TYPES_INTL', 'GLOBAL EXPRESS, GLOBAL EXPRESS NON-DOC RECT, GLOBAL EXPRESS NON-DOC NON-RECT, EXPRESS MAIL INT, EXPRESS MAIL INT FLAT RATE ENV, PRIORITY MAIL INT, PRIORITY MAIL INT FLAT RATE ENV, PRIORITY MAIL INT FLAT RATE BOX, FIRST-CLASS MAIL INT', 'Select the international services to be offered:', '6', '15', 'tep_cfg_select_multioption(array(\'GLOBAL EXPRESS\', \'GLOBAL EXPRESS NON-DOC RECT\', \'GLOBAL EXPRESS NON-DOC NON-RECT\', \'EXPRESS MAIL INT\', \'EXPRESS MAIL INT FLAT RATE ENV\', \'PRIORITY MAIL INT\', \'PRIORITY MAIL INT FLAT RATE ENV\', \'PRIORITY MAIL INT FLAT RATE BOX\', \'FIRST-CLASS MAIL INT\'), ', now())");

 

Scott

Share this post


Link to post
Share on other sites

Hey Scott - thanks for your work on this to date and for posting here. I was getting the exact same problems described in this thread but was able to get it working following your suggestions.

 

thanks again

 

Jason

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×