Posts: 2
Threads: 1
Joined: Aug 2014
(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
Posts: 2,894
Threads: 59
Joined: Jun 2010
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