Forums / Upgrading from 1.2 to 1.3.x / Upgrade/Fresh Install Driving Me Crazy

Upgrade/Fresh Install Driving Me Crazy

Locked

Started by sheltiejim on 6 Mar 2008, 2:21 AM · Views: 3,374

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
6 Mar 2008, 2:21 AM
#1
sheltiejim avatar

sheltiejim

New Zenner

Join Date:
Dec 2006
Posts:
6
Plugin Contributions:
0

Upgrade/Fresh Install Driving Me Crazy

I run ZenCart 1.2.6 on my live webstore. After a long time without cycles to upgrade, I'm installing 1.3.8a on a different host (that supports ZenCart). This is a sort of hybrid upgrade/fresh install, which may play a part in my problem (but I am 95% convinced it's unrelated).

My problem is this: My "home" page (http://sheltietales.com/SheltieRescueMall.com/) displays fine. But clicking on one of the product category links (NativeElder jewelry is a good example) displays part of the page properly...the left sidebox column and part of the middle/main part. However, the display terminates immediately after my "product blurb" and before the "Add Selected Products" button is generated. Naturally, the products in the category do not get listed, nor does the right sidebox column.

When I do a View Source of the page, the very end of the HTML reads like this:

<form name="multiple_products_cart_quantity" action="http://sheltietales.com/SheltieRescueMall.com/index.php?main_page=product_info&cPath=14&sort=20a&action=multiple_products_add_product&zenid=0f83107a5fd5f24746add94baed53c45" method="post" enctype="multipart/form-data"><form name="multiple_products_cart_quantity" action="http://sheltietales.com/SheltieRescueMall.com/index.php?main_page=product_info&cPath=14&sort=20a&action=multiple_products_add_product&zenid=0f83107a5fd5f24746add94baed53c45" method="post" enctype="multipart/form-data"><form name="multiple_products_cart_quantity" action="http://sheltietales.com/SheltieRescueMall.com/index.php?main_page=product_info&cPath=14&sort=20a&action=multiple_products_add_product&zenid=0f83107a5fd5f24746add94baed53c45" method="post" enctype="multipart/form-data"> There are actually many, many more instances of that <form...> element (about 230?) than I included here, many more than I have products in the category (10).

I have spent at least 8 hours reading code, staring at code, and tearing out my hair! :frusty:

In fact, I cannot even tell what PHP file is generating that <form...> element! The PHP files that seem to be involved include:

  • tpl_index_product_listing.php -- which includes the following lines:
<br class="clearBoth" /> <?php require($template->get_template_dir('tpl_modules_product_listing.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_product_listing.php'); ?> <?php //// bof: categories error if ($error_categories==true) { // verify lost category and reset category $check_category = $db->Execute("select categories_id from " . TABLE_CATEGORIES . " where categories_id='" . $cPath . "'"); if ($check_category->RecordCount() == 0) { $new_products_category_id = '0'; $cPath= ''; } ?>

By inserting HTML comments and PHP echo statements that generate comments, I can prove that the <br class="clearBoth"/> is generated and that the require is invoked, thus pulling in tpl_modules_product_listing.php

  • tpl_modules_product_listing.php -- which includes the following line at the very beginning of the file:

include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_PRODUCT_LISTING));

By inserting a PHP echo statement immediately before that include, I can prove that tpl_modules_product_listing.php actually got included. However, if I place two (2) PHP echo statements immediately before that include, there is no page generated at all -- only a zero-length string!!

With or without any PHP echo statements preceding that include, product_listing.php (which is defined in filenames.php to be the resolution of the symbol FILENAME_PRODUCT_LISTING) is never included.

Among my many questions are: What possible causes are there for product_listing.php not being included when instructed? Why does insertion of one PHP echo before the include work OK, but insertion of two of them causes the entire page generation to fall on its face? What PHP file is generating the <form...> element? :cry:

I should point out that I have examined the file protections; they are all 644 for the files in use.

HELP!?!
Jim

P.S., I'm not even sure whether this is the right forum in which to ask these questions! If not, I don't mind if this gets moved elsewhere.

6 Mar 2008, 6:04 AM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Upgrade/Fresh Install Driving Me Crazy

Did you alter/upgrade your template or install one suitable for latest zencart
version? Templates for Version 1.2.6 won't work correctly when using
zencart 1.3 and above.

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

6 Mar 2008, 11:16 PM
#3
sheltiejim avatar

sheltiejim

New Zenner

Join Date:
Dec 2006
Posts:
6
Plugin Contributions:
0

Re: Upgrade/Fresh Install Driving Me Crazy

misty:

Did you alter/upgrade your template or install one suitable for latest zencart version? Templates for Version 1.2.6 won't work correctly when using zencart 1.3 and above.

Hmmm...I'm trying to use the default template, modifying only the things that I know need modifying (e.g., CSS files, configuration files, files with text in them, etc.

I am using the override system to do as much of that stuff as possible, but I'm fairly certain that I haven't corrupted my template directories with files left over from my currently-live store.