vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Script errors in function.php (https://vborg.vbsupport.ru/showthread.php?t=37108)

beemer 04-07-2002 04:13 AM

Script errors in function.php
 
I am getting a script error in the functions.php file whenever a user posts to a thread that a user has asked for email notification for. Here is the line that is causing the error. What don't understand is why this just started to happen. Everything worked fine and then one day this started??

mail($touser[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");

scsa20 04-07-2002 04:19 AM

what's the full error??

beemer 04-07-2002 06:18 AM

warning server error c:\inetpub\dsscrypt\forums\admin\functions.php on line 2215

Admin 04-07-2002 10:51 AM

Try using:
mail($touser[email],$emailsubject,$emailmsg,"From: $webmasteremail");
I think that's how you fix it...

beemer 04-08-2002 02:11 AM

Ok, I have narrowed it down a bit more. It apears that I am getting errors in every script that wants to send mail. If the script runs this command:

mail($touser[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");

I get a script error, regardless of what script is calling the mail function. I also can not send email to any users from within the vbulletin forum. I am starting to think I might have a php problem. Has anyone had this issue before?

scsa20 04-08-2002 05:41 AM

when you have downloaded vB, you also extrated an extral folder, in that folder there's a PHP file called mailtest.php. upload mailtest.php to your vB dir. and run it to see if your server works with it...you can also check your PHP settings by uploading phptest.php. hope this bit of info helps ;)

beemer 04-10-2002 03:06 AM

Thanks everyone. The problem was with the SMTP gateway. I had made a change since someone used my mail server for relaying spam and it appeared to cause this problem. Once I fixed the gateway, the script errors went away.


All times are GMT. The time now is 02:43 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00969 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete