It works perfectly!! Easy to install!!
Thanks a lot!
It works perfect on zencart v.1.3.7!!
Sales report 2.0 Install problem
Hi,
I run Zencart 1.3.7.1.
I just installed Sales Report 2.0 and all the files seem to be in the correct places.
When I select "Sales report" from the Reports menu in Admin I get the following error:
Parse error: syntax error, unexpected $end in C:\PHPSites\ZenCart\admin\stats_sales_report.php on line 1187
By the look of the path in the error message it seems that the right file is being found. So, what could be wrong ?
Thanks,
Murray
Re: Sales report 2.0 Install problem
Quote:
Originally Posted by
murrah
Hi,
When I select "Sales report" from the Reports menu in Admin I get the following error:
Parse error: syntax error, unexpected $end in C:\PHPSites\ZenCart\admin\stats_sales_report.php on line 1187
OK. Here is the solution:
The script \admin\stats_sales_report.php has 2 places where it uses short_tags ie <? instead of <?php. If your php config has short_tags off (as mine did) the script will fall over (as mine did). So, change any <? to <?php. In the version of Sales Report 2.0 I am using, these occur on lines 693 and 1029. It is better NOT to use short_tags for just this reason - you never know what the config on the target server will be.
There is another problem you need to fix:
File \admin\includes\javascript\sales_report.js.php has javascript errors caused by numerous <?php// and //?> instances. Do a search and replace to change both these to just // ie these are just javascript comments, you dont need the <?php or ?> at all.
Hope that helps others.
Now, let me test the module itself !
Cheers,
Murray
Re: Sales report 2.0 Install problem SOLUTION
Quote:
Originally Posted by
murrah
Hi,
When I select "Sales report" from the Reports menu in Admin I get the following error:
Parse error: syntax error, unexpected $end in C:\PHPSites\ZenCart\admin\stats_sales_report.php on line 1187
OK. Here is the solution:
The script \admin\stats_sales_report.php has 2 places where it uses short_tags ie <? instead of <?php. If your php config has short_tags off (as mine did) the script will fall over (as mine did). So, change any <? to <?php. In the version of Sales Report 2.0 I am using, these occur on lines 693 and 1029. It is better NOT to use short_tags for just this reason - you never know what the config on the target server will be.
There is another problem you need to fix:
File \admin\includes\javascript\sales_report.js.php has javascript errors caused by numerous <?php// and //?> instances. Do a search and replace to change both these to just // ie these are just javascript comments, you dont need the <?php or ?> at all.
Hope that helps others.
Now, let me test the module itself !
Cheers,
Murray