Author Topic: I have this error: Warning: Division by zero in /home/dragos/public_html/4i/incl  (Read 3706 times)

0 Members and 1 Guest are viewing this topic.

Offline mayashu

  • Newbie
  • *
  • Posts: 20
    • View Profile
Hello.

I have this error in the top of the index.php and categories.php page:

Warning: Division by zero in /home/dragos/public_html/4i/includes/functions.php on line 1132

but on that line i have this:

Code: [Select]
$cattable_width = ceil((intval($config['cat_table_width'])) / $config['cat_cells']);
What is the problem? I realy don't get it

Can anyone help me?

Thank you,
Dragos Popovici




Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
... check in your ACP -> "Categroy settings" ...
... and there "Number of table cells" ... must be > 0 ... !
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline mayashu

  • Newbie
  • *
  • Posts: 20
    • View Profile
thank you
Indeed it solves my problem

Dragos Popovici

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
... thank you for the return information ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...