Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-08-29 09:39:03

carrotrope
Member
From: Edinburgh
Registered: 2007-03-16
Posts: 39

Desperate database issue

Hi,

Very worried here. I was in the process of upgrading to 4.2.0 and accidentally overwrote the old config.php file. It’s been a long time since I dealt with the MySQL side of things on this host, so had completely forgotten the details, and tried a fresh install, just so it would spit out the correct elements in the new config.php. Now I’m getting this – www.zeegen.com and this – www.zeegen.com/textpattern

Have I overwritten the database? Have I completely wiped all the previous information that was there? (pages, sections, CSS, etc..) is there any way this has a happy ending?

Thanks!
Jez

Offline

#2 2009-08-29 11:12:14

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Desperate database issue

I don’t think it’s possible to overwrite the database this way. Do you have access to it through phpMyAdmin? You can check the database name and the table prefix (if any) there.

Offline

#3 2009-08-29 11:14:22

carrotrope
Member
From: Edinburgh
Registered: 2007-03-16
Posts: 39

Re: Desperate database issue

I do, and all the database details now in config.php are correct, but yet I still get all those errors and have no idea how to rectify them and get Textpattern working again…

Offline

#4 2009-08-29 11:18:02

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Desperate database issue

Installing 4.2.0 via FTP isn’t going to change or affect your DB, so I would suggest you start by checking you have all the files in place – try overwriting all the files again and take particular care to follow the instructions.

Then I would check the contents of the database you used before upgrading – are the contents still in that db?

Offline

#5 2009-08-29 11:32:02

carrotrope
Member
From: Edinburgh
Registered: 2007-03-16
Posts: 39

Re: Desperate database issue

Hi,

So I’ve uploaded all the 4.2.0 files as detailed in the Upgrading section of the readme file and I’m still getting the exact same errors. On the front page:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/home/zeegenc1/textpattern/lib/txplib_misc.php on line 180

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/home/zeegenc1/textpattern/lib/txplib_misc.php on line 180

Unknown section

And when I try to access the admin section:

Warning: Table ‘DB13241219.txp_textpattern’ doesn’t exist describe `txp_textpattern` in /var/www/home/zeegenc1/textpattern/lib/txplib_db.php on line 85

Warning: Cannot modify header information – headers already sent by (output started at /var/www/home/zeegenc1/textpattern/lib/txplib_db.php:85) in /var/www/home/zeegenc1/textpattern/lib/txplib_misc.php on line 1823

Warning: Table ‘DB13241219.txp_txp_page’ doesn’t exist select user_html from txp_txp_page as txp_page where name=‘error_503’ in /var/www/home/zeegenc1/textpattern/lib/txplib_db.php on line 85

Warning: Table ‘DB13241219.txp_txp_page’ doesn’t exist select user_html from txp_txp_page as txp_page where name=‘error_default’ in /var/www/home/zeegenc1/textpattern/lib/txplib_db.php on line 85

Warning: Cannot modify header information – headers already sent by (output started at /var/www/home/zeegenc1/textpattern/lib/txplib_db.php:85) in /var/www/home/zeegenc1/textpattern/lib/txplib_misc.php on line 1887

DB-Connect was succesful, but the textpattern-table was not found.

I have looked in phpMyAdmin and all the content seems to be there…
Jez

Offline

#6 2009-08-29 11:36:00

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Desperate database issue

Is this DB13241219 the same DB that you had before, or the one you used for the fresh install?

Offline

#7 2009-08-29 11:37:35

carrotrope
Member
From: Edinburgh
Registered: 2007-03-16
Posts: 39

Re: Desperate database issue

The same DB.

Offline

#8 2009-08-29 11:39:00

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Desperate database issue

Try repairing it via phpMyAdmin.

Offline

#9 2009-08-29 11:42:03

carrotrope
Member
From: Edinburgh
Registered: 2007-03-16
Posts: 39

Re: Desperate database issue

Repaired everything, still no change.

Offline

#10 2009-08-29 11:46:52

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Desperate database issue

Do your tables actually have the prefix txp_?

Last edited by els (2009-08-29 11:47:20)

Offline

#11 2009-08-29 11:48:16

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Desperate database issue

Can you post the contents of your config.php file? Just take out the password and username :-)

Offline

#12 2009-08-29 11:50:51

carrotrope
Member
From: Edinburgh
Registered: 2007-03-16
Posts: 39

Re: Desperate database issue

Els – yep! Everything but the ‘textpattern’ table has the txp_ prefix (which is the same on all my other installations of Textpattern).

Jonathan – sure! Here it is:

<?php
$txpcfg[‘db’] = ‘DB13241219’;
$txpcfg[‘user’] = ‘**********’;
$txpcfg[‘pass’] = ‘**********’;
$txpcfg[‘host’] = ’213.188.134.182’;
$txpcfg[‘table_prefix’] = ‘txp_’;
$txpcfg[‘txpath’] = ‘/var/www/home/zeegenc1/textpattern’;
$txpcfg[‘dbcharset’] = ‘latin1’;
?>

Offline

Board footer

Powered by FluxBB