close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Insert record and email details

Thread began 3/14/2011 10:51 am by Joe Lowery | Last modified 3/15/2011 8:27 am by Jason Byrnes | 2458 views | 9 replies |

Joe Lowery

Insert record and email details

I'm using the WA Insert Record server behavior in combination with Universal Email on a page. I redirect the page in the UE server behavior (which occurs later in the code than the insert sb) to the same page with a passed argument that triggers a JavaScript "thank you" pop-up.

The record is being inserted and the email sent, but the page displayed after these actions are completed is blank, even though the correct path is shown in the browser location bar.

Any ideas on what could be going wrong?

Thanks - Joe

Sign in to reply to this post

Jason ByrnesWebAssist

when a page displays blank, it usually means a php error has occurred, but error reporting is turned off.

add the following code at line 1 to turn error reporting on:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>
Sign in to reply to this post

Joe Lowery

Thanks for the reply, Jason.

There seems to be a conflict between the DataAssist sb and the UE sb. When I add in the error reporting code, and reload the page I get this error at the top:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /contactMail.php:5) in /contactMail.php on line 116

If I comment out the session_start function on line 116, I get the "blank" page with the following errors:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /contactMail.php:5) in /contactMail.php on line 72

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /contactMail.php:5) in /contactMail.php on line 167

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /contactMail.php:5) in /contactMail.php on line 167

Fatal error: Cannot redeclare wa_ab_getloopedfieldname() (previously declared in /WA_DataAssist/WA_AppBuilder_PHP.php:12) in /webassist/database_management/wa_appbuilder_php.php on line 19

What should I do?

Thanks - Joe

Sign in to reply to this post

Jason ByrnesWebAssist

My guess is that when you pasted the error reporting code into the page, you left a blank space between code blocks.


see this post for details on the headers already sent error:
showthread.php?t=19285


can you send a copy of the contactMail.php file so i can examine the code.

Sign in to reply to this post

Joe Lowery

No obvious spaces or gaps.

I've attached the source file as a zip.

Thanks again for taking a look - Joe

Attached Files
contactMail.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

in the webassist/email/mailformatting_php.php file, comment out line 55:

change:

php:
require_once("../database_management/wa_appbuilder_php.php");





to:

php:
//require_once("../database_management/wa_appbuilder_php.php");
Sign in to reply to this post

Joe Lowery

Getting closer... now I get the error:

Table 'rougeContacts.email_log' doesn't exist

which indeed it doesn't. What's the structure for the expected table?

Sign in to reply to this post

Jason ByrnesWebAssist

use this SQL script to create the table:

CREATE TABLE email_log (
EmailID int(11) NOT NULL auto_increment,
EmailTo varchar(250),
EmailFrom varchar(250),
EmailSubject varchar(250),
EmailBody text,
EmailHeader text,
EmailError text,
EmailStatus varchar(50),
EmailDate timestamp default CURRENT_TIMESTAMP,
PRIMARY KEY (EmailID)
)
Sign in to reply to this post

Joe Lowery

Thanks, Jason - that did it. It's all working perfectly now!

Best - Joe

Sign in to reply to this post

Jason ByrnesWebAssist

Awesome, glad to hear it's working.

Sign in to reply to this post
loading

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...