close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Fatal error: Call to undefined function virtual()

Thread began 11/30/2009 3:19 pm by johnandpenny361633 | Last modified 12/09/2009 3:32 pm by Jason Byrnes | 6919 views | 12 replies |

johnandpenny361633

Fatal error: Call to undefined function virtual()

When i uploaded my form to the server, i got this error message:

Fatal error: Call to undefined function virtual()

Sign in to reply to this post

Jason ByrnesWebAssist

In the Dreamweaver site definition, you have set the "Create links relative to" option to Site, this causes Dreamweaver to use the virtual() synatx. the virtual function can only be used on a small handful of servers.


Change that to Document so Dreamweaver will use the correct require_once syntax.

Sign in to reply to this post

johnandpenny361633

Email not sending!

I have the ContactForm_GMC but when i customize the form using CSS form builder the email does not send to the address specified in the WA Globals? It brings up the thankyou.php but the message does not send?

J Richardson

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of your page please.

Sign in to reply to this post

johnandpenny361633

web page

contactus.php

Sign in to reply to this post

Jason ByrnesWebAssist

I'm sorry, I need you to send a copy of the contactus.php page so I can examine the code.

Sign in to reply to this post

johnandpenny361633

HEAD CODE body code to follow....

<?php require_once("WA_ValidationToolkit/WAVT_Scripts_PHP.php"); ?>
<?php require_once("WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php"); ?>
<?php require_once('WA_Globals/WA_Globals.php');?>
<?php require_once("WA_Universal_Email/mail_PHP.php"); ?>
<?php require_once("WA_Universal_Email/MailFormatting_PHP.php"); ?>
<?php
if ((($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST))) {
//WA Universal Email object="mail"
//Send Loop Once Per Entry
$RecipientEmail = "".($WAGLOBAL_Contact_Email_To) ."";include("WA_Universal_Email/WAUE_contact_1.php");

//Send Mail All Entries
if ("index.php"!="") {
header("Location: thankyou.php");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Contact Us</title>
<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<script src="SpryAssets/SpryValidationTextarea.js" type="text/javascript"></script>
<style type="text/css">
.textfieldServerError {
display:block;
margin:0px;
color:#CC3333;
border: 1px solid #CC3333;
}
#container {
width: 824px;
margin-right: auto;
margin-left: auto;
}
#container #header {
padding: 20px 0px 5px 40px;
}
#container #header a, a:visited {
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
font-size: 16px;
font-weight: bold;
color: #B6B6B6;
text-decoration: none;
letter-spacing: 1px;
}
#container #header a:hover {
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
font-size: 16px;
font-weight: bold;
color: #B6B6B6;
text-decoration: underline;
letter-spacing: 1px;
}
#footer {
color: #666;
font-size: 12px;
line-height: 16px;
padding: 5px;
text-align: center;
}
</style>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryValidationTextarea.css" rel="stylesheet" type="text/css" />
<script src="CSSFormBuilder/WA_ServerValidation.js" type="text/javascript"></script>
<link href="CSSFormBuilder/FD_Cool_Default.css" rel="stylesheet" type="text/css" />
</head>

Sign in to reply to this post

johnandpenny361633

Added attachment

I have txt file....

Attached Files
contactus.txt
Sign in to reply to this post

Jason ByrnesWebAssist

Your form action is set to post to the thank you page:

html:
<form class="Cool_Default" id="SimpleContact_Cool_Default" name="SimpleContact_Cool_Default" method="post" action="thankyou.php">





leave that blank so universal email has an opertunity to send the email:

html:
<form class="Cool_Default" id="SimpleContact_Cool_Default" name="SimpleContact_Cool_Default" method="post" action="">
Sign in to reply to this post

johnandpenny361633

Still does not work...

Is these extensions one BIG con? I am just please i have not wasted more cash!

Still does not work. Leave what blank? The form automatically fills it in?

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