Guest Posted October 31, 2010 Share Posted October 31, 2010 7 l u x . c aif you visit the website above, you will see that it has a footerhowever, if you visit one of it's products, and scroll down to the page, you will see that there's no footer. Actually, if you look at the course, the footer stops loading half way.any ideas anyone? Link to comment Share on other sites More sharing options...
rocky Posted November 1, 2010 Share Posted November 1, 2010 Is seems there is a PHP error on the page, since the code just stops before finishing. Try editing config/config.inc.php and temporarily changing 'display_errors' from 'off' to 'on'. You should then get an error message on the product page. Post the error message here. Link to comment Share on other sites More sharing options...
Guest Posted November 1, 2010 Share Posted November 1, 2010 just changed it to "on" and reloaded the website a few times. no errors =\ Link to comment Share on other sites More sharing options...
rocky Posted November 1, 2010 Share Posted November 1, 2010 I can see an error message at the bottom of the product page now: Fatal error: Cannot use object of type Product as array in /home2/smartph3/public_html/charmsky/tools/smarty/compile/% Link to comment Share on other sites More sharing options...
Guest Posted November 1, 2010 Share Posted November 1, 2010 which browser are you using?how would you suggest I go about fixing this?thanks! Link to comment Share on other sites More sharing options...
rocky Posted November 1, 2010 Share Posted November 1, 2010 I'm using IE. Send me your modules/blockbestsellers/blockbestsellers.tpl and I will compare it to my own. Link to comment Share on other sites More sharing options...
Guest Posted November 1, 2010 Share Posted November 1, 2010 <!-- MODULE Block best sellers --> {l s='Top sellers' mod='blockbestsellers'} {if $best_sellers|@count > 0} {$best_sellers.0.name|escape:htmlall:'UTF-8'|truncate:20} {$best_sellers.0.description_short|strip_tags:htmlall:'UTF-8'|truncate:80} {l s='View' mod='blocknewproducts'} {if $best_sellers|@count > 1} {$best_sellers.1.name|escape:htmlall:'UTF-8'|truncate:20} {$best_sellers.1.description_short|strip_tags:htmlall:'UTF-8'|truncate:80} {l s='View' mod='blocknewproducts'} {/if} {if $best_sellers|@count > 2} {$best_sellers.2.name|escape:htmlall:'UTF-8'|truncate:20} {$best_sellers.2.description_short|strip_tags:htmlall:'UTF-8'|truncate:80} {l s='View' mod='blocknewproducts'} {/if} {if $best_sellers|@count > 3} {$best_sellers.3.name|escape:htmlall:'UTF-8'|truncate:20} {$best_sellers.3.description_short|strip_tags:htmlall:'UTF-8'|truncate:80} {l s='View' mod='blocknewproducts'} {/if} {else} {l s='No best sellers at this time' mod='blockbestsellers'} {/if} <!-- /MODULE Block best sellers --> Link to comment Share on other sites More sharing options...
Guest Posted November 1, 2010 Share Posted November 1, 2010 it's strange that it works for other pages...except the product page Link to comment Share on other sites More sharing options...
rocky Posted November 1, 2010 Share Posted November 1, 2010 The problem is on line 14: {l s='View' mod='blocknewproducts'} It should be: {l s='View' mod='blockbestsellers'} Link to comment Share on other sites More sharing options...
Guest Posted November 1, 2010 Share Posted November 1, 2010 It is still getting stuck =\ however, it loads two products this time. here's is the current code <!-- MODULE Block best sellers --> {l s='Top sellers' mod='blockbestsellers'} {if $best_sellers|@count > 0} {$best_sellers.0.name|escape:htmlall:'UTF-8'|truncate:20} {$best_sellers.0.description_short|strip_tags:htmlall:'UTF-8'|truncate:80} {l s='View' mod='blockbestsellers'} {if $best_sellers|@count > 1} {$best_sellers.1.name|escape:htmlall:'UTF-8'|truncate:20} {$best_sellers.1.description_short|strip_tags:htmlall:'UTF-8'|truncate:80} {l s='View' mod='blocknewproducts'} {/if} {if $best_sellers|@count > 2} {$best_sellers.2.name|escape:htmlall:'UTF-8'|truncate:20} {$best_sellers.2.description_short|strip_tags:htmlall:'UTF-8'|truncate:80} {l s='View' mod='blocknewproducts'} {/if} {if $best_sellers|@count > 3} {$best_sellers.3.name|escape:htmlall:'UTF-8'|truncate:20} {$best_sellers.3.description_short|strip_tags:htmlall:'UTF-8'|truncate:80} {l s='View' mod='blocknewproducts'} {/if} {else} {l s='No best sellers at this time' mod='blockbestsellers'} {/if} <!-- /MODULE Block best sellers --> Link to comment Share on other sites More sharing options...
rocky Posted November 1, 2010 Share Posted November 1, 2010 Oops, I left out the _ in best_sellers. I've updated my code above. Please update your code, then delete tools/smarty/compile/%�^F92^F92565BD%%blockbestsellers.tpl.php to make sure the TPL is recompiled. Link to comment Share on other sites More sharing options...
Guest Posted November 1, 2010 Share Posted November 1, 2010 Do I literally delete the file you specified? Link to comment Share on other sites More sharing options...
Guest Posted November 1, 2010 Share Posted November 1, 2010 Fatal error: Cannot use object of type Product as array in /home2/smartph3/public_html/charmsky/tools/smarty/compile/% Link to comment Share on other sites More sharing options...
Guest Posted November 1, 2010 Share Posted November 1, 2010 nvm, problem solved =) thanks so much for you help! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now