Originally Posted by
Jabbawocky
Thanks for the reply and your help.
Do I change line 77 from $count = $db->Execute($count_query); to $count_from = $db->Execute($count_query); ?
I bought the sphalerite_lrbits template from a chap on here who used to trade as Zenofobe.com. He has now stopped trading and not answering messages on here.
Worked great until I upgraded to 1.5.7.
I have changed the settings to Ignoredups. What will that do?
Sorry if these are basic questions. How does the website look?
www.lrbits.co.uk
No, that change would be highly unlikely to resolve the issue.
Originally Posted by
lat9
Changing that setting to IgnoreDups will enable additional (PHP Notice) logs to be recorded, since the one you posted indicates (to me, anyway) that an unexpected query was presented to the split_page_results class. Any notices leading up to the error you posted should contain additional clues as to what the actual source of the issue is.
The site looks good!
While I agree that there will likely be additional information provided by notice information, I expect that the notice will likely say that $listing_sql is not identified at that point and possibly provide more specific line numbers associated with where the template file differs from the out-of-the-box version of loading the featured product template files.
The most likely fix, in my opinion and experience, is to add something like the following to includes/modules/pages/featured_products/heading_php.php
Changing line 34 from:
Code:
$featured_products_query_raw = $db->bindVars($featured_products_query_raw, ':languagesID', $_SESSION['languages_id'], 'integer');
To:
Code:
$listing_sql = $featured_products_query_raw = $db->bindVars($featured_products_query_raw, ':languagesID', $_SESSION['languages_id'], 'integer');
By adding that initial assignment to that line.
Or a more complete solution that takes the notifier into account is to place:
Code:
$listing_sql = $featured_products_query_raw;
At line 38 in the void between the notifier line and the call to splitPage.
Bookmarks