FAQ FAQ   Search Search   Memberlist Memberlist   Usergroups Usergroups   Register Register 
Phpbbantispam.com
Home of the Antispam for all fields mod ! 
  Profile Profile   Log in to check your private messages Log in to check your private messages  Log inLog in 

 Phpbbantispam.com Forum Index » Solved bugs » [solved] Unable to approve posts - 'General Error' message
  The time now is Thu Sep 09, 2010 12:03 pm 

 Post new topic   Reply to topic View previous topic :: View next topic  
Author Message
PostPosted: Tue Jul 28, 2009 7:19 pm    Post subject: [solved] Unable to approve posts - 'General Error' message  Reply with quote  

sgraber



Joined: 28 Jul 2009
Posts: 3

Hi, I'm using phpbb2antispam Database v1.3.1/File Version 1.3.1 on PHPBB2 v2.0.21 and I really love the way it has reduced the number of spam postings to exactly ZERO from the dozens and hundreds of spams before I installed it. Thank you very much!

I do have a problem where a real user (not spam) is making the first post and antispam tags their message as spam. When I try to approve their post I get the following error message.

Quote:
General Error
Error in posting

DEBUG MODE

INSERT INTO phpbb_posts (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig) VALUES (1931, 14, 973, 'beyondredline', 1248792073, '66.152.58.11', 1, 0, 1, )

Line : 134
File : functions_insert_post.php


When I return to spam management screen I see
Quote:
Notice: a previous attempt to load this page failed. Running in limited/recovery mode
Switch to normal mode


I'm sorry that I do not know much about MySql or the structure of the phpbb2 tables. It appears that maybe the INSERT is missing a value for enable_sig but I don't know why this is happening.
_________________
Steve Graber
www.grabercars.com
Build a lightweight mid-engine sports car from plans!

TOP View user's profileSend private message  BOTTOM
PostPosted: Tue Jul 28, 2009 7:21 pm    Post subject:  Reply with quote  

ramon fincken
Site Admin


Joined: 11 Dec 2006
Posts: 274
Location: A'dam/Diemen, The Netherlands

I'll take a look within 48 hours, thanks for the support and for listing the bug!!
_________________
Phpbbantispam founder, available for freelance phpBB2 coding.

Get it while it's hot ! http://www.phpbbantispam.com/viewtopic.php?t=1
Project files & mailinglist: https://sourceforge.net/projects/phpbbantispam/

TOP View user's profileSend private messageVisit poster's website  BOTTOM
PostPosted: Wed Jul 29, 2009 9:43 pm    Post subject:  Reply with quote  

ramon fincken
Site Admin


Joined: 11 Dec 2006
Posts: 274
Location: A'dam/Diemen, The Netherlands

Hmm interesting ... my syntax looks allright ...

could you try this?

OPEN
Code:
/admin/admin_antispam_database.php


FIND
# line 155
Code:
         // GOGOGO !
         if ($tmparray['mode'] === 'newtopic') {
            $post_details = insert_post($tmparray['message'], $tmparray['subject'], $tmparray[POST_FORUM_URL], $user_id, $profiledata['username'], $profiledata['user_attachsig']);
         }

         // GOGOGO !
         if ($tmparray['mode'] === 'reply') {
            // Reply, normal
            $post_details = insert_post($tmparray['message'], $tmparray['subject'], topic2forum($tmparray[POST_TOPIC_URL]), $user_id, $profiledata['username'], $profiledata['user_attachsig'], $tmparray[POST_TOPIC_URL], POST_NORMAL, true);
         }


REPLACE WITH
Code:
         // GOGOGO !
         if ($tmparray['mode'] === 'newtopic') {
            $post_details = insert_post($tmparray['message'], $tmparray['subject'], $tmparray[POST_FORUM_URL], $user_id, $profiledata['username'], intval($profiledata['user_attachsig']));
         }

         // GOGOGO !
         if ($tmparray['mode'] === 'reply') {
            // Reply, normal
            $post_details = insert_post($tmparray['message'], $tmparray['subject'], topic2forum($tmparray[POST_TOPIC_URL]), $user_id, $profiledata['username'], intval($profiledata['user_attachsig']), $tmparray[POST_TOPIC_URL], POST_NORMAL, true);
         }

_________________
Phpbbantispam founder, available for freelance phpBB2 coding.

Get it while it's hot ! http://www.phpbbantispam.com/viewtopic.php?t=1
Project files & mailinglist: https://sourceforge.net/projects/phpbbantispam/

TOP View user's profileSend private messageVisit poster's website  BOTTOM
PostPosted: Thu Jul 30, 2009 12:03 am    Post subject:  Reply with quote  

sgraber



Joined: 28 Jul 2009
Posts: 3

That did the trick! Thank you very much. I have to say again, your mod is the best thing for phpbb2! It really works, it was easy to install, and you have given me top quality support.

Steve Graber
www.grabercars.com
_________________
Steve Graber
www.grabercars.com
Build a lightweight mid-engine sports car from plans!

TOP View user's profileSend private message  BOTTOM
PostPosted: Thu Jul 30, 2009 7:29 pm    Post subject:  Reply with quote  

ramon fincken
Site Admin


Joined: 11 Dec 2006
Posts: 274
Location: A'dam/Diemen, The Netherlands

Excellent!

That is really good to hear, if you have suggestions ... you know where to find me ! Cool
_________________
Phpbbantispam founder, available for freelance phpBB2 coding.

Get it while it's hot ! http://www.phpbbantispam.com/viewtopic.php?t=1
Project files & mailinglist: https://sourceforge.net/projects/phpbbantispam/

TOP View user's profileSend private messageVisit poster's website  BOTTOM
 Post new topic   Reply to topic All times are GMT + 1 Hour

Display posts from previous:   
 Phpbbantispam.com Forum Index » Solved bugs » [solved] Unable to approve posts - 'General Error' message
 
 Page 1 of 1
 
 
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Jump to:  


     Powered by phpBB © 2001, 2005 phpBB Group | Template Neon v1.3 | Crystal