×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Division by zero error in Dashboard

Division by zero error in Dashboard 11 years 9 months ago #19239

  • Simon Wells
  • Simon Wells's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 40
  • Thank you received: 0
Hi Daniel,

FYI, just installed the component and added the Mandrill API key, upon saving, the component page refreshes and the dashboard reports the following, the plugin is enabled too:

Deliverability
Warning: Division by zero in httpdocs/administrator/components/com_cmandrill/views/dashboard/tmpl/default.php on line 53
0%

Warning: Division by zero in httpdocs/administrator/components/com_cmandrill/views/dashboard/tmpl/default.php on line 60
0 %
Avg open rate

Warning: Division by zero in httpdocs/administrator/components/com_cmandrill/views/dashboard/tmpl/default.php on line 66
0 %
Avg click rate
All time

Sent 0
Avg sends daily
Warning: Division by zero in /httpdocs/administrator/components/com_cmandrill/views/dashboard/tmpl/default.php on line 83
0
Total spam complaints 0
Avg spam complaints
Warning: Division by zero in httpdocs/administrator/components/com_cmandrill/views/dashboard/tmpl/default.php on line 91
Hard bounces 0
Avg hard bounces
Warning: Division by zero in httpdocs/administrator/components/com_cmandrill/views/dashboard/tmpl/default.php on line 99
0
Soft bounces 0
Avg soft bounces
Warning: Division by zero in httpdocs/administrator/components/com_cmandrill/views/dashboard/tmpl/default.php on line 107
0
Avg bounce daily
Warning: Division by zero in httpdocs/administrator/components/com_cmandrill/views/dashboard/tmpl/default.php on line 111
0
Avg unsubscribes
Warning: Division by zero in httpdocs/administrator/components/com_cmandrill/views/dashboard/tmpl/default.php on line 115


Joomla! 2.5.8 installed.

Install Error 11 years 9 months ago #19240

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Simon,
Well, I would not call this an "Install Error", but not checking what will happen if the user has never used the service and has never sent a mail through mandrill :)

Basically you should set up your webserver not to show those warnings. Global configuration -> error reporting.

The component is working, just send a mail and you should receive it. Once you've sent at least one mail, than those warnings should disappear.

Regards,
Daniel

Division by zero error in Dashboard 11 years 9 months ago #19244

  • Simon Wells
  • Simon Wells's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 40
  • Thank you received: 0
Hi Daniel,
Sorry, install error is not correct I agree.
I updated this post title.

This could be something other users may see if error reporting is on.
I had mine set to simple, this has been set to none and now that message is of course not displayed.

All resolved :)

Division by zero error in Dashboard 11 years 9 months ago #19249

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
My joomla install for development is running with PHP_STRICT on, but since I didn't have an account with 0 sends I didn't see this error. I'll need to create a new mandrill account and will fix this. It would be better if it corrects properly even with 0 emails.

Regards,
Daniel

Division by zero error in Dashboard 11 years 9 months ago #19273

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I just released an update that should fix this.
Thanks for helping!
Daniel
  • Page:
  • 1
Time to create page: 0.156 seconds