Zen Cart Logo
Forums / Addon Shipping Modules / USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

Views: 7,391

Results 1 to 20 of 38
5 Mar 2014, 2:00 PM
#1
fretty avatar

fretty

New Zenner

Join Date:
Sep 2010
Posts:
59
Plugin Contributions:
0

USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

Hi all,

So I had to upgrade from the old USPS module as it had stopped providing international rates earlier this year. Once I realized that it was most likely an outdated module causing the issue, I decided to upgrade to the latest version.

Now...nothing works.

Here are my issues:

  1. After removing the old module, then removing the old module's PHP files, uploading the new ones, and then installing them via Admin, the module name appears as blank in the shipping module list. If I click on it to edit the settings, it allows me to do so. So I proceed, thinking that the name is just a name, no biggie. I enter in all my info and enable the module...

  2. The module doesn't enable (the little light stays red, doesn't go yellow or green). I have all my settings correct from the previous version, set to enabled, using production, etc. Still nothing. After doing everything I could think of I decided that maybe the install didn't work well, so I should start over again...

  3. So I remove the newly installed USPS module the same way I removed the old module (removed it via Admin, then removed the PHP files and uploaded the news ones again). I then proceed to re-install the new module again, but the same issue of the name not appearing in the shipping modules list was still happening. I clicked on it again to go ahead and start inputting my USPS information anyways, but this time ALL the information was pre-populated with my details that I had from the previous installation. I had removed the PHP files completely, replaced them with the new ones...how can this be?

So now I have no idea what's going on.

Now that I have no working module, I cannot get rates for (and therefore sell to) the United States or International countries.

Can anyone please help?
If any further information is needed, please let me know.

Thank you in advance to anyone who can assist.

Fretty
https://www.universal-heros.com

5 Mar 2014, 2:05 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

First, let's check that the right files are loaded on the server ...

Go to your Zen Cart Admin and go to Tools ... Developers Tool Kit ...

In the bottom input box enter:
usps.php

Then, select Catalog ... click SEARCH ...

What comes up on the lines for:

5 Mar 2014, 2:10 PM
#3
fretty avatar

fretty

New Zenner

Join Date:
Sep 2010
Posts:
59
Plugin Contributions:
0

Re: USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

Wow, you're quick! Thanks!

First box:

/home/heros/public_html/zen-cart/includes/languages/english/modules/shipping/usps.php

Line #10 : * @version $Id: usps.php 2014-01-26 ajeh Version K $

Second box:

/home/heros/public_html/zen-cart/includes/modules/shipping/usps.php

Line #12 : * @version $Id: usps.php 2014-01-26 ajeh Version K1 $

Fretty
https://www.universal-heros.com

5 Mar 2014, 2:22 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

Next step ...

If you look in the directory:
/includes/modules/shipping

via your FTP program, what files do you see on the server?

NOTE: Include any backup files or renamed files that you see ...

If you look in the directory:
/cache

do you see any Debug logs?

If so, view the most recent files and post what you see in the contents ...

5 Mar 2014, 2:30 PM
#5
fretty avatar

fretty

New Zenner

Join Date:
Sep 2010
Posts:
59
Plugin Contributions:
0

Re: USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

In the /includes/modules/shipping directory, I see:

flat.php
freeoptions.php
freeshipper.php
item.php
perweightunit.php
storepickup.php
table.php
ups.php
upsxml.php
usps.php
usps.php OLD
zones.php

The usps.php OLD file is considered an unrecognized file type (due to the addition of "OLD" at the end of the file name). This is my old file in case I had to rollback this upgrade.

As for the /includes/cache folder, I do not even see one, so I'm assuming there are no debug logs if that directory hasn't been created?

5 Mar 2014, 2:51 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

Sorry ... lack of coffee ...

Peek in the directory:
/cache

to see if you have any Debug logs ...

5 Mar 2014, 3:06 PM
#7
fretty avatar

fretty

New Zenner

Join Date:
Sep 2010
Posts:
59
Plugin Contributions:
0

Re: USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

Oh there it is. :)

There are 4 debug files from today. I'll paste them here:

First one was "Paypal_CURL_EC-5CJ82455JL294623U_p0Qm.log". No need to paste that here.

Second: myDEBUG-adm-647277-1394028399.log

[05-Mar-2014 09:06:39] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/heros/public_html/zen-cart/admin/modules.php on line 282
[05-Mar-2014 09:06:39] PHP Warning: Variable passed to each() is not an array or object in /home/heros/public_html/zen-cart/admin/modules.php on line 283

Third: myDEBUG-adm-294684-1394028406.log

[05-Mar-2014 09:06:46] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/heros/public_html/zen-cart/admin/modules.php on line 282
[05-Mar-2014 09:06:46] PHP Warning: Variable passed to each() is not an array or object in /home/heros/public_html/zen-cart/admin/modules.php on line 283

Fourth: myDEBUG-adm-397065-1394028412.log

[05-Mar-2014 09:06:52] PHP Warning: Variable passed to each() is not an array or object in /home/heros/public_html/zen-cart/admin/modules.php on line 56

5 Mar 2014, 3:12 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

I do not believe the old USPS renamed to usps.php OLD is an issue, but to rule it out can you remove that from the server?

Does anything change on the display of the Shipping modules?

What version of php are you using? You can check in the Tools ... Server Info ...

5 Mar 2014, 3:16 PM
#9
fretty avatar

fretty

New Zenner

Join Date:
Sep 2010
Posts:
59
Plugin Contributions:
0

Re: USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

I removed the "OLD" files and nothing has changed in the display of Admin>Modules>Shipping.

PHP Version: 4.4.9 (Zend: 1.3.0)

5 Mar 2014, 3:25 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

Could you click on the USPS shipping module, just so it is the selected shipping module, then do a screen shot of what you see on that page?

5 Mar 2014, 3:50 PM
#11
fretty avatar

fretty

New Zenner

Join Date:
Sep 2010
Posts:
59
Plugin Contributions:
0

Re: USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

Screenshot:

Attachment 13863

5 Mar 2014, 3:55 PM
#12
ajeh avatar

ajeh

Oba-san

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

Re: USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

This is really weird, to say the least ...

Okay, let's start at the beginning ...

In the Tools ... Install SQL Patches ... run this:

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

Yes, that will uninstall the USPS shipping module ...

Next, delete the two files from the server for:
/includes/modules/shipping/usps.php
/includes/languages/english/modules/shipping/usps.php

Now, reload clean copies of those two files to your server ...

Then, go to the Modules ... Shipping ... and check if you can see the USPS module in the list of files ...

If so, go ahead and do the INSTALL and configuration of the shipping module ...

Meanwhile, I have to run out for an hour in a few minutes so don't think you are being ignored for awhile ... :lookaroun

5 Mar 2014, 4:13 PM
#13
fretty avatar

fretty

New Zenner

Join Date:
Sep 2010
Posts:
59
Plugin Contributions:
0

Re: USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

Unfortunately the same result as the screenshot I posted earlier. =(
Thanks for all the help. Take your time, I don't want to rush you.
We'll continue once you're back and settled in.

5 Mar 2014, 5:12 PM
#14
ajeh avatar

ajeh

Oba-san

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

Re: USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

And in your /cache there are no debug logs generated when you just go to the Modules ... Shipping ... page?

Did you ever make any changes to the file:
/your_secret_admin/modules.php

or is this the original file from v1.3.9d?

Do you have any addons that would of changed any of the files in the:
/your_secret_admin

directory or subdirectories?

5 Mar 2014, 5:27 PM
#15
fretty avatar

fretty

New Zenner

Join Date:
Sep 2010
Posts:
59
Plugin Contributions:
0

Re: USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

The only other modules I have installed are:

UPS (for shipping within Canada)
Blank side box (for containing things like the Twitter widget)
EZ Populate (for bulk importing new products/items)

I haven't made any custom changes to anything within that directory.

As for the cache:

I deleted all debug logs for today and went through step by step to see when a debug log will be created.
Navigating to the modules > shipping page alone does not generate a debug log file.
Clicking on the 'nameless' USPS module, which brings up the "Install" option on the right, does not generate a debug log file.
Clicking on "Install" DOES generates a debug log file containing:

[05-Mar-2014 12:23:39] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/heros/public_html/zen-cart/admin/modules.php on line 282
[05-Mar-2014 12:23:39] PHP Warning: Variable passed to each() is not an array or object in /home/heros/public_html/zen-cart/admin/modules.php on line 283

Then the option to "Update" the module appears, even though there are no fields to update. When I click "Update", it generates another debug log file containing:

[05-Mar-2014 12:26:47] PHP Warning: Variable passed to each() is not an array or object in /home/heros/public_html/zen-cart/admin/modules.php on line 56

I hope this helps make more sense of things.

Fretty
https://www.universal-heros.com

5 Mar 2014, 5:33 PM
#16
fretty avatar

fretty

New Zenner

Join Date:
Sep 2010
Posts:
59
Plugin Contributions:
0

Re: USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

It appears as though both those lines that are in question in the debug log files refer to:
$mInfo->keys

Hopefully that sheds some light on the situation.

Fretty

5 Mar 2014, 5:40 PM
#17
ajeh avatar

ajeh

Oba-san

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

Re: USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

It is the nameless shipping name displayed for USPS that is the first concern, as that totally is making no sense ...

Could you go to your phpMyAdmin and run this:

SELECT * FROM configuration WHERE configuration_key LIKE 'MODULE_SHIPPING_INSTALLED';

If you edit that record that comes up, can you post what is in the field:
configuration_value

NOTE: you will need to EDIT it to be able to copy/paste the entire value ...

5 Mar 2014, 6:20 PM
#18
fretty avatar

fretty

New Zenner

Join Date:
Sep 2010
Posts:
59
Plugin Contributions:
0

Re: USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

Here it is:

flat.php;freeoptions.php;freeshipper.php;item.php;storepickup.php;upsxml.php

5 Mar 2014, 6:24 PM
#19
ajeh avatar

ajeh

Oba-san

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

Re: USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

If you go to the Modules ... Shipping ... and click once on the USPS module without the name, what do you see in the right hand panel?

5 Mar 2014, 6:35 PM
#20
fretty avatar

fretty

New Zenner

Join Date:
Sep 2010
Posts:
59
Plugin Contributions:
0

Re: USPS Module 2014_0126_K1 Doesn't Have Module Name, Remove Properly or Enable

Just the option to "Install", with nothing else written.

Just like the screenshot I posted earlier.
It shows "Update" and "Cancel", but no field to fill out.

If I click it again, it just gives me the "Install" option again.
Rinse and repeat.

Fretty