Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

strange error from nowhere


808smokey

Recommended Posts

I just started to get this error

Fatal error: Maximum execution time of 30 seconds exceeded in /hsphere/local/home/pzq0qw/aplus-computersonline.com/catalog/includes/functions/general.php on line 1162
Is that just my host slowing down because I've been getting random errors like that for the past few hours. Before that it was on line 1154, then 11XX at the bottom of the product pages and homepage. Then my category list gave the same error waited a few minutes reloaded the page and it was fixed???

 

If it's not the server how should I fix this?

 

Here's the code for those lines:

if (!isset($seeded)) {

      mt_srand((double)microtime()*1000000);

      $seeded = true;

    }

 

    if (isset($min) && isset($max)) {

      if ($min >= $max) {

        return $min;

      } else {

        return mt_rand($min, $max);

      }

    } else {

      return mt_rand();

    }

  }

 

Thanks

Link to comment
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...