MyBB Community Forums

Full Version: Polls Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Now i'm sure others are not having this issue, but i am however and i need some help lol.

I do have the php omitted error but i am not sure if it is actually my php and mysql configuration causing the issue or if it's due to a bad plugin i had installed.

This issue only occurs when voting on the poll, does not happen when creating the poll.

Error:
Notice: Undefined index: pconnect in xxx/inc/db_mysqli.php on line 189
Notice: Undefined offset: 1 in xxx/inc/db_mysqli.php on line 199
Notice: Undefined index: write in xxx/inc/db_mysqli.php on line 169
Notice: Constant TABLE_PREFIX already defined in xxx/inc/functions.php on line 186

Versions:
  • Php 5.2.17
  • MySQL 5.0.51a

^ Pretty much what every major host is running atm.

Errors with code show as:

db_mysqli.php (189)
if($single_connection['pconnect'] && version_compare(PHP_VERSION, '5.3.0', '>='))

db_mysqli.php (199)
list($hostname, $port) = explode(":", $single_connection['hostname'], 2);

db_mysqli.php (169)
if(!is_array($connections[$type]))

functions.php (186)
define("TABLE_PREFIX", $config['database']['table_prefix']);

MyBB Version:
  • 1.6.5
Plugins currently installed:
  • Admin CP Honeypot (1.0)
  • Forum Affiliates Manager (1.1)
  • Default Profile (2.0)
  • Game Section (1.2.1)
  • Links and Attachments lock until post (1.2)
  • IP Manager (0.1)
  • My Awards (1.6)
  • MyShowcase System (2.3.0)
  • NewPoints (1.9.3)
  • Page Manager (1.5.2)
  • ProStats (1.9.4)
  • Style Usernames (1.5)
  • Tabbed Menu (1.1)

Help would be greatly appreciated, thanks.