close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error message and the program will not loadd after

Thread began 3/15/2011 2:11 pm by walt125013 | Last modified 3/17/2011 9:57 am by Jason Byrnes | 1137 views | 6 replies |

walt125013

Error message and the program will not loadd after

here is the error message:

While executing onLoad in WA_DFP_FileUpload.htm, the following JavaScript error(s) occurred:

At line 487 of file "C:\Users\wish7\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\Configuration\Shared\WebAssist\FormBuilder\Controls\Scripts\WATrigger.js":
invalid array length

Sign in to reply to this post

Jason ByrnesWebAssist

what are your steps leading up to the error message?

does it occur when starting the CSS form Builder wizard, or in starting another behavior?


have you tried deleting the Dreamweaver Cache file from the users configuration folder:
common_installation_issues.pdf

Sign in to reply to this post

walt125013

Form Builder error

The error occurs when I am starting the extension. Whenever I go to the WebAssist Menu in Dreamwaever and then to [File Manipulation] and then [Upload]. the Javascript error appears and when I click to close the error popup it just has a blank window up!:

error message on the popup is:

---------------------------
Dreamweaver
---------------------------
While executing onLoad in WA_DFP_FileUpload.htm, the following JavaScript error(s) occurred:

At line 487 of file "C:\Users\wish7\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\Configuration\Shared\WebAssist\FormBuilder\Controls\Scripts\WATrigger.js":
invalid array length

---------------------------
OK
---------------------------

Sign in to reply to this post

Jason ByrnesWebAssist

can you send a copy of the page you are trying to apply the upload file behavior to.

Sign in to reply to this post

walt125013

Here is the code for the pages

but it is pretty much just the code from datassist:

I ran the extension on other pages outside of my admin folder ( this one is inside of it) and it came up without a problem. The only pages that it seems to have a problem coming up on are the insert and update pages.

<?php require_once('../Connections/ua_inventory.php'); ?>
<?php require_once("../WA_DataAssist/WA_AppBuilder_PHP.php"); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

mysql_select_db($database_ua_inventory, $ua_inventory);
$query_rsInv = "SELECT * FROM products";
$rsInv = mysql_query($query_rsInv, $ua_inventory) or die(mysql_error());
$row_rsInv = mysql_fetch_assoc($rsInv);
$totalRows_rsInv = mysql_num_rows($rsInv);

// WA Application Builder Insert
if (isset($_POST["Insert_x"])) // Trigger
{
$WA_connection = $ua_inventory;
$WA_table = "products";
$WA_sessionName = "WADA_Insert_products";
$WA_redirectURL = "products_Detail.php";
if (function_exists("rel2abs")) $WA_redirectURL = $WA_redirectURL?rel2abs($WA_redirectURL,dirname(__FILE__)):"";
$WA_keepQueryString = false;
$WA_indexField = "invID";
$WA_fieldNamesStr = "qty|manufacturer|model|category|subcategory|description|detail|color|size|msrp|sale|dump|map|sap|img|notes";
$WA_fieldValuesStr = "".((isset($_POST["qty"]))?$_POST["qty"]:"") ."" . "|" . "".((isset($_POST["manufacturer"]))?$_POST["manufacturer"]:"") ."" . "|" . "".((isset($_POST["model"]))?$_POST["model"]:"") ."" . "|" . "".((isset($_POST["category"]))?$_POST["category"]:"") ."" . "|" . "".((isset($_POST["subcategory"]))?$_POST["subcategory"]:"") ."" . "|" . "".((isset($_POST["description"]))?$_POST["description"]:"") ."" . "|" . "".((isset($_POST["detail"]))?$_POST["detail"]:"") ."" . "|" . "".((isset($_POST["color"]))?$_POST["color"]:"") ."" . "|" . "".((isset($_POST["size"]))?$_POST["size"]:"") ."" . "|" . "".((isset($_POST["msrp"]))?$_POST["msrp"]:"") ."" . "|" . "".((isset($_POST["sale"]))?$_POST["sale"]:"") ."" . "|" . "".((isset($_POST["dump"]))?$_POST["dump"]:"") ."" . "|" . "".((isset($_POST["map"]))?$_POST["map"]:"") ."" . "|" . "".((isset($_POST["sap"]))?$_POST["sap"]:"") ."" . "|" . "".((isset($_POST["img"]))?$_POST["img"]:"") ."" . "|" . "".((isset($_POST["notes"]))?$_POST["notes"]:"") ."";
$WA_columnTypesStr = "none,none,NULL|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|none,none,NULL|none,none,NULL|none,none,NULL|none,none,NULL|none,none,NULL|',none,''|',none,''";
$WA_fieldNames = explode("|", $WA_fieldNamesStr);
$WA_fieldValues = explode("|", $WA_fieldValuesStr);
$WA_columns = explode("|", $WA_columnTypesStr);
$WA_connectionDB = $database_ua_inventory;
mysql_select_db($WA_connectionDB, $WA_connection);
if (!session_id()) session_start();
$insertParamsObj = WA_AB_generateInsertParams($WA_fieldNames, $WA_columns, $WA_fieldValues, -1);
$WA_Sql = "INSERT INTO `" . $WA_table . "` (" . $insertParamsObj->WA_tableValues . ") VALUES (" . $insertParamsObj->WA_dbValues . ")";
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());
$_SESSION[$WA_sessionName] = mysql_insert_id();
if ($WA_redirectURL != "") {
if ($WA_keepQueryString && $WA_redirectURL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "" && sizeof($_POST) > 0) {
$WA_redirectURL .= ((strpos($WA_redirectURL, '?') === false)?"?":"&").$_SERVER["QUERY_STRING"];
}
header("Location: ".$WA_redirectURL);
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Insert products</title>
<link href="../WA_DataAssist/styles/Refined_Pacifica.css" rel="stylesheet" type="text/css" />
<link href="../WA_DataAssist/styles/Arial.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div class="WADAInsertContainer">
<form action="products_Insert.php" method="post" name="WADAInsertForm" id="WADAInsertForm">
<div class="WADAHeader">Insert Record</div>
<div class="WADAHorizLine"><img src="../WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
<table class="WADADataTable" cellpadding="0" cellspacing="0" border="0">
<tr>
<th class="WADADataTableHeader">invID:</th>
<td class="WADADataTableCell"></td>
</tr>
<tr>
<th class="WADADataTableHeader">qty:</th>
<td class="WADADataTableCell"><input type="text" name="qty" id="qty" value="" size="32" /></td>
</tr>
<tr>
<th class="WADADataTableHeader">manufacturer:</th>
<td class="WADADataTableCell"><input type="text" name="manufacturer" id="manufacturer" value="" size="32" /></td>
</tr>
<tr>
<th class="WADADataTableHeader">model:</th>
<td class="WADADataTableCell"><input type="text" name="model" id="model" value="" size="32" /></td>
</tr>
<tr>
<th class="WADADataTableHeader">category:</th>
<td class="WADADataTableCell"><input type="text" name="category" id="category" value="" size="32" /></td>
</tr>
<tr>
<th class="WADADataTableHeader">subcategory:</th>
<td class="WADADataTableCell"><input type="text" name="subcategory" id="subcategory" value="" size="32" /></td>
</tr>
<tr>
<th class="WADADataTableHeader">description:</th>
<td class="WADADataTableCell"><input type="text" name="description" id="description" value="" size="32" /></td>
</tr>
<tr>
<th class="WADADataTableHeader">detail:</th>
<td class="WADADataTableCell"><input type="text" name="detail" id="detail" value="" size="32" /></td>
</tr>
<tr>
<th class="WADADataTableHeader">color:</th>
<td class="WADADataTableCell"><input type="text" name="color" id="color" value="" size="32" /></td>
</tr>
<tr>
<th class="WADADataTableHeader">size:</th>
<td class="WADADataTableCell"><input type="text" name="size" id="size" value="" size="32" /></td>
</tr>
<tr>
<th class="WADADataTableHeader">msrp:</th>
<td class="WADADataTableCell"><input type="text" name="msrp" id="msrp" value="" size="32" /></td>
</tr>
<tr>
<th class="WADADataTableHeader">sale:</th>
<td class="WADADataTableCell"><input type="text" name="sale" id="sale" value="" size="32" /></td>
</tr>
<tr>
<th class="WADADataTableHeader">dump:</th>
<td class="WADADataTableCell"><input type="text" name="dump" id="dump" value="" size="32" /></td>
</tr>
<tr>
<th class="WADADataTableHeader">map:</th>
<td class="WADADataTableCell"><input type="text" name="map" id="map" value="" size="32" /></td>
</tr>
<tr>
<th class="WADADataTableHeader">sap:</th>
<td class="WADADataTableCell"><input type="text" name="sap" id="sap" value="" size="32" /></td>
</tr>
<tr>
<th class="WADADataTableHeader">img:</th>
<td class="WADADataTableCell"><input type="text" name="img" id="img" value="" size="32" /></td>
</tr>
<tr>
<th class="WADADataTableHeader">notes:</th>
<td class="WADADataTableCell"><input type="text" name="notes" id="notes" value="" size="32" /></td>
</tr>
</table>
<div class="WADAHorizLine"><img src="../WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
<div class="WADAButtonRow">
<table class="WADADataNavButtons" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="WADADataNavButtonCell" nowrap="nowrap"><input type="image" name="Insert" id="Insert" value="Insert" alt="Insert" src="../WA_DataAssist/images/Pacifica/Refined_insert.gif" /></td>
<td class="WADADataNavButtonCell" nowrap="nowrap"><a href="products_Results.php" title="Cancel"><img border="0" name="Cancel" id="Cancel" alt="Cancel" src="../WA_DataAssist/images/Pacifica/Refined_cancel.gif" /></a></td>
</tr>
</table>
<input name="WADAInsertRecordID" type="hidden" id="WADAInsertRecordID" value="" />
</div>
</form>
</div>
</body>
</html>
<?php
mysql_free_result($rsInv);
?>

Sign in to reply to this post

walt125013

Strange

I have narrowed it down to this section of code:

<tr>
<th class="WADADataTableHeader">size:</th>
<td class="WADADataTableCell"><input type="text" name="size" id="size" value="<?php echo(str_replace('"', '&quot;', $row_WADAproducts['size'])); ?>" size="32" /></td>
</tr>

Whenever I take it out, the Form Builder extension loads fine...

any idea what I might have to do? I am going to rename the database field and run datassist again.

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, i think having the column named size is braking it.

Let me know if renaming the column does not fix the issue.

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