FAQ

PCPIN Chat / IP filter not configured

PCPIN Chat is a legacy PHP chat system still used by a number of existing community websites:

  • Project Website: pcpin.com
  • Affected Version: 6.23 (released July 3, 2013)

Because the software has not been updated in over a decade, newer MySQL/MariaDB versions encounter compatibility issues with the pcpin_ipfilter table.

Error Message: IP filter not configured

Step-by-Step Fix via phpMyAdmin

  1. Open the cPanel control panel of your webhosting package.
  2. Launch “phpMyAdmin”.
  3. Select your PCPIN database in the left sidebar.
  4. Click on the “SQL” tab at the top.
  5. Paste the following SQL query into the editor (adjust the table prefix pcpin_ if you used a custom prefix during installation) and click “Go”:
DROP TABLE IF EXISTS `pcpin_ipfilter`;
CREATE TABLE `pcpin_ipfilter` (
  `id` int(11) NOT NULL,
  `address` varchar(45) CHARACTER SET ascii NOT NULL DEFAULT '',
  `added_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `expires` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `description` text NOT NULL,
  `action` enum('d','a') NOT NULL DEFAULT 'd',
  `type` varchar(4) CHARACTER SET ascii COLLATE ascii_bin NOT NULL DEFAULT 'IPv4'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0;

INSERT INTO `pcpin_ipfilter` (`id`, `address`, `added_on`, `expires`, `description`, `action`, `type`) VALUES
(1, '*.*.*.*', '2017-06-04 22:40:10', '0000-00-00 00:00:00', 'This rule allows all IPv4 addresses', 'a', 'IPv4'),
(2, '*', '2017-06-04 22:40:10', '0000-00-00 00:00:00', 'This rule allows all IPv6 addresses', 'a', 'IPv6');

ALTER TABLE `pcpin_ipfilter`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `address_2` (`address`,`action`),
  ADD KEY `address` (`address`),
  ADD KEY `added_on` (`added_on`),
  ADD KEY `expires` (`expires`),
  ADD KEY `action` (`action`),
  ADD KEY `type` (`type`);

Your PCPIN Chat installation will now work properly again.