Webmastersite.net
Register Log In

Warning: Division by zero .....
how to get rid of this error

Comments on Warning: Division by zero .....

mc19
Forum Regular

Usergroup: Customer
Joined: May 14, 2006

Total Topics: 41
Total Comments: 103
mc19
Posted Jul 25, 2007 - 1:09 AM:

there are something wrong with existed attachments, so I removed the attachment codes on template files, the display is ok but I still got this error at the top of every page.

Warning: Division by zero in /home/jfreehtm/public_html/xxxxx/wsnlinks/commonfuncs.php(758) : eval()'d code on line 11

Warning: Division by zero in /home/jfreehtm/public_html/xxxxxx/wsnlinks/commonfuncs.php(758) : eval()'d code on line 11

Warning: Wrong parameter count for strstr() in /home/jfreehtm/public_html/xxxxx/wsnlinks/commonfuncs.php(758) : eval()'d code on line 11


I tried cleaning the cache, but warning msgs are always there.

Any idea how to get rid of them?

Thanks!
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 26, 2007 - 12:26 AM:

Looks like a problem with either your link importance formula or member rating formula. Admin -> Settings -> Links or Admin -> Members -> Settings.

Unless you have custom template code which involves division.
mc19
Forum Regular

Usergroup: Customer
Joined: May 14, 2006

Total Topics: 41
Total Comments: 103
mc19
Posted Jul 26, 2007 - 5:02 AM:

i just found out, its the condition problem.

I followed this article to make this condition before.
<IF {TID} contains displaylinks.tpl or {TID} contains viewcomments.tpl>
.......
</IF>


If I remove the above codes, the error msg is gone. What is wrong with the above code?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 26, 2007 - 5:19 PM:

Nothing in the conditional divides by zero, so it must be in the content. What's the .......?
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.