DivaVocals:
First thing to do IMHO is to add the file to the default_template folder and see if the error goes away..
I do not think it's an issue for this file to be in the default_template folder.. It's not a core file and will not be overwritten in an upgrade because of this. (which is the primary purpose of the override system)
However, I'll leave it to those more knowledgeable than I to weigh in here..:smile:
OMG :blush: I had the same thought as you, but before I did it, I checked the custom template folder and the file in question simply wasn't there - that's what was causing the error. I have no idea how that happened because I specifically remember uploading that file along with my customized tpl_product_info_display.php file.
So I uploaded it, and now I get this error:
PHP Parse error: syntax error, unexpected T_ELSE in /includes/modules/recent_products.php on line 57
The code for that file, lines 52 - 58 is
$num_products_count = ($recent_products_query == '') ? 0 : $recent_products->RecordCount();
// show only when 1 or more
if ($num_products_count > 0)
if ($num_products_count < SHOW_PRODUCT_INFO_COLUMNS_RECENT_PRODUCTS || SHOW_PRODUCT_INFO_COLUMNS_RECENT_PRODUCTS == 0)
$col_width = floor(100/$num_products_count);
} else {
$col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_RECENT_PRODUCTS);
I just don't understand why these legitimate code errors didn't show up during testing on a vanilla install. If the code is wrong - it's wrong - regardless of which template is being used.
Is that right?
*Go that extra mile, you never know what's at the end of the road
* Empowerment Sanctuary