Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-13 16:52:44

skimes
New Member
Registered: 2008-02-13
Posts: 8

my comments stopped working

Help!

I had a txp site up and running for a while then made changes that evidently broke my comments. I can click on comment, fill out the comment form and hit preview and it is ok, after clicking submit it gives me a 404 error and says unknown section.

I have the following forms: comments, comment_form and comments_display,

the url that comes along with the resulting 404 error is:

http://www.dsk4wva.com/article/27/complaint_cpreview_cpreview#cpreview

so what did I break? thanks

Offline

#2 2008-02-13 17:16:37

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: my comments stopped working

Off-topic: you’ve got two comments_error tags in your comments_form.

Try a tag trace.

Offline

#3 2008-02-13 17:46:25

skimes
New Member
Registered: 2008-02-13
Posts: 8

Re: my comments stopped working

<br />
<b>Warning</b>: MySQL server has gone away
select message,name from txp_discuss where name=‘DSK’ and message=’ <p>hello</p>\n\n’ and ip=‘75.108.32.209’
textpattern/lib/txplib_db.php:199 getRow() in <b>/home/dsk4wvac/public_html/textpattern/lib/txplib_db.php</b> on line <b>84</b><br />
<br />
<b>Warning</b>: MySQL server has gone away
delete from txp_discuss_nonce where issue_time < date_sub(now(),interval 10 minute)
textpattern/publish/comment.php:473 safe_delete() in <b>/home/dsk4wvac/public_html/textpattern/lib/txplib_db.php</b> on line <b>84</b><br />

<br />
<b>Warning</b>: MySQL server has gone away
select * from txp_discuss_nonce where nonce=‘ccd73e83a5f8d8c6f71949b3baee3bac’ and used = 0
textpattern/lib/txplib_db.php:199 getRow() in <b>/home/dsk4wvac/public_html/textpattern/lib/txplib_db.php</b> on line <b>84</b><br />
<br />
<b>Warning</b>: MySQL server has gone away
select host from txp_log where ip=‘75.108.32.209’ limit 1
textpattern/publish/log.php:39 safe_field() in <b>/home/dsk4wvac/public_html/textpattern/lib/txplib_db.php</b> on line <b>84</b><br />
<br />

<b>Warning</b>: MySQL server has gone away
insert into txp_log set `time`=now(),page=’/article/27/complaint’,ip=‘75.108.32.209’,host=‘75.108.32.209’,refer=’‘,status=‘200’,method=‘POST
textpattern/publish/log.php:66 safe_insert() in <b>/home/dsk4wvac/public_html/textpattern/lib/txplib_db.php</b> on line <b>84</b><br />
<br />
<b>Warning</b>: MySQL server has gone away
select user_html from txp_page where name=‘default’
textpattern/publish.php:443 safe_field() in <b>/home/dsk4wvac/public_html/textpattern/lib/txplib_db.php</b> on line <b>84</b><br />
<br />
<b>Warning</b>: MySQL server has gone away
select user_html from txp_page where name=‘error_404’
textpattern/lib/txplib_misc.php:1536 safe_field() in <b>/home/dsk4wvac/public_html/textpattern/lib/txplib_db.php</b> on line <b>84</b><br />

<br />
<b>Warning</b>: MySQL server has gone away
select user_html from txp_page where name=‘error_default’
textpattern/lib/txplib_misc.php:1538 safe_field() in <b>/home/dsk4wvac/public_html/textpattern/lib/txplib_db.php</b> on line <b>84</b><br />
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“en” lang=“en”>
<head> <meta http-equiv=“content-type” content=“text/html; charset=utf-8” /> <title>Textpattern Error: 404 Not Found</title>
</head>

<body>
<p align=“center” style=“margin-top:4em”>Unknown section</p>
</body>
</html>

Offline

#4 2008-02-13 18:11:45

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: my comments stopped working

Okay, are you able to examine your Txp database and see if any tables need repairing?

Offline

#5 2008-02-14 01:56:48

skimes
New Member
Registered: 2008-02-13
Posts: 8

Re: my comments stopped working

I checked and didn’t see anything that needs repairing, but who knows, maybe I will just disable commenting

Offline

#6 2008-02-14 20:42:27

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: my comments stopped working

It’s got nothing to do with comments. The error you’re getting is MySQL server has gone away. Something is happening to cause that, which is causing all the following database queries to fail.

Would you post your “high” diagnostics and try running this query manually:

SELECT message, name FROM txp_discuss WHERE name = 'DSK' AND message = '<p>hello</p>\n\n' AND ip = '75.108.32.209';

What result do you get?

Offline

#7 2008-02-14 21:37:01

skimes
New Member
Registered: 2008-02-13
Posts: 8

Re: my comments stopped working

Error

SQL-query :

SELECT `txp_discuss`.`message`

MySQL said:

Unknown table ‘txp_discuss’ in field list

Database dsk4wvac_textpattern – Table txp_discuss running on localhost Structure Browse SQL Select Insert Export Operations Options Empty Drop

Field Type Attributes Null Default Extra Action discussid int(6) UNSIGNED ZEROFILL No auto_increment Change Drop Primary Index Unique Fulltext parentid int(8) No 0 Change Drop Primary Index Unique Fulltext name varchar(255) No Change Drop Primary Index Unique Fulltext email varchar(50) No Change Drop Primary Index Unique Fulltext web varchar(255) No Change Drop Primary Index Unique Fulltext ip varchar(100) No Change Drop Primary Index Unique Fulltext posted datetime No 0000-00-00 00:00:00 Change Drop Primary Index Unique Fulltext message text No Change Drop Primary Index Unique Fulltext visible tinyint(4) No 1 Change Drop Primary Index Unique Fulltext

Offline

#8 2008-02-14 21:53:21

skimes
New Member
Registered: 2008-02-13
Posts: 8

Re: my comments stopped working

now i am getting this with no results, so the comment isn’t being inserted?:

Database dsk4wvac_textpattern – Table txp_discuss running on localhost Your SQL-query has been executed successfully SQL-query : [Edit] [Explain SQL] [Create PHP Code] SELECT message, name FROM txp_discuss WHERE name = ‘DSKAND message = ‘<p>hello</p>\n\n’ AND ip = ’75.108.32.209’ LIMIT 0 , 30

Offline

#9 2008-02-15 01:58:26

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: my comments stopped working

now i am getting this with no results, so the comment isn’t being inserted?

That’s not what the query is for. But that does tell us that it is something earlier where MySQL is failing. What we need is to be able to look at your MySQL logs. Contact your host, tell them about the “MySQL has gone away” message, and see if they can determine where and when it is happening.

Offline

#10 2008-02-18 16:48:32

skimes
New Member
Registered: 2008-02-13
Posts: 8

Re: my comments stopped working

contacting host is always a great waste of time and nothing more, I sent them a message but have not heard from them, i did look under admin-diagnostics-preflight check and it is giving me this:

Pre-flight check
mysql_table_errors: txp_log: error: Size of datafile is: 759708 Should be: 782320,
txp_log: error: Corrupt

does this tell me anything? how do i fix?

Offline

#11 2008-02-18 16:55:09

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: my comments stopped working

Fire up PHPmyAdmin and repair the txp_log table.

Offline

#12 2008-02-18 17:09:55

skimes
New Member
Registered: 2008-02-13
Posts: 8

Re: my comments stopped working

well i had tried that before but it wouldn’t let me because the table was in use but today it worked, but my mysql errors are still there, mysql has gone away when submitting comments,

Offline

Board footer

Powered by FluxBB