Posts: 48
Threads: 11
Joined: Dec 2013
when I click on the thumbs up/down I receive this error
Quote:Sorry, there is a database problem.
Please check back shortly. Thanks.
It never worked
Posts: 2,905
Threads: 59
Joined: Jun 2010
Can you open /comments/includes/db/connect.php
There should be 3 instances of this line:
cmtx_db_error_general();
Above each instance, add a unique echo, like this:
echo '1';
cmtx_db_error_general();
..
echo '2';
cmtx_db_error_general();
etc
Then try to vote again and see which number displays.
You can then remove the echo lines.
Have
you completed
the interview?
Posts: 2,905
Threads: 59
Joined: Jun 2010
(31-Dec-2013, 01:30 PM)mariank Wrote: It never worked
It hasn't ever worked, you mean?
Have
you completed
the interview?
Posts: 48
Threads: 11
Joined: Dec 2013
yes - I mean it hasn't ever worked - I said that cause the message they gave made it sound a temporary problem so I was saying it wasn't a temporary problem - it never worked
I'll try with the echo lines and see what we find
Posts: 48
Threads: 11
Joined: Dec 2013
(31-Dec-2013, 05:48 PM)Steven Wrote: Can you open /comments/includes/db/connect.php
There should be 3 instances of this line:
cmtx_db_error_general();
Above each instance, add a unique echo, like this:
echo '1';
cmtx_db_error_general();
..
echo '2';
cmtx_db_error_general();
etc
Then try to vote again and see which number displays.
You can then remove the echo lines.
Sorry I disappeared - Hostgator must have been having a wild New Year's party - I couldn't get my site,FTP,control panel
OK - I put in those lines and they're always 1 - so the problem is at the first one
Posts: 2,905
Threads: 59
Joined: Jun 2010
Have
you completed
the interview?
Posts: 48
Threads: 11
Joined: Dec 2013
This is the error I get for a thumbs up (in green)
Quote:Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'michalk'@'localhost' (using password: NO) in /home2/michalk/public_html/childchat.org/comments/includes/db/connect.php on line 39
Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home2/michalk/public_html/childchat.org/comments/includes/db/connect.php on line 40
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home2/michalk/public_html/childchat.org/comments/includes/db/connect.php on line 40
: 1
Commentics
Sorry, there is a database problem.
Please check back shortly. Thanks.
Dislike0
This is the warning for a thumbs down (in red)
Quote:Randy says...
Another City Mini lover
PermalinkPermalink
FlagFlag
Like0
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'michalk'@'localhost' (using password: NO) in /home2/michalk/public_html/childchat.org/comments/includes/db/connect.php on line 39
Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home2/michalk/public_html/childchat.org/comments/includes/db/connect.php on line 40
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home2/michalk/public_html/childchat.org/comments/includes/db/connect.php on line 40
: 1
Commentics
Sorry, there is a database problem.
Please check back shortly. Thanks.
If I choose flag I get this message in blue
Quote:Sherry says...
I'm a BoB revolution lover
PermalinkPermalink
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'michalk'@'localhost' (using password: NO) in /home2/michalk/public_html/childchat.org/comments/includes/db/connect.php on line 39
Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home2/michalk/public_html/childchat.org/comments/includes/db/connect.php on line 40
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home2/michalk/public_html/childchat.org/comments/includes/db/connect.php on line 40
: 1
Commentics
Sorry, there is a database problem.
Please check back shortly. Thanks.
Posts: 2,905
Threads: 59
Joined: Jun 2010
Have
you completed
the interview?
Posts: 48
Threads: 11
Joined: Dec 2013
That's it! Putting the connection variables right in the connect file worked perfectly
thanks