Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Getting this error and bad slow downs


grantkustoms

Recommended Posts

Posted

Fatal error: Maximum execution time of 30 seconds exceeded in D:\Inetpub\wwwroot\grantkustoms.com\catalog\includes\functions\database.php on line 44

 

I only get the error after the 1st two pages. Theres the Top page then the main catalog page, then anything selected from that page gives me this error. On a side note I do not get this error anywhere when I am on the admin side of my site. I only get it when viewing this page as if I was a customer.

 

Any help would be great, my web people seem to be stumped.

Posted

Line

 

40

 

to

 

49

 

Should look like this:

 

    if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {
     error_log('QUERY ' . $query . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);
   }

   $result = mysql_query($query, $$link) or tep_db_error($query, mysql_errno(), mysql_error());

   if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {
      $result_error = mysql_error();
      error_log('RESULT ' . $result . ' ' . $result_error . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);
   }

Posted

Line

 

40

 

to

 

49

 

Should look like this:

 

    if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {
     error_log('QUERY ' . $query . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);
   }

   $result = mysql_query($query, $$link) or tep_db_error($query, mysql_errno(), mysql_error());

   if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {
      $result_error = mysql_error();
      error_log('RESULT ' . $result . ' ' . $result_error . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);
   }

 

thanks, I forwarded this to my web people. Hope this fixes it

Archived

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

×
×
  • Create New...