<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Spam registrations]]></title>
		<link>https://punbb.informer.com/forums/topic/30817/spam-registrations/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/30817/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Spam registrations.]]></description>
		<lastBuildDate>Mon, 09 Dec 2019 11:56:15 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Spam registrations]]></title>
			<link>https://punbb.informer.com/forums/post/158415/#p158415</link>
			<description><![CDATA[<p>Please test 1.3.54.3 <a href="http://punbb.informer.com/forums/post/158414/#p158414">http://punbb.informer.com/forums/post/158414/#p158414</a></p>]]></description>
			<author><![CDATA[null@example.com (Visman)]]></author>
			<pubDate>Mon, 09 Dec 2019 11:56:15 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/158415/#p158415</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam registrations]]></title>
			<link>https://punbb.informer.com/forums/post/158400/#p158400</link>
			<description><![CDATA[<p>Many many Thanks.<br />I will now try this corrected file on my main (living) forum.</p>]]></description>
			<author><![CDATA[null@example.com (Katryne)]]></author>
			<pubDate>Thu, 28 Nov 2019 14:39:00 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/158400/#p158400</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam registrations]]></title>
			<link>https://punbb.informer.com/forums/post/158399/#p158399</link>
			<description><![CDATA[<p>&gt;What should I do now ? <br />If you still have changes from this <a href="http://punbb.informer.com/forums/post/158388/#p158388">http://punbb.informer.com/forums/post/158388/#p158388</a> post, you need to roll them back.<br />Next, use the new function from this <a href="http://punbb.informer.com/forums/post/158396/#p158396">http://punbb.informer.com/forums/post/158396/#p158396</a> post.</p><p>&gt;Do you have an explanation?<br />The old field_exists() function used a too simple regular expression to find the field name in the query text.<br />As a result, she did not find anything and gave the result &quot;this field is not in the table&quot;.</p><p>P.S. The new function uses the database command to get the full table structure.</p>]]></description>
			<author><![CDATA[null@example.com (Visman)]]></author>
			<pubDate>Thu, 28 Nov 2019 14:24:17 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/158399/#p158399</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam registrations]]></title>
			<link>https://punbb.informer.com/forums/post/158398/#p158398</link>
			<description><![CDATA[<p>Welll thank you... I was able to install Pan antispam. And to register as a new member.<br />What should I do now ? <br />Do you have an explanation ?</p>]]></description>
			<author><![CDATA[null@example.com (Katryne)]]></author>
			<pubDate>Thu, 28 Nov 2019 14:13:36 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/158398/#p158398</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam registrations]]></title>
			<link>https://punbb.informer.com/forums/post/158396/#p158396</link>
			<description><![CDATA[<p>Replace field_exists() function in include/dblayer/sqlite3.php to<br /></p><div class="codebox"><pre><code>    function field_exists($table_name, $field_name, $no_prefix = false)
    {
#        $result = $this-&gt;query(&#039;SELECT sql FROM sqlite_master WHERE name = \&#039;&#039;.($no_prefix ? &#039;&#039; : $this-&gt;prefix).$this-&gt;escape($table_name).&#039;\&#039; AND type=\&#039;table\&#039;&#039;);
#        $sql = $this-&gt;result($result);
#
#        if (is_null($sql) || $sql === false)
#            return false;
#
#        return (preg_match(&#039;/[\r\n]&#039;.preg_quote($field_name).&#039; /&#039;, $sql) === 1);

        $result = $this-&gt;query(&#039;PRAGMA table_info(\&#039;&#039; . ($no_prefix ? &#039;&#039; : $this-&gt;prefix) . $this-&gt;escape($table_name) . &#039;\&#039;);&#039;);
        while ($row = $this-&gt;fetch_assoc($result))
        {
            if ($row[&#039;name&#039;] == $field_name)
            {
                $this-&gt;free_result($result);
                return true;
            }
        }
        return false;
    }</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Visman)]]></author>
			<pubDate>Thu, 28 Nov 2019 13:54:08 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/158396/#p158396</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam registrations]]></title>
			<link>https://punbb.informer.com/forums/post/158395/#p158395</link>
			<description><![CDATA[<p>Hello Visman ! Sorry for being so long to answer. And many thanks for your help.<br />I did as you told me.<br />But for the last modification I found 2 possible locations and did not know which to modify. So I modify one at randow. And then launched extension install once more.. Below is what is displayed when I was not able to complete the install.</p><div class="quotebox"><blockquote><p>string(6) &quot;errors&quot;<br />string(335) &quot;CREATE TABLE dbtonline (<br />user_id INTEGER NOT NULL DEFAULT 1,<br />ident VARCHAR(200) NOT NULL DEFAULT &#039;&#039;,<br />logged INTEGER NOT NULL DEFAULT 0,<br />idle INTEGER NOT NULL DEFAULT 0,<br />csrf_token VARCHAR(40) NOT NULL DEFAULT &#039;&#039;,<br />prev_url VARCHAR(255),<br />last_post INTEGER,<br />last_search INTEGER, errors INTEGER NOT NULL DEFAULT 0,<br />UNIQUE (user_id,ident)<br />)&quot;</p><p>string(6) &quot;errors&quot;<br />string(335) &quot;CREATE TABLE dbtonline (<br />user_id INTEGER NOT NULL DEFAULT 1,<br />ident VARCHAR(200) NOT NULL DEFAULT &#039;&#039;,<br />logged INTEGER NOT NULL DEFAULT 0,<br />idle INTEGER NOT NULL DEFAULT 0,<br />csrf_token VARCHAR(40) NOT NULL DEFAULT &#039;&#039;,<br />prev_url VARCHAR(255),<br />last_post INTEGER,<br />last_search INTEGER, errors INTEGER NOT NULL DEFAULT 0,<br />UNIQUE (user_id,ident)<br />)&quot;</p><p>array(8) {<br />&nbsp; [&quot;user_id&quot;]=&gt;<br />&nbsp; string(27) &quot;INTEGER NOT NULL DEFAULT 1,&quot;<br />&nbsp; [&quot;ident&quot;]=&gt;<br />&nbsp; string(33) &quot;VARCHAR(200) NOT NULL DEFAULT &#039;&#039;,&quot;<br />&nbsp; [&quot;logged&quot;]=&gt;<br />&nbsp; string(27) &quot;INTEGER NOT NULL DEFAULT 0,&quot;<br />&nbsp; [&quot;idle&quot;]=&gt;<br />&nbsp; string(27) &quot;INTEGER NOT NULL DEFAULT 0,&quot;<br />&nbsp; [&quot;csrf_token&quot;]=&gt;<br />&nbsp; string(32) &quot;VARCHAR(40) NOT NULL DEFAULT &#039;&#039;,&quot;<br />&nbsp; [&quot;prev_url&quot;]=&gt;<br />&nbsp; string(13) &quot;VARCHAR(255),&quot;<br />&nbsp; [&quot;last_post&quot;]=&gt;<br />&nbsp; string(8) &quot;INTEGER,&quot;<br />&nbsp; [&quot;last_search&quot;]=&gt;<br />&nbsp; string(43) &quot;INTEGER, errors INTEGER NOT NULL DEFAULT 0,&quot;<br />}</p><p>int(0)<br />string(27) &quot;INTEGER NOT NULL DEFAULT 0,&quot;<br />string(6) &quot;errors&quot;<br />array(9) {<br />&nbsp; [&quot;errors&quot;]=&gt;<br />&nbsp; string(27) &quot;INTEGER NOT NULL DEFAULT 0,&quot;<br />&nbsp; [&quot;user_id&quot;]=&gt;<br />&nbsp; string(27) &quot;INTEGER NOT NULL DEFAULT 1,&quot;<br />&nbsp; [&quot;ident&quot;]=&gt;<br />&nbsp; string(33) &quot;VARCHAR(200) NOT NULL DEFAULT &#039;&#039;,&quot;<br />&nbsp; [&quot;logged&quot;]=&gt;<br />&nbsp; string(27) &quot;INTEGER NOT NULL DEFAULT 0,&quot;<br />&nbsp; [&quot;idle&quot;]=&gt;<br />&nbsp; string(27) &quot;INTEGER NOT NULL DEFAULT 0,&quot;<br />&nbsp; [&quot;csrf_token&quot;]=&gt;<br />&nbsp; string(32) &quot;VARCHAR(40) NOT NULL DEFAULT &#039;&#039;,&quot;<br />&nbsp; [&quot;prev_url&quot;]=&gt;<br />&nbsp; string(13) &quot;VARCHAR(255),&quot;<br />&nbsp; [&quot;last_post&quot;]=&gt;<br />&nbsp; string(8) &quot;INTEGER,&quot;<br />&nbsp; [&quot;last_search&quot;]=&gt;<br />&nbsp; string(43) &quot;INTEGER, errors INTEGER NOT NULL DEFAULT 0,&quot;<br />}</p><br /><p>Warning: SQLite3::query(): Unable to prepare statement: 1, duplicate column name: errors in /var/www/???/users/blackland/www/aforum/include/dblayer/sqlite3.php on line 100</p></blockquote></div><p>I have installed a copy of my forum on a test site, so that I do not disturb the living site. I was also able to install there phplite admin, in case I could mend the data base and put it back afterwards on the original hosting. But If I can in theory manage the data base now, I do not know what to do with it.</p>]]></description>
			<author><![CDATA[null@example.com (Katryne)]]></author>
			<pubDate>Thu, 28 Nov 2019 12:28:31 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/158395/#p158395</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam registrations]]></title>
			<link>https://punbb.informer.com/forums/post/158388/#p158388</link>
			<description><![CDATA[<p>I can’t understand where the duplication comes from.</p><p>1. Administration → Settings → Setup → Redirect wait = 60 → Save changes<br />2. open /include/dblayer/sqlite3.php<br />before<br /></p><div class="codebox"><pre><code>        return (preg_match(&#039;/[\r\n]&#039;.preg_quote($field_name).&#039; /&#039;, $sql) === 1);</code></pre></div><p>add<br /></p><div class="codebox"><pre><code>echo &quot;&lt;pre&gt;&quot;;
var_dump($field_name, $sql);
echo &quot;&lt;/pre&gt;&quot;;</code></pre></div><p>----------------------<br />after<br /></p><div class="codebox"><pre><code>    function add_field($table_name, $field_name, $field_type, $allow_null, $default_value = null, $after_field = 0, $no_prefix = false)
    {
        if ($this-&gt;field_exists($table_name, $field_name, $no_prefix))
            return;

        $table = $this-&gt;get_table_info($table_name, $no_prefix);</code></pre></div><p>add<br /></p><div class="codebox"><pre><code>echo &quot;&lt;pre&gt;&quot;;
var_dump($table[&#039;columns&#039;]);
echo &quot;&lt;/pre&gt;&quot;;</code></pre></div><p>-------------------------------</p><p>after<br /></p><div class="codebox"><pre><code>        $old_columns = array_keys($table[&#039;columns&#039;]);
        array_insert($table[&#039;columns&#039;], $after_field, $query.&#039;,&#039;, $field_name);</code></pre></div><p>add<br /></p><div class="codebox"><pre><code>echo &quot;&lt;pre&gt;&quot;;
var_dump($after_field, $query.&#039;,&#039;, $field_name, $table[&#039;columns&#039;]);
echo &quot;&lt;/pre&gt;&quot;;</code></pre></div><p>-------------------------</p><p>(below, only for add_field() function)<br />replace<br /></p><div class="codebox"><pre><code>        $this-&gt;query($new_table) or error(__FILE__, __LINE__);</code></pre></div><p>to<br /></p><div class="codebox"><pre><code>        $this-&gt;query($new_table) or exit;</code></pre></div><br /><p>save file</p><p>3. Run the installation of the extension again and copy the text here from the browser that the var_dump () commands will output.</p>]]></description>
			<author><![CDATA[null@example.com (Visman)]]></author>
			<pubDate>Mon, 18 Nov 2019 12:15:14 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/158388/#p158388</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam registrations]]></title>
			<link>https://punbb.informer.com/forums/post/158387/#p158387</link>
			<description><![CDATA[<p>Thanks for the direct link, I am not comfortable with the new Github.</p><p>It looks that the error is still about Create new table (line 556 of sqlite3.php)</p><p>Error when cliking on install button :</p><br /><div class="quotebox"><blockquote><p>Le serveur BDD a répondu: duplicate column name: errors (Errno: 1).</p><p>Impossible d&#039;exécuter la requête : CREATE TABLE dbtonline ( errors INTEGER NOT NULL DEFAULT 0, user_id INTEGER NOT NULL DEFAULT 1, ident VARCHAR(200) NOT NULL DEFAULT &#039;&#039;, logged INTEGER NOT NULL DEFAULT 0, idle INTEGER NOT NULL DEFAULT 0, csrf_token VARCHAR(40) NOT NULL DEFAULT &#039;&#039;, prev_url VARCHAR(255), last_post INTEGER, last_search INTEGER, errors INTEGER NOT NULL DEFAULT 0, UNIQUE (user_id,ident) );</p><p>Une erreur est apparue à la ligne 556 dans le fichier /var/www/legtux.org/users/revest/www/include/dblayer/sqlite3.php</p></blockquote></div><p>Query at bottom of extension page :</p><br /><div class="quotebox"><blockquote><p>del</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (Katryne)]]></author>
			<pubDate>Mon, 18 Nov 2019 11:24:59 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/158387/#p158387</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam registrations]]></title>
			<link>https://punbb.informer.com/forums/post/158386/#p158386</link>
			<description><![CDATA[<p>You still have the wrong file. <br />Look at line 423 <a href="https://github.com/punbb/punbb/blob/master/include/dblayer/sqlite3.php#L423">https://github.com/punbb/punbb/blob/mas … 3.php#L423</a></p><p>1. Download archive <a href="https://github.com/punbb/punbb/archive/master.zip">https://github.com/punbb/punbb/archive/master.zip</a><br />2. Take one file from it: include/dblayer/sqlite3.php<br />3. Copy it to your server with a replacement file.<br />4. Show the error again if it appears.</p>]]></description>
			<author><![CDATA[null@example.com (Visman)]]></author>
			<pubDate>Mon, 18 Nov 2019 11:08:21 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/158386/#p158386</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam registrations]]></title>
			<link>https://punbb.informer.com/forums/post/158385/#p158385</link>
			<description><![CDATA[<p>Thanks for helping.<br />With the sqlite3.php version that I found at Github, as you advised, here is the full error message when I try to install PanAntispam (the error is about Create new table):<br /></p><div class="quotebox"><blockquote><p>Désolé ! La page ne peut être chargée.</p><p>Cette erreur peut être temporaire. Actualisez la page. Si le problème persiste, essayez à nouveau dans 5-10 minutes.</p><p>Le serveur BDD a répondu: duplicate column name: errors (Errno: 1).</p><p>Impossible d&#039;exécuter la requête : CREATE TABLE dbtonline ( errors INTEGER NOT NULL DEFAULT 0, user_id INTEGER NOT NULL DEFAULT 1, ident VARCHAR(200) NOT NULL DEFAULT &#039;&#039;, logged INTEGER NOT NULL DEFAULT 0, idle INTEGER NOT NULL DEFAULT 0, csrf_token VARCHAR(40) NOT NULL DEFAULT &#039;&#039;, prev_url VARCHAR(255), last_post INTEGER, last_search INTEGER, errors INTEGER NOT NULL DEFAULT 0, UNIQUE (user_id,ident) );</p><p>Une erreur est apparue à la ligne 423 dans le fichier /var/www/legtux.org/users/revest/www/include/dblayer/sqlite3.php</p></blockquote></div><p>Before I clicked on the install link, here is the query that was displayed :</p><div class="quotebox"><blockquote><p>delete</p></blockquote></div><p>Sorry, I had never done this and do not know what to do with it.</p>]]></description>
			<author><![CDATA[null@example.com (Katryne)]]></author>
			<pubDate>Mon, 18 Nov 2019 10:34:50 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/158385/#p158385</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam registrations]]></title>
			<link>https://punbb.informer.com/forums/post/158384/#p158384</link>
			<description><![CDATA[<p>1. in config.php<br /></p><div class="codebox"><pre><code>// Enable DEBUG mode by removing // from the following line
//define(&#039;FORUM_DEBUG&#039;, 1);

// Enable show DB Queries mode by removing // from the following line
//define(&#039;FORUM_SHOW_QUERIES&#039;, 1);</code></pre></div><p>replace to</p><div class="codebox"><pre><code>// Enable DEBUG mode by removing // from the following line
define(&#039;FORUM_DEBUG&#039;, 1);

// Enable show DB Queries mode by removing // from the following line
define(&#039;FORUM_SHOW_QUERIES&#039;, 1);</code></pre></div><p>2. use standart sqlite3.php file <a href="https://github.com/punbb/punbb/blob/master/include/dblayer/sqlite3.php">https://github.com/punbb/punbb/blob/mas … qlite3.php</a></p><p>3. Show the full text of the error that will be displayed in the message. </p><p>P.S. You can also look in the errors log of your server.</p>]]></description>
			<author><![CDATA[null@example.com (Visman)]]></author>
			<pubDate>Mon, 18 Nov 2019 06:53:09 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/158384/#p158384</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam registrations]]></title>
			<link>https://punbb.informer.com/forums/post/158382/#p158382</link>
			<description><![CDATA[<p>Thanks for answer and links.<br />My punbb data base (sqlite3) seems to have some problems. I will try to reinstall everything.</p><p>Edit : my line 552 in sqlite3.php is :<br /></p><div class="codebox"><pre><code>        // Create new table
        $this-&gt;query($new_table) or error(__FILE__, __LINE__);</code></pre></div><p>From what I understand, some extensions cannot be installed&nbsp; because new table cannot be created : this table already exists.</p>]]></description>
			<author><![CDATA[null@example.com (Katryne)]]></author>
			<pubDate>Mon, 18 Nov 2019 05:38:04 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/158382/#p158382</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam registrations]]></title>
			<link>https://punbb.informer.com/forums/post/158375/#p158375</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>I get error on line 552 of include/dblayer/sqlite3.php.</p></blockquote></div><p>line 552:<br /></p><div class="codebox"><pre><code>        // Drop old table</code></pre></div><p>?</p><p>I installed the new punbb 1.4.4 (_https://github.com/punbb/punbb/archive/master.zip) on php 7.3.5 + sqlite3 3.24.0 and took Fancy Stop SPAM 1.3.53 (_https://github.com/dimkalinux/Fancy-Extensions/archive/master.zip). There were no errors when installing it.</p><br /><p><a href="https://stackoverflow.com/questions/25675314/how-to-backup-sqlite-database">https://stackoverflow.com/questions/256 … e-database</a><br /><a href="https://stackoverflow.com/questions/18671/quick-easy-way-to-migrate-sqlite3-to-mysql">https://stackoverflow.com/questions/186 … 3-to-mysql</a></p>]]></description>
			<author><![CDATA[null@example.com (Visman)]]></author>
			<pubDate>Sun, 17 Nov 2019 03:40:32 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/158375/#p158375</guid>
		</item>
		<item>
			<title><![CDATA[Spam registrations]]></title>
			<link>https://punbb.informer.com/forums/post/158374/#p158374</link>
			<description><![CDATA[<p>Hello !<br />I am trying to fight robot registrations.<br />I cannot install any anti-spam extension (Fancy stop spam 1.3.52.2, Pan antispam 0.3.4, Pan Moderator 0.6.4) : I get error on line 552 of include/dblayer/sqlite3.php.<br />My PunBB is 1.4.4 and uses sqlite3. Php version is 7.3 and cannot be modified.</p><p>What can I do, please ?</p><p>If I try to reinstall a brand new forum, how can I recover the old messages ?&nbsp; I do not know how to save and restore a sqlite3 data base. I have never done this.</p><p>Note that I was not able to login here with my old credentials for MaraKat and I had to register anew. So I am not new to this forum, since Katryne = Marakat..</p>]]></description>
			<author><![CDATA[null@example.com (Katryne)]]></author>
			<pubDate>Sat, 16 Nov 2019 19:12:35 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/158374/#p158374</guid>
		</item>
	</channel>
</rss>
