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:
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.