Forums / Cotonti / Support / Error while publishing

Kingsley
#1 2010-01-23 20:42
When I publish a news item for the first time I get this error:

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/ecutionerz/domains/x-ecutionerz.com/public_html/site/system/database.mysql.php on line 219

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/ecutionerz/domains/x-ecutionerz.com/public_html/site/system/database.mysql.php on line 96
X-EcutionerZ
2010-01-23 12:40
Fatal error : SQL error : 

Strange thing is that the news item, after refreshing the page, is published.

Looked at the code, but I can't make something of it.
Can some one tell me what's wrong?
Trustmaster
#2 2010-01-24 01:54
Please edit your datas/config.php and set there
define('SED_DEBUG', true);
It will produce more verbose output for that error. Post it here again please.
May the Source be with you!
Kingsley
#3 2010-01-24 13:25
As you wish :)

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/ecutionerz/domains/x-ecutionerz.com/public_html/site/system/database.mysql.php on line 219

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/ecutionerz/domains/x-ecutionerz.com/public_html/site/system/database.mysql.php on line 96

#0  sed_diefatal(SQL error : ) called at [/home/ecutionerz/domains/x-ecutionerz.com/public_html/site/system/database.mysql.php:219]
#1  sed_sql_query(UPDATE sed_pages SET page_state='0' WHERE page_id='81', Plugins/autovalidation) called at [/home/ecutionerz/domains/x-ecutionerz.com/public_html/site/plugins/autovalidation/autovalidation.php:32]
#2  include_once(/home/ecutionerz/domains/x-ecutionerz.com/public_html/site/plugins/autovalidation/autovalidation.php) called at [/home/ecutionerz/domains/x-ecutionerz.com/public_html/site/system/core/page/page.add.inc.php:184]
#3  require_once(/home/ecutionerz/domains/x-ecutionerz.com/public_html/site/system/core/page/page.add.inc.php) called at [/home/ecutionerz/domains/x-ecutionerz.com/public_html/site/page.php:26]

X-EcutionerZ
2010-01-24 05:26
Fatal error : SQL error : 

Trustmaster
#4 2010-01-24 16:54
Please uninstall the autovalidation plugin. It is neither necessary, nor working anymore.
May the Source be with you!
Kingsley
#5 2010-01-24 20:15
thta simple huh..

thx man.., got to remember that debug thingy..