Jump to content


- - - - -

RESOLVED - Problem with 'Forum Subscription New Topic Notification'


This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1 joro2oo1

joro2oo1

    n00b

  • Members
  • Pip
  • 3 posts

Posted 11 November 2005 - 08:57 PM

CODE
mySQL query error: INSERT INTO ibf_mail_queue (mail_to,mail_date,mail_subject,mail_content) VALUES('TEST@TEST.COM',1234567890,'Forum Subscription New Topic Notification','TEST,

TEST публикува нова тема озаглавена "DELETE" във "TEST FORUM".

----------------------------------------------------------------------
DELETE

----------------------------------------------------------------------

The topic can be found here:
='http://test.com/forum/index.php?showtopic=1' target='_blank'>http://test.com/forum/index.php?showtopic=1

Please note that if you wish to get email notification of any replies to this topic, you will have to click on the
"Track this Topic" link shown on the topic page, or by visiting the link below:
='http://test.com/forum/index.php?showtopic=1' target='_blank'>http://test.com/forum/index.php?showtopic=1


Unsubscribing:
--------------

You can unsubscribe at any time by logging into your control panel and clicking on the "View Subscriptions" link.
If you are not subscribed to any forums and wish to stop receiving notification, uncheck the setting
"Send me any updates sent by the board administrator" found in \\'My Controls\\' under \\'Email Settings\\'.
Regards,

='http://test.com/forum/index.php')' target='_blank'>http://test.com/forum/index.php')

mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'My Controls\\' under \\'Email Settings\\'.
Regards,

TEST FORUM' at line 1
mySQL error code:
Date: Monday 19th of September 2005 07:13:43 PM


and the problem is in this line:

CODE
INSERT INTO ibf_mail_queue (mail_to,mail_date,mail_subject,mail_content) VALUES('TEST@TEST.COM',1234567890,'Forum Subscription New Topic Notification','TEST,


It's missing a comma (')

In which file can I fix that?  unsure.gif

Thanks in advance!

#2 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts

Posted 11 November 2005 - 09:59 PM

I think the problem is in your sources/post.php file.  Are you sure you have this updated to use the file that comes with 2.0.4 for this file?
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter

#3 joro2oo1

joro2oo1

    n00b

  • Members
  • Pip
  • 3 posts

Posted 11 November 2005 - 10:53 PM

QUOTE(FuSoYa @ November 11th 2005, 04:59 PM) <{POST_SNAPBACK}>
I think the problem is in your sources/post.php file.  Are you sure you have this updated to use the file that comes with 2.0.4 for this file?


I think so.

But in sources/post.php I can't find any error. The post.php is the original file without any modifactions.

#4 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts

Posted 12 November 2005 - 03:16 AM

I think this is the file that is calling on that function that causes your error.  The error is actually right here:
CODE
found in \\'My Controls\\' under \\'Email Settings\\'.

Honestly I've never taken the time to understand what exactly is required as far as what is required for these slashes, but something here is messing this up.

Search this post.php file for these lines:
CODE
                $DB->do_insert( 'mail_queue', array( 'mail_to' => $r['email'], 'mail_date' => time(), 'mail_subject' => $ibforums->lang['tt_subject'], 'mail_content' => $std->txt_safeslashes($this->email->message) ) );

And:
CODE
                $DB->do_insert( 'mail_queue', array( 'mail_to' => $r['email'], 'mail_date' => time(), 'mail_subject' => $ibforums->lang['ft_subject'], 'mail_content' => $std->txt_safeslashes($this->email->message) ) );

Make sure those lines look just like that.
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter

#5 joro2oo1

joro2oo1

    n00b

  • Members
  • Pip
  • 3 posts

Posted 12 November 2005 - 11:41 AM

Thank you so much!!!

It was missing part of the code

CODE
$std->txt_safeslashes($this->email->message) ) );


Once again - thank you! smile.gif

#6 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts

Posted 12 November 2005 - 02:31 PM

The issue this topic was opened for has now been resolved.  If you need further assistance, please open a new topic.  If this topic was closed prematurely, please contact me so I can re-open it. smile.gif

Topic Closed
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter