close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Internal Server Error while sending a loop of emails

Thread began 4/22/2013 11:39 am by edu311178 | Last modified 4/23/2013 10:21 am by Jason Byrnes | 1524 views | 3 replies |

edu311178

Internal Server Error while sending a loop of emails

Hello, good afternoon.

We have encountered an error that behaves as follows:
Once we send emails (several or a lot, it doesn't matter the amount) the server sends them rightly.
After this, it's supposed to redirect to a php page (line 306 within the php file "fss_mailing_enviar.php" which we have attached):

header("Location: ".$GoToPage);

where $GoToPage stores the value "css_mailing_enviar_ok_resumen.php".

However, after several seconds, we get and error window with a 500 error (Internal Server Error, like the one you can view int attached image within this email). So the problem is not connected with sending emails but with redirecting to this page, due to an error connected with the server.

We'll appreciate you help.
Thanks in advance.

Sign in to reply to this post

Jason ByrnesWebAssist

the 500 internal server error is impossible to troubleshoot.

it is a generic error message that only means "an error has occurred"

we may be able to tell the real error for troubleshooting by turning error reporting on. add the following code at line 1:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>



once we know what the error is, we will be able to troubleshoot the cause.

Sign in to reply to this post

edu311178

Good morning.

Thanks a lot for your quick response.

We've already wrote the lines you specified, in both remote server and our local server. Both behaviours are like follows:

REMOTE SERVER (the one we want to work properly):

1) Throws this simple warning:
Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\fss\admin\fss_menu.php on line 57

2) Starts to send emails but suddenly the "Internal server error" page appears. However emails are still being sent correctly after this.

LOCAL SERVER (not configured to end emails so more warnings expected. We're also using the PHP Yii framework in debug mode):

1) Throws these warnings:
( ! ) Notice: Undefined index: MM_UserGroup in C:\xampp\htdocs\fss\admin\fss_mailing_enviar.php on line 41
Call Stack
# Time Memory Function Location
1 0.0015 203624 {main}( ) ..\fss_mailing_enviar.php:0

( ! ) Warning: Illegal string offset '[nombre]' in C:\xampp\htdocs\fss\webassist\email\waue_fss_mailing_enviar_2.php on line 50
Call Stack
# Time Memory Function Location
1 0.0015 203624 {main}( ) ..\fss_mailing_enviar.php:0
2 1.0130 397512 include( 'C:\xampp\htdocs\fss\webassist\email\waue_fss_mailing_enviar_2.php' ) ..\fss_mailing_enviar.php:279

( ! ) Notice: Undefined index: [nombre] in C:\xampp\htdocs\fss\webassist\email\waue_fss_mailing_enviar_2.php on line 50
Call Stack
# Time Memory Function Location
1 0.0015 203624 {main}( ) ..\fss_mailing_enviar.php:0
2 2.4059 405640 include( 'C:\xampp\htdocs\fss\webassist\email\waue_fss_mailing_enviar_2.php' ) ..\fss_mailing_enviar.php:279

( ! ) Notice: Undefined index: [nombre] in C:\xampp\htdocs\fss\webassist\email\waue_fss_mailing_enviar_2.php on line 50
Call Stack
# Time Memory Function Location
1 0.0015 203624 {main}( ) ..\fss_mailing_enviar.php:0
2 3.6480 406856 include( 'C:\xampp\htdocs\fss\webassist\email\waue_fss_mailing_enviar_2.php' ) ..\fss_mailing_enviar.php:279

( ! ) Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\fss\webassist\email\waue_fss_mailing_enviar_2.php:50) in C:\xampp\htdocs\fss\webassist\email\mail_php.php on line 289
Call Stack
# Time Memory Function Location
1 0.0015 203624 {main}( ) ..\fss_mailing_enviar.php:0
2 3.6480 406856 include( 'C:\xampp\htdocs\fss\webassist\email\waue_fss_mailing_enviar_2.php' ) ..\fss_mailing_enviar.php:279
3 3.6499 408840 WAUE_SendMail( ) ..\waue_fss_mailing_enviar_2.php:97
4 3.6507 410888 session_start ( ) ..\mail_php.php:289

( ! ) Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\fss\webassist\email\waue_fss_mailing_enviar_2.php:50) in C:\xampp\htdocs\fss\webassist\email\mail_php.php on line 289
Call Stack
# Time Memory Function Location
1 0.0015 203624 {main}( ) ..\fss_mailing_enviar.php:0
2 3.6480 406856 include( 'C:\xampp\htdocs\fss\webassist\email\waue_fss_mailing_enviar_2.php' ) ..\fss_mailing_enviar.php:279
3 3.6499 408840 WAUE_SendMail( ) ..\waue_fss_mailing_enviar_2.php:97
4 3.6507 410888 session_start ( ) ..\mail_php.php:289

( ! ) Warning: Illegal string offset '[nombre]' in C:\xampp\htdocs\fss\webassist\email\waue_fss_mailing_enviar_2.php on line 50
Call Stack
# Time Memory Function Location
1 0.0015 203624 {main}( ) ..\fss_mailing_enviar.php:0
2 4.8276 407272 include( 'C:\xampp\htdocs\fss\webassist\email\waue_fss_mailing_enviar_2.php' ) ..\fss_mailing_enviar.php:279

( ! ) Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\fss\webassist\email\waue_fss_mailing_enviar_2.php:50) in C:\xampp\htdocs\fss\webassist\email\mail_php.php on line 289
Call Stack
# Time Memory Function Location
1 0.0015 203624 {main}( ) ..\fss_mailing_enviar.php:0
2 4.8276 407272 include( 'C:\xampp\htdocs\fss\webassist\email\waue_fss_mailing_enviar_2.php' ) ..\fss_mailing_enviar.php:279
3 4.8314 409176 WAUE_SendMail( ) ..\waue_fss_mailing_enviar_2.php:97
4 4.8319 411224 session_start ( ) ..\mail_php.php:289

( ! ) Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\fss\webassist\email\waue_fss_mailing_enviar_2.php:50) in C:\xampp\htdocs\fss\webassist\email\mail_php.php on line 289
Call Stack
# Time Memory Function Location
1 0.0015 203624 {main}( ) ..\fss_mailing_enviar.php:0
2 4.8276 407272 include( 'C:\xampp\htdocs\fss\webassist\email\waue_fss_mailing_enviar_2.php' ) ..\fss_mailing_enviar.php:279
3 4.8314 409176 WAUE_SendMail( ) ..\waue_fss_mailing_enviar_2.php:97
4 4.8319 411224 session_start ( ) ..\mail_php.php:289

( ! ) Notice: Undefined index: waue_fss_mailing_enviar_2_Status in C:\xampp\htdocs\fss\admin\fss_mailing_enviar.php on line 301
Call Stack
# Time Memory Function Location
1 0.0015 203624 {main}( ) ..\fss_mailing_enviar.php:0

( ! ) Notice: Undefined index: waue_fss_mailing_enviar_2_Index in C:\xampp\htdocs\fss\admin\fss_mailing_enviar.php on line 302
Call Stack
# Time Memory Function Location
1 0.0015 203624 {main}( ) ..\fss_mailing_enviar.php:0

( ! ) Notice: Undefined index: waue_fss_mailing_enviar_2_From in C:\xampp\htdocs\fss\admin\fss_mailing_enviar.php on line 303
Call Stack
# Time Memory Function Location
1 0.0015 203624 {main}( ) ..\fss_mailing_enviar.php:0

( ! ) Notice: Undefined index: waue_fss_mailing_enviar_2_To in C:\xampp\htdocs\fss\admin\fss_mailing_enviar.php on line 304
Call Stack
# Time Memory Function Location
1 0.0015 203624 {main}( ) ..\fss_mailing_enviar.php:0

( ! ) Notice: Undefined index: waue_fss_mailing_enviar_2_Subject in C:\xampp\htdocs\fss\admin\fss_mailing_enviar.php on line 305
Call Stack
# Time Memory Function Location
1 0.0015 203624 {main}( ) ..\fss_mailing_enviar.php:0

( ! ) Notice: Undefined index: waue_fss_mailing_enviar_2_Body in C:\xampp\htdocs\fss\admin\fss_mailing_enviar.php on line 306
Call Stack
# Time Memory Function Location
1 0.0015 203624 {main}( ) ..\fss_mailing_enviar.php:0

( ! ) Notice: Undefined index: waue_fss_mailing_enviar_2_Header in C:\xampp\htdocs\fss\admin\fss_mailing_enviar.php on line 307
Call Stack
# Time Memory Function Location
1 0.0015 203624 {main}( ) ..\fss_mailing_enviar.php:0

( ! ) Notice: Undefined index: waue_fss_mailing_enviar_2_Log in C:\xampp\htdocs\fss\admin\fss_mailing_enviar.php on line 308
Call Stack
# Time Memory Function Location
1 0.0015 203624 {main}( ) ..\fss_mailing_enviar.php:0

( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\fss\webassist\email\waue_fss_mailing_enviar_2.php:50) in C:\xampp\htdocs\fss\admin\fss_mailing_enviar.php on line 313
Call Stack
# Time Memory Function Location
1 0.0015 203624 {main}( ) ..\fss_mailing_enviar.php:0
2 5.0470 381000 header ( ) ..\fss_mailing_enviar.php:313

Sorry for the long text but better to show here each one detailed.

We think that the only important warning which could probably interrupts/interferes with the redirection to the succes page is the one about "Cannot modify header information - headers already sent by...". We tried to use "ob_start()" and "ob_end_flush()" but nothing seemed to change on the remote server, but it worked on the local one!.

In summary, in the remote server, emails are sent correctly (which is great) but still we get the "Internal error server" page instead of the succes one (redirection to "fss_mailing_enviar_ok_prueba").

Hope you can help us. Greetings and thanks a lot.

Sign in to reply to this post

Jason ByrnesWebAssist

I'm not woried ablut the local server since it wont be able to send emails anyway.

the headers already sent error is caused by the other errors.

the error:
Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\fss\admin\fss_menu.php on line 57

will need to be corrected in the fss_menu.php on line 57. instead of using the ereg function, it should use the preg_match function.

for the other errors, delete the webassist/mail/mailphp.php and mailformating.php files, then edit the universal email instance and click ok to have those files regenerated, make sure to upload the newer versions.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...