test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • aciex Friend
    #120537

    hi all.
    Im getting this error on my website.
    It had runs smooth for 5 months with JA Bellatrix template now and today i got this error then im open the site.

    Warning: Division by zero in /home/.evander/aciex/katteportal.com/templates/ja_bellatrix/index.php on line 40

    what is the problem ?
    please help anyone.

    all the template mess up then the site had loaded >:(

    Michael Casha Friend
    #221148

    Open index.php in /templates/ja_bellatrix/ and replace:

    $ja_headerimg = $ja_header_images [getCurrentMenuIndex() % count($ja_header_images)];
    on line 40 with:

    if (count($ja_header_images)) $ja_headerimg = $ja_header_images [getCurrentMenuIndex() % count($ja_header_images)];

    aciex Friend
    #221158

    thanks you MiCCAS.

    It works fine again after i paste the new code in line 40 😀

    planethurf Friend
    #230838

    Thanks for that solution. It worked perfectly!:D

    Is this caused be my webhost updating some PHP stuff perhaps??? – I know that I made no changes before it all went screwy!

    Any ideas?

    I just need to scratch this particular itch!

    Michael Casha Friend
    #230839

    <em>@planethurf 29396 wrote:</em><blockquote>Thanks for that solution. It worked perfectly!:D

    Is this caused be my webhost updating some PHP stuff perhaps??? – I know that I made no changes before it all went screwy!

    Any ideas?

    I just need to scratch this particular itch!</blockquote>
    Not sure to be honest, but I’m glad to see it worked fine.

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

This topic contains 5 replies, has 3 voices, and was last updated by  Michael Casha 17 years, 2 months ago.

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