This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Error Message "Sorry, there is a database problem."
#1

Hey guys,

after installing and integrating commentics, I get following error message on the site where the comments section should be …

"Sorry, there is a database problem.
Please check back shortly. Thanks."

So far everything is working fine in the admin panel, I got no error messages during installation and did all the to dos in the dashboard area.

Any idea who to solve this problem?

Thanks for your help.

PS: I didn't find information about this issue in the FAQ/Forum.
Reply
#2

Hi,

Can you open /upload/includes/db/connect.php and after this line:

PHP Code:
<?php 
$cmtx_db_ok
= true;

Add this:

PHP Code:
<?php 
define
('CMTX_IN_ADMIN', true);

This will make the script think that the database connection is being called from within the admin panel so it should give proper error messages.

Have you completed the interview?
Reply
#3

(29-Aug-2014, 10:18 PM)Steven Wrote:  Hi,

Can you open /upload/includes/db/connect.php and after this line:

PHP Code:
<?php 
$cmtx_db_ok
= true;

Add this:

PHP Code:
<?php 
define
('CMTX_IN_ADMIN', true);

This will make the script think that the database connection is being called from within the admin panel so it should give proper error messages.

That's what I got.


Quote:Warning: defined() expects exactly 1 parameter, 2 given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/connect.php on line 35
Commentics

Sorry, there is a database problem.

Please check back shortly. Thanks.


Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 39

Warning: mysqli_errno() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 45

Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 58

Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 39

Warning: mysqli_errno() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 45

Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 58

Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 39

Warning: mysqli_errno() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 45

Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 58

Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 39

Warning: mysqli_errno() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 45

Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 58

Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 39

Warning: mysqli_errno() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 45

Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 58

Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 39

Warning: mysqli_errno() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 45

Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 58

Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 39

Warning: mysqli_errno() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 45

Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 58

Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 39

Warning: mysqli_errno() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 45

Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 58

Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 39

Warning: mysqli_errno() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 45

Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 58

Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 39

Warning: mysqli_errno() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 45

Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 58

Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 39

Warning: mysqli_errno() expects parameter 1 to be mysqli, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 45

Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in /www/htdocs/v167513/maximilianseib/blog/comments/includes/db/functions.php on line 58

Warning: require_once(comments/includes/language//page.php): failed to open stream: No such file or directory in /www/htdocs/v167513/maximilianseib/blog/comments/includes/bootstrap/language.php on line 63

Fatal error: require_once(): Failed opening required 'comments/includes/language//page.php' (include_path='.:/usr/share/php:..') in /www/htdocs/v167513/maximilianseib/blog/comments/includes/bootstrap/language.php on line 63
Reply
#4

Okay. From the errors that you've posted, it looks like you've modified the following line so that it has two parameters when that line should have stayed the same.

PHP Code:
<?php 
if (defined('CMTX_IN_ADMIN')) {

I suspect that the main issue is that the following line isn't including the database details file. So what you could try is copying the contents of /upload/includes/db/details.php into the top of the /upload/includes/db/connect.php file.

PHP Code:
<?php 
require_once 'details.php'; //load database details

If that doesn't work then if you want you can submit a support ticket using the link below with your site and FTP details and I'll take a look when I next get chance.

http://www.commentics.org/support/index.php?a=add

Have you completed the interview?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by MattyP
11-Apr-2020, 08:08 PM
Last Post by amwassil
06-Jan-2018, 01:13 AM
Last Post by wmbower
26-Feb-2017, 07:19 PM
Last Post by daniel
20-Jan-2017, 06:32 PM
Last Post by pizzaboi
17-Nov-2016, 10:38 PM
Last Post by pizzaboi
17-Nov-2016, 08:12 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)