 
|
|
 |
|  |
|
|
 |

10-24-07, 07:11
|
|
BOD Member
|
|
Join Date: Jul 2007
Posts: 128
|
|
SQL Error
When I am trying to post a message on my board and I get this:
General Error
SQL ERROR [ mysqli ]
MySQL server has gone away [2006]
SQL
SELECT topic_type, forum_id FROM phpbb_topics WHERE topic_id = 0
BACKTRACE
FILE: includes/db/mysqli.php
LINE: 143
CALL: dbal->sql_error()
FILE: posting.php
LINE: 872
CALL: dbal_mysqli->sql_query()
I don't know how to solve this problem.Please help
|

10-25-07, 10:50
|
|
BOD Member
|
|
Join Date: Oct 2007
Posts: 34
|
|
You may face this problem MySQL connection being terminated due to it being idle longer than 45 seconds(According to setting in my.cnf) this may be because of poor script design.
Generally script are designed such way while posting it preparing the data to be inserted and then make connection to database hosted on the server. But it seems that script used by your site is connect to the database before preparing the data to be inserted. And so whole process take more than 45 sec (According to setting in my.cnf). So either increase the limit in my.cnf or resolve it by making modification in the script.
Glenn
|

10-25-07, 11:34
|
|
BOD Member
|
|
Join Date: Nov 2005
Location: New Mexico
Posts: 273
|
|
Guys,
Even i have been facing the some SQL error on my forum :
rror in posting
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 1172317260, 15, 0, 0, 0)' at line 1
INSERT INTO thaiwahn_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('Euer Delitant', , 1172317260, 15, 0, 0, 0)
Line : 228
File : functions_post.php
Error in posting
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 1172312402, 15, 0, 0, 0)' at line 1
INSERT INTO thaiwahn_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('Seitenzahlen', , 1172312402, 15, 0, 0, 0)
Line : 228
File : functions_post.php
Please advice :(
|

10-26-07, 07:23
|
|
BOD Member
|
|
Join Date: Jul 2007
Posts: 128
|
|
Quote:
Originally Posted by glenn
You may face this problem MySQL connection being terminated due to it being idle longer than 45 seconds(According to setting in my.cnf) this may be because of poor script design.
Generally script are designed such way while posting it preparing the data to be inserted and then make connection to database hosted on the server. But it seems that script used by your site is connect to the database before preparing the data to be inserted. And so whole process take more than 45 sec (According to setting in my.cnf). So either increase the limit in my.cnf or resolve it by making modification in the script.
Glenn
|
I have modified the script and now it start working thanks glenn.
|

10-29-07, 07:48
|
|
BOD Member
|
|
Join Date: Oct 2007
Posts: 34
|
|
Quote:
Originally Posted by Christina
Guys,
Even i have been facing the some SQL error on my forum :
rror in posting
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 1172317260, 15, 0, 0, 0)' at line 1
INSERT INTO thaiwahn_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('Euer Delitant', , 1172317260, 15, 0, 0, 0)
Line : 228
File : functions_post.php
Error in posting
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 1172312402, 15, 0, 0, 0)' at line 1
INSERT INTO thaiwahn_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('Seitenzahlen', , 1172312402, 15, 0, 0, 0)
Line : 228
File : functions_post.php
Please advice :(
|
It seems problem of mysql version conflict. Means script developed for a version mysql 4.X.X and is being used for mysql 4.Y.Y . So you need to make the changes in the script according to the version of mysql which is used to run this script.
Glenn.
|

10-29-07, 11:03
|
 |
Chief Operating Officer
|
|
Join Date: Dec 2006
Posts: 1,087
|
|
Perhaps, you may have to attempt it now. Check in with the versions and let us know if it has worked. 
|

10-30-07, 06:01
|
|
BOD Member
|
|
Join Date: Nov 2005
Location: New Mexico
Posts: 273
|
|
Quote:
Originally Posted by Admin
Perhaps, you may have to attempt it now. Check in with the versions and let us know if it has worked. 
|
Thanks for your reply.
I will check it and let you know soon.
|

10-30-07, 08:39
|
 |
Chief Operating Officer
|
|
Join Date: Dec 2006
Posts: 1,087
|
|
Your welcome. We will await for the updates from your end. 
|

11-03-07, 06:12
|
|
BOD Member
|
|
Join Date: Nov 2005
Location: New Mexico
Posts: 273
|
|
Thanks Glenn,
I had made the changes in the script according to the version and now it is working fine.
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -6. The time now is 23:19.
Powered by vBulletin® Version 3.6.4 Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0

Copyright © 1999-2012, BODHost Ltd. All rights reserved.
|