Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HELP NEEDED - WEBSITE DOWN - $20/10GBP Reward


Chris Richards

Recommended Posts

Hi, please can someone help me!

Out of the blue my website http://www.corinthian-crib.com/store/ has the following error:

 

1016 - Can't open file: 'whos_online.MYI'. (errno: 145)

 

delete from whos_online where time_last_click < '1163510056'

 

[TEP STOP]

 

If someone can tell me EASILY, step-by-step instructions I will transfer $20/10GBP (depending on where you live) to your PayPal account. Please send me an e-mail at [email protected] or I am on MSN at the same address.

Link to comment
Share on other sites

Hi,

you can save the folowing code as a new PHP file, and execute it from your website,

it will return a blank page, after having done that your site hopefully works again:

<?php
require('includes/application_top.php');
tep_db_query("REPAIR TABLE whos_online");
require(DIR_WS_INCLUDES . 'footer.php'); 
?>

this file should be placed in the root of your shop.

Link to comment
Share on other sites

oeps... that would not work including the intire application top..

this would work as a file:

<?php
require('includes/configure.php');
  if (!$connection = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD)) {
	die("Oeps, cannot find server!");
	} else {
	mysql_select_db(DB_DATABASE, $connection);
	function tep_db_error($query, $errno, $error) { 
  		 die('<font color="#000000"><b>' . $errno . ' - ' . $error . '<br><br>' . $query . '<br><br><small><font color="#ff0000">[TEP STOP]</font></small><br><br></b></font>');
		  }
	  function tep_db_query($query) {
			 global $connection;
  			  $result = mysql_query($query, $connection) or tep_db_error($query, mysql_errno(), mysql_error());
			  return $result;
				}
	tep_db_query("REPAIR TABLE whos_online");
mysql_close($connection);
?>

you still need to save this file in the root of your shop, or elsewhere and correct the following:

require('includes/configure.php');

 

this is in case no phpmyadmin is available, or you do not know how that works.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...