Codoforum related discussions
MySQLi_connect() Error when posting a topic

I've just installed CodoForum and am getting an error (See Attached screenshot) when posting a new topic.

55809816c6422.png

The topic posts OK but the error remains.

Has anyone seen this before or know how to fix it.

Thanks
Steve

I've just installed CodoForum and am getting an error (See Attached screenshot) when posting a new topic. ![55809816c6422.png](serve/attachment&path=55809816c6422.png) The topic posts OK but the error remains. Has anyone seen this before or know how to fix it. Thanks Steve

Steve Counsell
Blogger, Speaker, & Photographer
stevecounsell.com

edited Jun 16 '15 at 10:43 pm

Can you temporary turn off the debug mode?

Open index.php and modify it like this:

<?php

/*
 * @CODOLICENSE
 */
//phpinfo();

// ini_set('xdebug.var_display_max_depth', '100');
ini_set("display_errors", "off");

//echo phpversion();
date_default_timezone_set('Europe/London');

error_reporting(0);

define('IN_CODOF', true);

//contains config.php and path definitions
require 'sys/load.php';
//everything related to routing
require 'routes.php';
Can you temporary turn off the debug mode? Open index.php and modify it like this: ``` &amp;lt;?php /* * @CODOLICENSE */ //phpinfo(); // ini_set(&#039;xdebug.var_display_max_depth&#039;, &#039;100&#039;); ini_set(&quot;display_errors&quot;, &quot;off&quot;); //echo phpversion(); date_default_timezone_set(&#039;Europe/London&#039;); error_reporting(0); define(&#039;IN_CODOF&#039;, true); //contains config.php and path definitions require &#039;sys/load.php&#039;; //everything related to routing require &#039;routes.php&#039;; ```
NguoiAnPhu.com Powered by Codoforum 4.3 (https://github.com/nguoianphu/codoforums-vietnam).
244
2
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft