Hi All.

I am using Zen Cart v1.5.5a with Tableau v1.6.14. I have PHP 5.6.19 (& 7.0.4 testing server) with SQL 2.4.18. I have tested Tableau v1.3.3 through to v1.6.14 and Zen Cart v1.51 through to v1.5.5a. Lots of testing.

I have a couple of Zen stores live and they ALL suffer with this issue (with this template active).

The problem:
When a customer views index.php?main_page=account_history the page does not complete the load and skips displaying anything after the account menu.

Example img:

Click image for larger version. 

Name:	screendump.jpg 
Views:	324 
Size:	26.5 KB 
ID:	16494

Note: The footer fails and the page does not finish the load.

Error log as follows:

[15-Jul-2016 21:15:39 UTC] Request URI: /ted_zencart/index.php?main_page=account_history, IP address: ::1
#1 require(C:\wamp\www\ted_zencart\includes\templates\tableau\templates\tpl_account _history_default.php) called at [C:\wamp\www\ted_zencart\includes\templates\tableau\common\tpl_main_page.php:201]
#2 require(C:\wamp\www\ted_zencart\includes\templates\tableau\common\tpl_main_page. php) called at [C:\wamp\www\ted_zencart\index.php:97]
[15-Jul-2016 21:15:39 UTC] PHP Warning: Division by zero in C:\wamp\www\ted_zencart\includes\templates\tableau\templates\tpl_account_history _default.php on line 31[15-Jul-2016 21:15:39 UTC] PHP Stack trace:[15-Jul-2016 21:15:39 UTC] PHP 1. {main}() C:\wamp\www\ted_zencart\index.php:0[15-Jul-2016 21:15:39 UTC] PHP 2. require() C:\wamp\www\ted_zencart\index.php:97[15-Jul-2016 21:15:39 UTC] PHP 3. require() C:\wamp\www\ted_zencart\includes\templates\tableau\common\tpl_main_page.php:201[15-Jul-2016 21:15:39 UTC] PHP Fatal error: Call to a member function display_count() on null in C:\wamp\www\ted_zencart\includes\templates\tableau\templates\tpl_account_history _default.php on line 72[15-Jul-2016 21:15:39 UTC] PHP Stack trace:[15-Jul-2016 21:15:39 UTC] PHP 1. {main}() C:\wamp\www\ted_zencart\index.php:0[15-Jul-2016 21:15:39 UTC] PHP 2. require() C:\wamp\www\ted_zencart\index.php:97[15-Jul-2016 21:15:39 UTC] PHP 3. require() C:\wamp\www\ted_zencart\includes\templates\tableau\common\tpl_main_page.php:201
Remember all is fine whilst previous orders are present. This is only if there are no orders present. I can see the fatal error but don't know where to start! Any help would be appreciated.

Regards

SpaceMonkey