Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • charles1 Friend
    #119086

    Hello,

    I get this warning on top of the pages with Pollux and I don’t know how to deal with it..

    Warning: Division by zero in /usr/home/frits/domains/xxxx.nl/public_html/templates/ja_pollux/index.php on line 40

    Lan Jen

    Michael Casha Friend
    #215387

    Line 40 and 41 are the following:

    $ja_headerimg = $ja_header_images [getCurrentMenuIndex() % count($ja_header_images)];
    if (!is_file(“$ja_template_absolute_path/images/$ja_color/$ja_headerimg”)) $ja_headerimg = $ja_header_images [0];

    I’m guessing that it’s in fact not finding the header image correctly and hence producing that error message.

    ha le-viet Developer
    #215391

    Hi charles1,

    Change line 40 to
    if (count($ja_header_images)) $ja_headerimg = $ja_header_images [getCurrentMenuIndex() % count($ja_header_images)];

    It should solve your problem.

    Regards,
    Ha Le-Viet.

    Michael Casha Friend
    #215395

    Ha Le-Viet;9334Hi charles1,

    Change line 40 to
    if (count($ja_header_images)) $ja_headerimg = $ja_header_images [getCurrentMenuIndex() % count($ja_header_images)];
    It should solve your problem.

    Regards,
    Ha Le-Viet.

    In case you do not now how to edit the PHP I have attached the patched file.


    1. index.zip
    charles1 Friend
    #215419

    Ha Le-Viet, you are realy the best. This solved the problem. Thanks a lot!

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 3 voices, and was last updated by  charles1 17 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum