Current time: 05-18-2012, 12:37 AM Hello There, Guest! (LoginRegister)

Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error at upgrade
12-03-2008, 08:22 PM
Post: #1
Error at upgrade
I'm getting this error when trying to upgrade from patch 2 Sad

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/user/public_html/tht/install/index.php on line 111

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/user/public_html/tht/install/index.php on line 112
Your current version doesn't match the required upgrade version. Please upgrade to every version, you can't jump versions.
Find all posts by this user
12-03-2008, 10:17 PM
Post: #2
RE: Error at upgrade
That's because your conf file was deleted (overwritten).

Kevin Mark - TheHostingTool Lead Developer
Visit this user's website Find all posts by this user
12-03-2008, 10:28 PM
Post: #3
RE: Error at upgrade
But in no place said anything about it! Sad
Find all posts by this user
12-03-2008, 10:56 PM
Post: #4
RE: Error at upgrade
I know. I had the same problem. Here is how to fix it.

In your now empty conf file put this:
PHP Code:
<?
//////////////////////////////
// The Hosting Tool
// SQL Config
// By Jonny H
// Released under the GNU-GPL
//////////////////////////////

//Are we being called by the script?
if(THT != 1){die("FATAL: Trying to hack?");}

//MAIN SQL CONFIG - Change values accordingly
$sql['host'] = "%HOST%"#The mySQL Host, usually default - localhost
$sql['user'] = "%USER%"#The mySQL Username
$sql['pass'] = "%PASS%"#The mySQL Password
$sql['db'] = "%DB%"#The mySQL DB, remember to have your username prefix
$sql['pre'] = "%PRE%"#The mySQL Prefix, usually default unless otherwise
?>

Change your details to yours. It should work after this! Smile

Kevin Mark - TheHostingTool Lead Developer
Visit this user's website Find all posts by this user
12-04-2008, 12:31 AM
Post: #5
RE: Error at upgrade
That seemed to work, thanks a lot Smile
Find all posts by this user
12-04-2008, 09:10 AM
Post: #6
RE: Error at upgrade
It wiped your conf? Oh ok. Why did it work with mine? You know you shoudl CHMOD your config back right? Leaving it at 777 will leave it open to some nasty hacks.

Jonny H - THT Main Developer & Founder
Find all posts by this user
12-04-2008, 04:57 PM
Post: #7
RE: Error at upgrade
(12-04-2008 12:31 AM)Erizo Wrote:  That seemed to work, thanks a lot Smile

No problem. Wink
(12-04-2008 09:10 AM)Jonny Wrote:  It wiped your conf? Oh ok. Why did it work with mine? You know you shoudl CHMOD your config back right? Leaving it at 777 will leave it open to some nasty hacks.

Well the manual doesn't say to CHMOD it back to 644 or whatever. Tongue Some programs require to have your conf file writable by php.

Kevin Mark - TheHostingTool Lead Developer
Visit this user's website Find all posts by this user
12-04-2008, 04:58 PM
Post: #8
RE: Error at upgrade
But i didn't had it at 777 o.o
Find all posts by this user
12-04-2008, 04:59 PM
Post: #9
RE: Error at upgrade
Did you have it at 644?

Kevin Mark - TheHostingTool Lead Developer
Visit this user's website Find all posts by this user
12-04-2008, 04:59 PM
Post: #10
RE: Error at upgrade
Hmmm, you do know the conf.inc.php will get wiped when you upload all the includes folder? I updated the upgrade doc to make it clear.

Jonny H - THT Main Developer & Founder
Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: