Zen Cart Logo
Forums / Addon Shipping Modules / My shiipping modules disappeared

My shiipping modules disappeared

Views: 1,496

Results 1 to 14 of 14
19 Jan 2012, 1:14 AM
#1
forestfrogsllc avatar

forestfrogsllc

New Zenner

Join Date:
May 2008
Posts:
19
Plugin Contributions:
0

My shiipping modules disappeared

My shipping module page has gone haywire!
I added a shipping zone allowing only the contiguous 48 states to the zenpwtable add-on shipping module, and now the shipping module page is all screwed up.

I'm running:

Zen Cart 1.3.9f
Patch: 1::
Database Patch Level: 1.3.9a

Now, when I click on Modules>Shipping all that show up are:
Modules Sort Order Action
Flat Rate flat 0
Free Shipping Options freeoptions
FREE SHIPPING! freeshipper 0
Per Item item 0
Per Unit

The buttons for editing, deleting, or installing modules are all gone.

When I try to go to checkout in the store, I get HTTP500 internal server error.

Any ideas?

19 Jan 2012, 1:16 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: My shiipping modules disappeared

Look in the directory:
/includes/modules/shipping

and see if you have any backup files or duplicates as this is an autoloading directory ...

Also peek in the /cache directory to see what the debug logs say ...

19 Jan 2012, 1:57 AM
#3
forestfrogsllc avatar

forestfrogsllc

New Zenner

Join Date:
May 2008
Posts:
19
Plugin Contributions:
0

Re: My shiipping modules disappeared

Ajeh:

Look in the directory:
/includes/modules/shipping

and see if you have any backup files or duplicates as this is an autoloading directory ...

Also peek in the /cache directory to see what the debug logs say ...

No duplicate files in /includes/modules/shipping.

Today's debug log:
[18-Jan-2012 13:33:23] PHP Fatal error: Cannot redeclare display_table() (previously declared in /home3/rainfor4/public_html/zencart/includes/functions/cost_weight_table.php:15) in /home3/rainfor4/public_html/zencart/includes/functions/cost_weight_table.php on line 42

Thanks for any help you can provide.

19 Jan 2012, 2:01 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: My shiipping modules disappeared

Sounds like the shipping module listed is using the same code as another shipping module ...

Go to your Tools ... Developers Tool Kit ... and in the bottom input box enter:
display_table

and select Catalog ... then click SEARCH ... and see what files are using that ...

They are in conflict with one another ...

Where did you get the file:
cost_weight_table.php

from that is displayed in the error message?

19 Jan 2012, 2:10 AM
#5
forestfrogsllc avatar

forestfrogsllc

New Zenner

Join Date:
May 2008
Posts:
19
Plugin Contributions:
0

Re: My shiipping modules disappeared

Ajeh:

Where did you get the file:
cost_weight_table.php

from that is displayed in the error message?

From this thread: http://www.zen-cart.com/forum/showthread.php?t=180398

19 Jan 2012, 2:13 AM
#6
forestfrogsllc avatar

forestfrogsllc

New Zenner

Join Date:
May 2008
Posts:
19
Plugin Contributions:
0

Re: My shiipping modules disappeared

/home/rainfor4/public_html/zencart/includes/functions/cost_weight_table.php

Line #13 : function display_table() {

Line #19 : $display_table = '<table border="1" width="400" class="smalltable">';

Line #20 : $display_table .= '<tr align="center">';

Line #21 : $display_table .= '<th colspan="7">' . MODULE_SHIPPING_PWTABLE_TEXT_TABLE_ROW_HEAD . '</th></tr>';

Line #22 : $display_table .= '<tr align="center"><th>' . MODULE_SHIPPING_PWTABLE_TEXT_TABLE_COLUMN_HEAD . '</th>';

Line #24 : $display_table .= '<th>' . $weight_matrix[0][$i] . '</th>';

Line #26 : $display_table .= '</tr>';

Line #31 : $display_table .= '<tr align="center"><th>' . $currency_symbol . $table_costtable[$j] . '</th>';

Line #34 : $display_table .= '<td ' . (($table_pointer==$j && $weight_pointer==$i)?"class="smalltablebackhighlight"":"") . '>' . $currency_symbol . $weight_matrix[$j][$i+1] . '</td>';

Line #36 : $display_table .= '</tr>';

Line #38 : $display_table .= '</table>';

Line #40 : return $display_table;

/home/rainfor4/public_html/zencart/includes/modules/shipping/pwtable.php

Line #94 : $display_table = display_table();

Line #105 : 'table' => $display_table,

Match Lines found: 14

19 Jan 2012, 2:36 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: My shiipping modules disappeared

I am not sure why it would be loading twice based on what you are displaying ...

I loaded the code and I am not having any problems with it ...

What files do you see in:
/includes/modules/shipping

make sure that they are all code files ...

What files do you see in:
/includes/languages/english/modules/shipping

make sure that they are all language files ...

19 Jan 2012, 5:47 PM
#8
forestfrogsllc avatar

forestfrogsllc

New Zenner

Join Date:
May 2008
Posts:
19
Plugin Contributions:
0

Re: My shiipping modules disappeared

Ajeh:

I am not sure why it would be loading twice based on what you are displaying ...

I loaded the code and I am not having any problems with it ...

What files do you see in:
/includes/modules/shipping

make sure that they are all code files ...

What files do you see in:
/includes/languages/english/modules/shipping

make sure that they are all language files ...

What files do you see in:
/includes/modules/shipping
flat.php
freeoptions.php
freeshipper.php
item.php
perweightunit.php
pwtable.php
storepickup.php
table.php
ups.php
usps.php
zones.php

What files do you see in:
/includes/languages/english/modules/shipping
classic(folder containing empty.txt)
flat.php
freeoptions.php
freeshipper.php
item.php
perweightunit.php
pwtable.php
storepickup.php
table.php
ups.php
usps.php
zones.php

19 Jan 2012, 6:03 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: My shiipping modules disappeared

Could you go to the Developers Tool Kit and do a search on:
display_table()

select Catalog ... click SEARCH ...

What comes up?

19 Jan 2012, 7:50 PM
#10
forestfrogsllc avatar

forestfrogsllc

New Zenner

Join Date:
May 2008
Posts:
19
Plugin Contributions:
0

Re: My shiipping modules disappeared

Ajeh:

Could you go to the Developers Tool Kit and do a search on:
display_table()

select Catalog ... click SEARCH ...

What comes up?

Searching 651 files ... for: display_table()

/home/rainfor4/public_html/zencart/includes/functions/cost_weight_table.php

Line #13 : function display_table() {

/home/rainfor4/public_html/zencart/includes/modules/shipping/pwtable.php

Line #94 : $display_table = display_table();

Match Lines found: 2

20 Jan 2012, 8:32 PM
#11
forestfrogsllc avatar

forestfrogsllc

New Zenner

Join Date:
May 2008
Posts:
19
Plugin Contributions:
0

Re: My shiipping modules disappeared

Figuring that if all else failed, I could just upload the original files for the cost/weight shipping table and reenter price bands data, I did just that.

Except it's still broke.

In the Admin>Modules>Shipping page, it loads down to the shipping module just above Cost/Weight Table, and then stops. I don't even have the buttons to delete or edit shipping modules.

These are the files that control the cost/weight table shipping module:

  1. includes/templates/YOURTEMPLATE/templates/tpl_checkout_shipping.php
  2. catalog/includes/modules/shipping/pwtable.php
  3. catalog/includes/functions/cost_weight_table.php
  4. catalog/includes/languages/english/modules/shipping/pwtable.php
20 Jan 2012, 8:48 PM
#12
forestfrogsllc avatar

forestfrogsllc

New Zenner

Join Date:
May 2008
Posts:
19
Plugin Contributions:
0

Re: My shiipping modules disappeared

Now, I went back and overwrote includes/templates/YOURTEMPLATE/templates/tpl_checkout_shipping.php
With the backup I made before I installed the price/weight shipping table module.

I then deleted the other three files that make up the module:
catalog/includes/modules/shipping/pwtable.php
catalog/includes/functions/cost_weight_table.php
catalog/includes/languages/english/modules/shipping/pwtable.php

And I still can't get the shipping function to work.

20 Jan 2012, 8:53 PM
#13
forestfrogsllc avatar

forestfrogsllc

New Zenner

Join Date:
May 2008
Posts:
19
Plugin Contributions:
0

Re: My shiipping modules disappeared

After a restart to clear the cache, shipping is now functioning, sans the price/weight table module.

This module worked for 8 months, and suddenly stopped when I tried to add a shipping zone that included only the lower 48 states. Any ideas what I did wrong?

20 Jan 2012, 10:05 PM
#14
ajeh avatar

ajeh

Oba-san

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

Re: My shiipping modules disappeared

Do you have a Zone definition on it now?

If so, if you look at the Zone Definition and at the DETAILS ... what are the Country/Zones that you have defined on it?