Undefined index error in checkbox update form

Hi!
i have a problem with my update form
Notice:  Undefined index: accepte_oiseaux in C:\wamp\www\weziwezo\voiturier\mod_vehicule.php on line 96
Notice:  Undefined index: accepte_chien in C:\wamp\www\weziwezo\voiturier\mod_vehicule.php on line 97
i need to display checkbox checked  if "checked=\"checked\"";} = 1
here is my code
</tr>
     <tr valign="baseline">
       <td nowrap="nowrap" align="right">Accepte oiseaux:</td>
       <td><input type="checkbox" name="accepte_oiseaux" value="" <?php if (!(strcmp($row_rsRecupAuto['accepte_oiseaux'],1))) {echo "checked=\"checked\"";} ?> /></td>
       </tr>
     <tr valign="baseline">
       <td nowrap="nowrap" align="right">Accepte chiens:</td>
       <td><input type="checkbox" name="accepte_chien" value="" <?php if (!(strcmp($row_rsRecupAuto['accepte_chien'],1))) {echo "checked=\"checked\"";} ?> /></td>
       </tr>
     <tr valign="baseline">
       <td nowrap="nowrap" align="right"> </td>
       <td><input type="submit" value="Mettre &agrave; jour l'enregistrement" /></td>
       </tr>
thank you for your help

It is a Notice, saying that $row_rsRecupAuto array has no "accepte_oiseaux" element in it.
Simpler terms: there is no $row_rsRecupAuto["accepte_oiseaux"],
which might be important or unimportant in your case.
Where is $row_rsRecupAuto coming from? If from a database, check if you are pulling the correct fields.
PHP notices are not fatal errors, and can be ignored if necessary and if your code works as expected.
You can suppress notices by altering the php.ini or just put this code at the top of the page:
<?php
error_reporting(E_ALL ^E_NOTICE);
?>

Similar Messages

  • Indexing error during an update

    Hello,
    I have got this error message some times when I update a document
    "Full text index failed. Unexpected failure by Indexer.
    Content has been indexed with Info only. Resubmit should only be
    performed if the problem has been resolved. "
    I have not got any apparent problem with my indexation process so I
    don't understand what is the problem.
    Thank you for your response.

    Hi,
    Usually, these kind index error occur because of inconsistent data between the vault folder and database.
    If it only happening for a specific item, then try idcanalyser utility to fix the data. Otherwise check your incremental index setting.
    Also, you can resubmit and see if it indexes properly to rule out any network glitch.
    Thanks,
    Premkumar

  • 80040e57 error from database update form

    I have a form that updates a database entry. When I submit,
    the data is updated, but after pressing submit the buttons to move
    me to the first, previous, next, or last database record no longer
    function and I get a server error. The server log says
    "80040e57|[Microsoft][ODBC_Microsoft_Access_Driver]Invalid_string_or_buffer_length_
    80 - 72.201.222.169" What does this imply? How do I debug this?
    Thanks,
    Rob

    But when testing we get error: 'java.lang.RuntimeException: Content is not allowed in prolog'
    Content is not allowed in prolog: This error will occur if your variable has not data or some invalid data (e.g with any tag name, uncompleted tag etc)
    So record and playback your process to look into the variable value.
    Also, the following mapping does nothing; because deserialize is used to convert a String type to XML type.
    Location: /process_data/@form_data
    Expression: deserialize(/process_data/@form_data)
    Nith

  • Ora -20001 error coming while updating from a tabular form

    Hi
    I have a tabular form , which updates a table in the database.
    Whenever I update the record first time I getting an error as
    Error in MRU internal routine ORA-20001.Error in MRU:row=1,
    ORA-1403 no_data_found, update abc.sale_forcast_temp set "PK_ID"=:b1,"W27"=:b2
    Error unable to update process
    But when I press Ok return to the form and then again try to update , records gets successfully updated
    Regards
    Shashi

    Kamal,
    This will be the pseudocode.
    Procedure A()
    select * from EMP bulk collect into records_array; --Of type RECORD_ARRAY
    batch_count = (records_array.length) / batch_size;
    --batch_size is say 5000 rows and batch_count is the number of batches  
    for i in 1..(batch_count+1)
    B( records_array);
    C();
    commit;
    Procedure B(records_array in RECORD_ARRAY )
    INSERT /*+PARALLEL(EMP_DUMMY, 2) */
    INTO TABLE EMP_DUMMY
    SELECT * from TABLE(CAST(records_array as RECORD_ARRAY) ;
    Procedure C()
    Other operations which include reads on the EMP_DUMMY table;
    This is the top view of how it looks like. Actually the Select statement for the insert statement is very complex and I do a join on the records that are being passed in by casting it into a table. This query is taking about 40 minutes for 10,000 rows in the records_array. I need to parellelise this query because each row of the records_array yields a different row for the EMP_DUMMY table.
    I hope that I made it clear for you.
    Can you also tell me if procedure C in which I shall be doing a read on the EMP_DUMMY table, has any affect of the parallel insert
    Thanks for your help.

  • JSF problem -  An internal error occurred during: "Updating JSP Index".

    Hello Friends,
    I am facing following problem in ecplise. Whenever I open JSP page or whenever I save my jsp page.
    !ENTRY org.eclipse.core.jobs 4 2 2008-06-14 13:54:24.151
    !MESSAGE An internal error occurred during: "Updating JSP Index".
    !STACK 0
    java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryInfo
         at org.eclipse.jst.jsp.core.internal.taglib.TaglibHelperCache.createNewHelper(TaglibHelperCache.java:112)
         at org.eclipse.jst.jsp.core.internal.taglib.TaglibHelperCache.getHelper(TaglibHelperCache.java:97)
         at org.eclipse.jst.jsp.core.internal.taglib.TaglibHelperManager.getHelperFromCache(TaglibHelperManager.java:43)
         at org.eclipse.jst.jsp.core.internal.taglib.TaglibHelperManager.getTaglibHelper(TaglibHelperManager.java:36)
         at org.eclipse.jst.jsp.core.internal.java.JSPTranslator.addTaglibVariables(JSPTranslator.java:684)
         at org.eclipse.jst.jsp.core.internal.java.JSPTranslator.translateXMLNode(JSPTranslator.java:997)
         at org.eclipse.jst.jsp.core.internal.java.JSPTranslator.translateRegionContainer(JSPTranslator.java:843)
         at org.eclipse.jst.jsp.core.internal.java.JSPTranslator.translate(JSPTranslator.java:734)
         at org.eclipse.jst.jsp.core.internal.java.JSPTranslationAdapter.getJSPTranslation(JSPTranslationAdapter.java:131)
         at org.eclipse.jst.jsp.core.internal.java.search.JSPSearchDocument.getJSPTranslation(JSPSearchDocument.java:112)
         at org.eclipse.jst.jsp.core.internal.java.search.JSPSearchDocument.getPath(JSPSearchDocument.java:149)
         at org.eclipse.jst.jsp.core.internal.java.search.JavaSearchDocumentDelegate.<init>(JavaSearchDocumentDelegate.java:30)
         at org.eclipse.jst.jsp.core.internal.java.search.JSPSearchSupport.createSearchDocument(JSPSearchSupport.java:401)
         at org.eclipse.jst.jsp.core.internal.java.search.JSPSearchSupport.addJspFile(JSPSearchSupport.java:295)
         at org.eclipse.jst.jsp.core.internal.java.search.JSPIndexManager$ProcessFilesJob.run(JSPIndexManager.java:262)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
    I am using Ecplise 3.2.0
    JSF 1.1
    Tomcat 5.5
    JSP2.0
    Any solution for this?
    Thanks & regards
    Abhijai

    Abhijai wrote:
    java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryInfoThis exception is been thrown if the given class was available in classpath during compile time, but not during run time. The solution is obvious: make sure that the given class (or at least the JAR file with the given class) is available in the classpath during run time.
    By the way, why did you think that this problem is related to JSF?

  • == ERROR: BUILDSCRIPT is undefined! Ensure you have updated...

    I updated to the latest Pacman in testing, and when I tried to use makepkg, I got this:
    ==> ERROR: BUILDSCRIPT is undefined! Ensure you have updated /etc/makepkg.conf.
    However, I have already checked and modified the configuration, look:
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The FTP/HTTP download utility that makepkg should use to acquire sources
    FTPAGENT="/usr/bin/wget --continue --passive-ftp --tries=3 --waitretry=3 --no-check-certificate"
    #FTPAGENT="/usr/bin/snarf"
    #FTPAGENT="/usr/bin/lftpget -c"
    # ARCHITECTURE, COMPILE FLAGS
    CARCH="i686"
    CHOST="i686-pc-linux-gnu"
    #-- Exclusive: will only run on i686
    # -mtune builds exclusively for an architecture
    # -mcpu optimizes for an architecture, but builds for the whole processor family
    CFLAGS="-march=native -mtune=generic -O2 -pipe"
    CXXFLAGS="-march=native -mtune=generic -O2 -pipe"
    #-- Make Flags: change this for DistCC/SMP systems
    MAKEFLAGS="-j1"
    # BUILD ENVIRONMENT
    # Defaults: BUILDENV=(!fakeroot !distcc color !ccache)
    #-- fakeroot: Allow building packages as a non-root user
    #-- distcc: Use the Distributed C/C++/ObjC compiler
    #-- color: Colorize output messages
    #-- ccache: Use ccache to cache compilation
    BUILDENV=(fakeroot !distcc color ccache)
    #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
    #-- specify a space-delimited list of hosts running in the DistCC cluster.
    #DISTCC_HOSTS=""
    # GLOBAL PACKAGE OPTIONS
    # These are default values for the options=() settings
    # Default: OPTIONS=(strip !docs !libtool emptydirs)
    #-- strip: Strip symbols from binaries/libraries
    #-- docs: Save doc and info directories
    #-- libtool: Leave libtool (.la) files in packages
    #-- emptydirs: Leave empty directories in packages
    OPTIONS=(strip !docs libtool emptydirs)
    #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
    INTEGRITY_CHECK=(md5)
    #-- Info and doc directories to remove (if option set correctly above)
    DOC_DIRS=(usr/{,share/}{info,doc,gtk-doc} opt/gnome/{,share/}{info,doc,gtk-doc})
    # PACKAGE OUTPUT
    # Default: put built package and cached source in build directory
    #-- Destination: specify a fixed directory where all packages will be placed
    PKGDEST=/home/ltsmash/packages
    #-- Source cache: specify a fixed directory where source files will be cached
    SRCDEST=/home/ltsmash/sources
    #-- Packager: name/email of the person or organization building packages
    PACKAGER="LTSmash <[email protected]>"
    # vim: set ft=sh ts=2 sw=2 et:
    Any ideas?
    Thanks in advance

    ambalex wrote:no, after reinstaling there's no /etc/makepkg.conf.pacnew, and the /etc/makepkg.conf is the old one.
    If pacman didn't install a *.pacnew version of the config file that means that your makepkg.conf is up to date or, in either case, the same as the default one installed by the package.
    Here is the default makepkg.conf file for reference: http://rafb.net/p/5h2PWp94.html

  • Invalid use of Null: 'CStr' - checkbox UPDATE - what the heck?!

    Jeesh...you just think you're beginning to understand things
    and then
    something "weird" happens! Anyway, what is wrong with this?:
    <input <%If
    (CStr((rsCustomer.Fields.Item("deletethis").Value)) =
    CStr("True")) Then Response.Write("checked=""checked""") :
    Response.Write("")%> name="deletethis" type="checkbox"
    id="deletethis"
    value="1" />
    I have this as part of an UPDATE form. If I place a tick in
    the checkbox,
    and submit it, it updates the record correctly as having a 1
    value (True).
    If I open the same UPDATE form, for the same record, it
    displays a check in
    the check box - great.
    However, if the "deletethis" in the user record is initially
    "False" (0),
    the default value for all of my records, and I submit the
    update form
    without changing the deletethis checkbox, it seems to be
    submitting a blank
    value which means that when I re-open the UPDATE form for
    this record, and
    submit the UPDATE again, I get this:
    Error Type:
    Microsoft VBScript runtime (0x800A005E)
    Invalid use of Null: 'CStr'
    //edit-customer.asp, line 838
    I'm sure this is because it is trying to submit a blank
    value, where it
    needs to be either 0 or 1. But why is it submitting
    "deletethis" as a blank
    value?
    When I check my SQL database, the deletethis field shows no
    value, not even
    the word NULL and certainly not a 1 or 0.
    Also, if one of my records already has a 1 value, and I
    change this in the
    UPDATE form, but "unchecking" the deletethis checkbox, again
    it submits a
    blank value! Nyaarg!
    For reference, here is my UPDATE code:
    <%
    If (CStr(Request("MM_update")) = "editcontactdetails") Then
    If (Not MM_abortEdit) Then
    ' execute the update
    Dim MM_editCmd
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_connNAME_STRING
    MM_editCmd.CommandText = "UPDATE dbo.tblCustomers SET
    firstnames = ?,
    surname = ?, billbusiness = ?, billaddress = ?, billaddress1
    = ?,
    billaddress2 = ?, billcity = ?, billregion = ?, billcountry =
    billpostcode = ?, billtelephoneday = ?, billmobile = ?,
    billtelephoneeve =
    ?, billemail = ?, billlocationinfo = ?, username = ?,
    password = ?,
    deletethis = ? WHERE customerID = ?"
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 202,
    1, 150, Request.Form("firstnames")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param2", 202,
    1, 100, Request.Form("surname")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param3", 202,
    1, 150, Request.Form("businessname")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param4", 202,
    1, 100, Request.Form("billaddress")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param5", 202,
    1, 100, Request.Form("billaddress1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param6", 202,
    1, 100, Request.Form("billaddress2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param7", 202,
    1, 100, Request.Form("billcity")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param8", 5,
    1, -1, MM_IIF(Request.Form("billregion"),
    Request.Form("billregion"), null))
    ' adDouble
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param9", 202,
    1, 100, Request.Form("billcountry")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param10", 202,
    1, 75, Request.Form("billpostcode")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param11", 202,
    1, 75, Request.Form("billtelephoneday")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param12", 202,
    1, 50, Request.Form("billmobile")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param13", 202,
    1, 75, Request.Form("billtelephoneeve")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param14", 202,
    1, 150, Request.Form("billemail")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param15", 203,
    1, 1073741823, Request.Form("billlocationinfo")) '
    adLongVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param16", 202,
    1, 25, Request.Form("username")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param17", 202,
    1, 25, Request.Form("password")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param18", 5,
    1, -1, MM_IIF(Request.Form("deletethis"),
    Request.Form("deletethis"), null))
    ' adDouble
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param19", 5,
    1, -1, MM_IIF(Request.Form("MM_recordId"),
    Request.Form("MM_recordId"),
    null)) ' adDouble
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    ' append the query string to the redirect URL
    Dim MM_editRedirectUrl
    MM_editRedirectUrl = "index.asp"
    If (Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0)
    Then
    MM_editRedirectUrl = MM_editRedirectUrl & "?" &
    Request.QueryString
    Else
    MM_editRedirectUrl = MM_editRedirectUrl & "&" &
    Request.QueryString
    End If
    End If
    Response.Redirect(MM_editRedirectUrl)
    End If
    End If
    %>
    Please, can someone just tell me what it is, because I can't
    find an
    explanation in the documentation!
    Much appreciated
    Nath.

    Point taken David, ;o) but you must admit that Dreamweaver is
    not strictly
    marketed as such.
    "With Dreamweaver 8, web developers go from start to finish,
    creating and
    maintaining basic websites to advanced applications that
    support best
    practices and the latest technologies."
    (source:
    http://www.adobe.com/uk/products/dreamweaver/)
    Oh, and then there's the price tag! :-o
    I personally think they could have marketed "Notepad" a
    little better! :o)
    Nath.
    "David Powers" <[email protected]> wrote in message
    news:ej25kb$7nv$[email protected]..
    > Lionstone wrote:
    >> DW offers a helping hand when it comes to database
    integration, but you
    >> should expect to do the bulk of the work yourself.
    Beyond a simple
    >> insert/update/delete of a single record in a single
    table, it's all up to
    >> you.
    >
    > Hear, hear. If only more people realized that this is
    the case, they would
    > find Dreamweaver a lot easier to use.
    >
    > --
    > David Powers
    > Adobe Community Expert
    > Author, "Foundation PHP for Dreamweaver 8" (friends of
    ED)
    >
    http://foundationphp.com/

  • Undefine Index: password

    Hello !
    I have book "Adobe Dreamweaver CS5 with PHP - Training from the source" by Daivid Powers. It contains CD with the files I should use and work with.
    I followed the instructions and I created pages about logining , inserting records, user listing etc..
    The problem is when I try to update records!
    I have a user_list.php which shows a list of users and next to every record there are two buttons (EDIT and DELETE).
    When I press the "EDIT" button is supposed to take me in a page where all the data of the selected user will be filled in except the password..
    It DOES that BUT it gives me a Notice: Undefined index: password in D:\EasyPHP\www\phpcs5\lesson06\workfiles\update_user.php on line 46
    This is what I have in lines 42-47
    42: if(isset($_POST['password']) && empty($_POST['password'])){
    43:   
    44:    $_POST['password'] = $row_getUser['password'];
    45: } else {
    46:     $_POST['password'] = sha1($_POST['password']);
    47: }
    Obviously I am totaly newbie in PHP so it is hard for me not just to solve it but even where to start looking..
    A little googling told me that _POST['password'] does not exist ( it is not submitted or something) but I do not know what to do..
    The book cd contains a directory called "completed" where is supposed that in there, are the files on their final look!
    Unfortunately these files return  the same "Notice".
    OS: Windows 7 pro
    EasyPHP 5.3.5.0
    Apache/2.2.17 (Win32)
    PHP/5.3.5
    MySQL: 5.1.54
    Should I post the code of the files?
    Thank you!

    Ok then!
    There are two files, the user_list.php and the update_user.php.
    When you load user_list.php it shows a list of users and next to each user there are 2 links, the "edit" and "delete".
    When you press the "EDIT" it gets you to the update_user.php and it loads in the input fields the "First Name" , "Family name" and "Username".
    There is one correction for sure that should apply in update_user.php. In the recordset are currently selected the columns user_id, first_name, family_name and username. In the book's corrections page mentions that "password" column should be selected as well.
    As said before the problem is that anytime I try to EDIT a user it returns me an error " Notice: Undefined index: password in D:\EasyPHP\www\phpcs5\lesson06\workfiles\update_user.php on line 46"
    This is what I have in lines 42-47
    42: if(isset($_POST['password']) && empty($_POST['password'])){
    43:   
    44:    $_POST['password'] = $row_getUser['password'];
    45: } else {
    46:     $_POST['password'] = sha1($_POST['password']);
    47: }
    The code of those files is taken from the Completed directory from the cd and are like this..
    user_list.php
    <?php require_once('Connections/cs5read.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;
    $maxRows_getUsers = 10;
    $pageNum_getUsers = 0;
    if (isset($_GET['pageNum_getUsers'])) {
      $pageNum_getUsers = $_GET['pageNum_getUsers'];
    $startRow_getUsers = $pageNum_getUsers * $maxRows_getUsers;
    mysql_select_db($database_cs5read, $cs5read);
    $query_getUsers = "SELECT user_id, first_name, family_name, username FROM users ORDER BY family_name ASC";
    $query_limit_getUsers = sprintf("%s LIMIT %d, %d", $query_getUsers, $startRow_getUsers, $maxRows_getUsers);
    $getUsers = mysql_query($query_limit_getUsers, $cs5read) or die(mysql_error());
    $row_getUsers = mysql_fetch_assoc($getUsers);
    if (isset($_GET['totalRows_getUsers'])) {
      $totalRows_getUsers = $_GET['totalRows_getUsers'];
    } else {
      $all_getUsers = mysql_query($query_getUsers);
      $totalRows_getUsers = mysql_num_rows($all_getUsers);
    $totalPages_getUsers = ceil($totalRows_getUsers/$maxRows_getUsers)-1;
    ?>
    <!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>Registered Users</title>
    <link href="../../styles/users.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <h1>Registered Users</h1>
    <table>
      <tr>
        <th scope="col">Real name</th>
        <th scope="col">Username</th>
        <th scope="col"> </th>
        <th scope="col"> </th>
      </tr>
      <?php do { ?>
        <tr>
          <td><?php echo $row_getUsers['first_name']; ?> <?php echo $row_getUsers['family_name']; ?></td>
          <td><?php echo $row_getUsers['username']; ?></td>
          <td><a href="update_user.php?user_id=<?php echo $row_getUsers['user_id']; ?>">EDIT</a></td>
          <td><a href="delete_user.php?user_id=<?php echo $row_getUsers['user_id']; ?>">DELETE</a></td>
        </tr>
        <?php } while ($row_getUsers = mysql_fetch_assoc($getUsers)); ?>
    </table>
    </body>
    </html>
    <?php
    mysql_free_result($getUsers);
    ?>
    update_user.php
    <?php require_once('Connections/cs5write.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;
    $colname_getUser = "-1";
    if (isset($_GET['user_id'])) {
      $colname_getUser = $_GET['user_id'];
    mysql_select_db($database_cs5write, $cs5write);
    $query_getUser = sprintf("SELECT user_id, first_name, family_name, username FROM users WHERE user_id = %s", GetSQLValueString($colname_getUser, "int"));
    $getUser = mysql_query($query_getUser, $cs5write) or die(mysql_error());
    $row_getUser = mysql_fetch_assoc($getUser);
    $totalRows_getUser = mysql_num_rows($getUser);
    if (isset($_POST['password']) && empty($_POST['password'])) {
      $_POST['password'] = $row_getUser['password'];
    } else {
      $_POST['password'] = sha1($_POST['password']);
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE users SET first_name=%s, family_name=%s, username=%s, password=%s WHERE user_id=%s",
                           GetSQLValueString($_POST['first_name'], "text"),
                           GetSQLValueString($_POST['surname'], "text"),
                           GetSQLValueString($_POST['username'], "text"),
                           GetSQLValueString($_POST['password'], "text"),
                           GetSQLValueString($_POST['user_id'], "int"));
      mysql_select_db($database_cs5write, $cs5write);
      $Result1 = mysql_query($updateSQL, $cs5write) or die(mysql_error());
      $updateGoTo = "user_list.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    ?>
    <!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>Update user details</title>
    <link href="../../styles/users.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <h1>Update User Record</h1>
    <form id="form1" name="form1" method="POST" action="<?php echo $editFormAction; ?>">
      <fieldset>
        <legend>Leave password blank if no change</legend>
        <p>
          <label for="first_name">First name:</label>
          <input name="first_name" type="text" id="first_name" value="<?php echo $row_getUser['first_name']; ?>" />
        </p>
        <p>
          <label for="surname">Family name:</label>
          <input name="surname" type="text" id="surname" value="<?php echo $row_getUser['family_name']; ?>" />
        </p>
        <p>
          <label for="username">Username:</label>
          <input name="username" type="text" id="username" value="<?php echo $row_getUser['username']; ?>" />
        </p>
        <p>
          <label for="password">Password:</label>
          <input type="password" name="password" id="password" />
        </p>
        <p>
          <label for="conf_password">Confirm password:</label>
          <input type="password" name="conf_password" id="conf_password" />
        </p>
        <p>
          <input type="submit" name="add_user" id="add_user" value="Update" />
          <input name="user_id" type="hidden" id="user_id" value="<?php echo $row_getUser['user_id']; ?>" />
        </p>
      </fieldset>
      <input type="hidden" name="MM_update" value="form1" />
    </form>
    </body>
    </html>
    <?php
    mysql_free_result($getUser);
    ?>
    Thank you!

  • Error in my tabular form

    Hello
    I'm getting an error on my tabular form, it is layed out as so:
      [ ]  Title      Lastname   Firstname   Company   Email
    [ ]  Mr/Ms/Mrs  [       ]  [        ]  [      ]  [        ]-first column is a checkbox
    -'title' is a select list default value "Mr"
    -the rest are normal text boxes
    -Validation:Lastname cannot be null
    -validation Firstname cannot be null
    Now the error occurs in only 1 situation:When you click the 'add row' button, but don't edit any boxes before you click 'save'.
    If you do that you get an error saying cannot enter NULL into LASTNAME (which is because the database its going into doesn't allow a null value for that column)
    If you change anything the validations stop you from advancing if lastname or firstname is null...so why don't the validations kick in until you change something? and why does the MRU process not ignore the empty row like the validations seem to?
    It seems strange that they don't both act the same towards it...
    My assumption is that it has something to do with the select list having a default value because I have several other tabular forms in my app and another has 4 select lists and it has the same error, but the ones that don't have a select list have no error...
    So yeh any help/thoughts appreciated

    Sorted this out a while ago...figured I'd just update:
    The value the select lists were showing by default, wasn't actually a default value as such. I had set it to 'do not show null value' so of course it had to show something, which was just the first value in the list which doesn't really count as a default value. So all I did was set the default value of the list to the value that was displayed automatically.

  • Anyone use Flex with php for file upload? PHP Notice:  Undefined index:  Filedata

    My code works. It uploads the file and inputs the file name into a database, but I can't shake this php notice. I think php is looking for multipart/form-data from the HTML form tag.
    <form action="upload.php"  enctype="multipart/form-data"/>
    But I am using flex. The multipart/form-data info is sent as the second default argument of the upload() function. Does anyone have experience with this? Thanks.
    PHP Notice:  Undefined index:  Filedata
    $filename = $_FILES['Filedata']['name'];
    public function selectHandler(event:Event):void {
                    request = new URLRequest(UPLOAD_DIR);
                    try {
                        fileRef.upload(request);
                        textarea1.text = "Uploading " + fileRef.name + "...";
                    catch (error:Error) {
                        trace("Unable to upload file.");
                        textarea1.text += "\nUnable to upload file.";

    Hi, Thanks for your reply !
    Im not getting any errors Flex side, as i say i get a alert message saying the file has been uploaded so . .
    I am using a Wamp server on a windows machine, how do i check the file permissions on both the folder and the php file ?
    Also how do i debug a php file ?
    ANy help would be thankful !

  • Adobe Reader not picking up updates in incrementally updated forms

    I am trying to do incremental update on PDF form. I created two forms using Acrobat Pro. One contains an unchecked checkbox and the other contains unselected radio button. In incremental update, the controls are selected. The issue is that on opening the updated form, Adobe Reader doesn't pick up the updated objects and shows the original form with unselected controls. When I try to open the updated forms with Foxit Reader, updated contents are visible with the controls selected. What could be the issue here?
    Incremental update files I created are available at
    http://www.freedrive.com/file/1309817,cb1.pdf
    http://www.freedrive.com/file/1309818,rb1.pdf

    After some testing, i do find that the overrides file is working properly for my base/newly built machines. So, it must be something on a currently deployed machine, so i can fix that.. I guess technically it's working...
    But, i'm noticing that the Internal AAM server it's looking at is not showing all of the updates it should,
    I did see some errors of :
    Downloading http://swupdl.adobe.com/updates/oobe/aam20/mac/PhotoshopCameraRawForElements11-7.1-x64/7.3 .37/7.3.37.xml
    ******** HTTP Error*********
    Failed to open remote file http://swupdl.adobe.com/updates/oobe/aam20/mac/PhotoshopCameraRawForElements11-7.1-x64/7.3 .37/7.3.37.xml
    Downloading update:  AdobeExtensionManagerCS5-5.0/5.0.1
    I usually just do an incremental update (Mac Server running 10.8)
    Do i need to do a Forced Update? or a 1, of re-downloading a fresh copy of everything?
    It's only a couple updates, But one missing, is the latest Photoshop, which i see if i remove the overrides file, but disappears if i use the overrides file.
    Thanks.

  • Need to automatically display update date and user in update form field

    Hi all,
    Hopefully someone can help me with this... I am using dreamweaver cs4 and php/mysql.  I have a database table that will be updated by 1-5 different people at random times.  I have everything set up and working, as far as the update function, delete function, add new, etc.  In my update form the last two fields are Last Updated and Last Updated By.  There are fields in the table called 'last_updated' (formatted in PHPmyadmin as timestamp) and 'last_updated_by'.  But how do I get them to update on their own?  Right now it is showing the first entry into the field which I did in the PHPmyadmin table, but it is not updating automatically.  It would be a nice field to have so that we know who has worked on the table and when it was last updated, without the user manually typing that in, which I am sure they would forget to do.  By the way, users will login to this with a username and password before editing the records.
    This is the code for the last row in the update form with those two fields.  It is pulling the fields from the database table, but they do not update automatically...
    <tr>
              <th class="blackfont" scope="row">
                <div align="right">
                  <label for="last_updated">Last Updated Date:</label></div>
              </th>
              <td colspan="3" class="blackfont"><input name="last_updated" type="text" id="last_updated" tabindex="47" value="<?php echo $row_getMember['last_updated']; ?>" size="15" />
                <label for="last_updated_by">Last Updated By:</label>
                <input name="last_updated_by" type="text" id="last_updated_by"tabindex="48" value="<?php echo $row_getMember['last_updated_by']; ?>" size="15" /></td>
    </tr>
    Thanks!
    Kathy

    Here is all the code the the Admin Login page...
    <?php session_start(); ?><!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"><!-- InstanceBegin template="/Templates/TherapyPetsTemplate2.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>TPGC Administrative Login Page</title>
    <!-- InstanceEndEditable -->
    <link href="css/twoColFixLtHdr.css" rel="stylesheet" type="text/css" /><!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    .twoColFixLtHdr #sidebar1 { width: 230px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColFixLtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixLtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <script src="JavascriptFiles/mootools.js" type="text/javascript"></script>
    <style type="text/css">
    <!--
    body {
    background-color: #FFF;
    margin-top: 25px;
    margin-bottom: 25px;
    margin-left: 25px;
    margin-right: 25px;
    background-image: url(Images/images-2.jpg);
    background-repeat: repeat;
    .twoColFixLtHdr #container #webstunning_video_player {
    margin-top: 15px;
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    -->
    </style>
    <script src="ajxmenu.js" type="text/javascript"></script>
    <style type="text/css">
    <!--
    body,td,th {
    color: #FFF;
    font-size: 100%;
    font-family: Trebuchet MS, Arial, Helvetica, sans-serif;
    .Italic {
    font-style: italic;
    -->
    </style><link rel="stylesheet" href="ajxmenu1.css" type="text/css" />
    <script src="ajxmenu1.js" type="text/javascript"></script>
    <link rel="stylesheet" href="ajxmenu2.css" type="text/css" />
    <script src="ajxmenu2.js" type="text/javascript"></script>
    <link rel="stylesheet" href="ajxmenu4.css" type="text/css" />
    <script src="ajxmenu4.js" type="text/javascript"></script>
    <!-- InstanceBeginEditable name="head" -->
    <script language='JavaScript' type='text/javascript' src='HDWRegistrationAndLogin/validatescripts.js.php'></script>
    <!-- InstanceEndEditable -->
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-28303973-1']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    </head>
    <body class="twoColFixLtHdr">
    <div id="container">
    <div id="header">
    <!-- end #header -->
    </div>
    <div class="AJXCSSMenuScYdSZA"><!-- AJXFILE:../ajxmenu4.css -->
    <ul>
    <li><a href="Index.html">Home</a></li>
    <li><a class="ajxsub" href="AboutUs.html">About Us</a>
      <ul>
       <li><a href="AboutUs.html">About Our Group</a></li>
       <li><a href="Board%20of%20Directors.html">Board of Directors</a></li>
       <li><a href="ServicesWeProvide.html">Services We Provide</a></li>
       <li><a href="TPGCintheNews.html">TPGC in the News</a></li>
      </ul>
    </li>
    <li><a href="Facilities.html">Facilities</a></li>
    <li><a class="ajxsub" href="GetStarted.html">Get Involved</a>
      <ul>
       <li><a href="DoesYourPetHaveWhatItTakes.html">Does Your Pet Have What it Takes?</a></li>
       <li><a class="ajxsub" href="GetStarted.html">Get Started</a>
        <ul>
         <li><a href="Training.html">Training</a></li>
         <li><a href="Testing.html">Testing</a></li>
        </ul>
       </li>
      </ul>
    </li>
    <li><a class="ajxsub" href="HowYouCanHelp.html">How You Can Help</a>
      <ul>
       <li><a href="HowYouCanHelp.html">Ways to Help</a></li>
       <li><a href="DonorsList.html">Our Donors and Sponsors</a></li>
      </ul>
    </li>
    <li><a class="ajxsub" href="MemberProfiles.html">Happy Tales</a>
      <ul>
       <li><a href="MemberProfiles.html">Member Profiles</a></li>
       <li><a href="MemberStories.html">Member Stories</a></li>
       <li><a href="Testimonials.html">Testimonials</a></li>
       <li><a href="PhotoGalleries.html">Photo Gallery</a></li>
      </ul>
    </li>
    <li><a href="FAQs.html">FAQs</a></li>
    <li><a href="Links.html">Links</a></li>
    <li><a href="Form-ContactUs.html">Contact Us</a></li>
    <li><a class="ajxsub" href="#">Login</a>
      <ul>
       <li><a href="MemberLogin.php">Member Login</a></li>
       <li><a href="BoardLogin.php">Board Login</a></li>
       <li><a href="AdminLogin.php">Admin Login</a></li>
      </ul>
    </li>
    </ul>
    <br />
    </div>
    <div id="sidebar1">
       <div>
        <div align="center">
        <br />
    <br />
    <div id="Events">
    <br />
    <div class="EventsHeading" id="EventsHeading">Upcoming Events</div>
    <br />
    <span class="EventsText">
          <!--Date-->
          </span>
          <span class="EventsDate">March 11th</span>
          <span class="EventsText">
    <!--Event Name-->      Members Meeting
          <!--Time-->
          </span>
    <span class="EventsTextDescription"><!--Description-->
    <strong class="MemberPageItemFont">CANCELLED! </strong></span>
    <br />   
    <span class="EventsDate">March 25th</span>
          <span class="EventsText">
    <!--Event Name-->Testing
    <!--Time-->
          </span>
    <span class="EventsTextDescription"><!--Description-->
    12-3 pm   At Bethesda North Hospital. Please contact <a href="mailto:[email protected]?Subject=Sign up for Testing March 25th">Elaine Waxler</a> to sign up for testing, or <a href="mailto:[email protected]?Subject=Question about Testing March 25th">Glenna Mockbee</a> for more details.</span>
    <br />
          <span class="EventsDate">April 15th</span>
          <span class="EventsText">
    <!--Event Name-->      Board Meeting
          <!--Time-->
          </span>
    <span class="EventsTextDescription"><!--Description-->
    12-3 pm   At Bethesda North Hospital. Please contact <a href="mailto:[email protected]?Subject=Delta Testing Question">Glenna Mockbee</a> for details.</span>
    <br />
          <span class="EventsDate">May 20th</span>
          <span class="EventsText">
    <!--Event Name-->      Member Luncheon
          <!--Time-->
          </span>
    <span class="EventsTextDescription"><!--Description-->
    10-4 pm   At Bethesda North Hospital. More details to come.</span>
    <br />
    </div>
        </div>
        <br />
          <hr align="center" width="200" />
          <div align="center"><a href="http://www.facebook.com/pages/Therapy-Pets-of-Greater-Cincinnati/324108054289534?skip_nax_ wizard=true#!/pages/Therapy-Pets-of-Greater-Cincinnati/324108054289534?sk=wall" target="_blank"><img src="Images/Facebook.jpg" alt="Facebook" width="144" height="44" border="0" /></a><br />
            <br />
          </div>
          <hr align="center" width="200" />
          <div align="center">
          <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="TB844UZWVAUVU"><br />
    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>
    <br />
            <br />
    <hr align="center" width="200" />
    <!-- InstanceBeginEditable name="SideBar" -->
        <div>
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
    <br />
    <br />
        </div>
        <!-- InstanceEndEditable --><br />
      <br />
      <br />
          </div>
    </div>
    </div>
    <!-- InstanceBeginEditable name="MainContent" -->
    <div id="mainContent">
    <span class="GreenHeadingH2">Admin Login</span>
      <br />
      <br />
      <br />
      <br />
    <div align="center"> 
      <p><span class="UnderConstructionFont"><em><strong>***UNDER CONSTRUCTION - PLEASE DO NOT USE YET!</strong></em></span>***</p>
      <p> </p>
      <p><span class="UnderConstructionFont"><em>Please login to manage TPGC lists and information.</em></span><em></em></p>
      <p> </p>
      <p>
    <?php if (!$_SESSION["logged_3"]) { ?>
      </p>
      <form id="hdwlogin" name="hdwlogin" method="post" action="http://www.therapypetsofgreatercincinnati.org/AdminPage.php" onsubmit="return HDW_verify_Login(this)">
        <div id="hdwdivlogin">Enter your username:<br />
          <input type="text" name="username" id="username" />
          <br />
          Enter your password:<br />
          <input type="password" name="password" id="password" />
        </div>
        <div id="hdwdivILMP" style="display:none;"> Enter your email:<br />
          <input type="text" name="hdwILMPemail" id="hdwILMPemail" />
          <br />
          <input type="button" onclick="javascript:HDW_submitILMP()" value="Submit" />
          <a href="javascript:HDW_showLogin()">Login Again</a></div>
        <input type="hidden" name="hdwtable" id="hdwtable" value="3" />
        <input type="hidden" name="hdwokurl" id="hdwokurl" value="http://www.therapypetsofgreatercincinnati.org/AdminPage.php" />
        <br />
        <div id="hdwdivLink" >
          <p>
            <input type="submit" name="subbtn" id="subbtn" value="Submit" />
            </p>
          <p><a href="javascript:HDW_showILMP()">I lost my password</a></p>
        </div>
      </form>
      <p>
        <?php } else { ?>
        Logged as <?php echo $_SESSION["logged_username"]; ?>.
        <br />
      <br />
      <a href="javascript:HDW_logout()">Click here to logout</a>.
      <?php } ?>
      </p>
      <p> </p>
       <p><span class="Caption">To change your password, contact <a href="mailto:[email protected]?Subject=Change my TPGC board password">webmaster</a></span><br />
    </div>
    </div>
    <!-- InstanceEndEditable --><br />
    <br class="clearfloat" />
    <div id="footer">
        <p><img src="Images/x-knead[1].gif" width="98" height="47" align="absmiddle" />        Copyright 2012 Therapy Pets of Greater Cincinnati, a 501(c)(3) organization     Last Updated
          <!-- #BeginDate format:Am3 -->02/25/2012<!-- #EndDate -->           Website by <a href="mailto:[email protected]?Subject=Question or Comment for Webmaster">Kathy McRoberts</a>        <img src="Images/terrier15.gif" width="63" height="60" align="absmiddle" />
          <!-- end #footer -->
          <br />
        </p>
    </div>
    <!-- end #container --></div>
    </body>
    <!-- InstanceEnd --></html>

  • An error occurred creating the form (task 2346, form 0). (ALC-WKS-007-040) error

    Hi all,
    I am a newbie to adobe livecycle process. I am trying to prepopulate the data like the users info when the form is originated in the workspace.
    I did use the samples example for form render service but added to variables called first and lastname as i want these fields to be populated.I am also using an xmlvariable which stores the xml data-(first name and last name) from the form (i got the xml data from the jDBC service usingquery multiple rows by quering edcpricnipal entity). I have followed the steps from http://www.roland-lopez.com/blog/index.cfm?event=showEntry&entryId=ECB034DA-3048-5304-BA9 BB7B0DEDC725A.
    Now I am trying to use the sevice in my application. hennce I created a input variable called app_info of type xfa form and in advanced settings I called the render service which is created before. I am using a PDF file in resources.
    When I try to open the form in workspace I get the error
    An error occurred creating the form (task 2348, form 0). (ALC-WKS-007-040)
    In the erroe log I get the the following error -
    message = ALC-WKS-005-028: A problem occurred in the Render Service. Please review the render orchestration for this process.
    details = null
    rootCause = ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error.
    body = null
    extendedData = {message=ALC-WKS-005-028, cause=com.adobe.idp.taskmanager.dsc.client.task.TaskManagerException}
    2008-11-23 18:55:11,138 INFO [STDOUT] [Flex] Error handling message: flex.messaging.MessageException: ALC-WKS-005-028: A problem occurred in the Render Service. Please review the render orchestration for this process.
    incomingMessage: Flex Message (flex.messaging.messages.RemotingMessage)
    operation = render
    clientId = BE816575-BA0E-55AB-43D6-53511DE9544A
    destination = task-actions
    messageId = 995C15F0-9EE8-20A7-7378-CBC737C22D1A
    timestamp = 1227484510810
    timeToLive = 1227484510810
    body = null
    hdr(DSEndpoint) = workspace-polling-amf
    hdr(DSId) = BE810559-3C1E-B9CC-BB02-DAD2017E1CB6
    errorReply: Flex Message (flex.messaging.messages.ErrorMessage)
    clientId = BE816575-BA0E-55AB-43D6-53511DE9544A
    correlationId = 995C15F0-9EE8-20A7-7378-CBC737C22D1A
    destination = task-actions
    messageId = BE816896-820E-9C32-0CC9-22149F2E7879
    timestamp = 1227484511138
    timeToLive = 0
    body = null
    code = Server.Processing
    Can someone please help me with this.
    Thanks a tonn in advance.

    Hi Jasmin,
    Thanks for your reply. I have changed the variable type in the main application from xfa to document type as suggested. But when I try to open the file in workspace I get the sameerror. but in the error log the error is as follows
    INFO [STDOUT] [Flex] Error handling message: flex.messaging.MessageException: com.thoughtworks.xstream.mapper.CannotResolveClassException : com.adobe.idp.taskmanager.form.impl.xfa.XFARepositoryFormInstance : No ClassLoaders found for: com.adobe.idp.taskmanager.form.impl.xfa.XFARepositoryFormInstance
    incomingMessage: Flex Message (flex.messaging.messages.RemotingMessage)
    operation = render
    clientId = C750393C-201C-717C-FCD5-6C61E56457A8
    destination = task-actions
    messageId = 8F8A2B82-2778-A08E-6D8A-CF62CE975DD3
    timestamp = 1227545038368
    timeToLive = 1227545038368
    body = null
    hdr(DSEndpoint) = workspace-polling-amf
    hdr(DSId) = C74FE532-741B-7AD1-6240-601872F82B0D
    errorReply: Flex Message (flex.messaging.messages.ErrorMessage)
    clientId = C750393C-201C-717C-FCD5-6C61E56457A8
    correlationId = 8F8A2B82-2778-A08E-6D8A-CF62CE975DD3
    destination = task-actions
    messageId = C7503B9E-7A0B-28E0-59DC-ACD49B49B722
    timestamp = 1227545038618
    timeToLive = 0
    body = null
    code = Server.Processing
    message = com.thoughtworks.xstream.mapper.CannotResolveClassException : com.adobe.idp.taskmanager.form.impl.xfa.XFARepositoryFormInstance : No ClassLoaders found for: com.adobe.idp.taskmanager.form.impl.xfa.XFARepositoryFormInstance
    details = null
    rootCause = com.thoughtworks.xstream.mapper.CannotResolveClassException: com.adobe.idp.taskmanager.form.impl.xfa.XFARepositoryFormInstance : No ClassLoaders found for: com.adobe.idp.taskmanager.form.impl.xfa.XFARepositoryFormInstance
    body = null
    extendedData = null
    2008-11-24 11:44:01,321 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl retrieveEvent
    INFO: retrieving active event for 6052
    2008-11-24 11:44:01,321 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl retrieveEvent
    INFO: retrieved active event for 6052
    2008-11-24 11:44:01,337 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl sendNotifications
    INFO: Total subscriptions retrieved = 2 for event id6052
    2008-11-24 11:44:01,353 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl createNotifications
    INFO: Now creating notifications.
    2008-11-24 11:44:01,353 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl createNotifications
    INFO: Created 2 notifications.
    2008-11-24 11:44:01,353 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl retrieveEvent
    INFO: retrieving active event for 6052
    2008-11-24 11:44:01,353 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl retrieveEvent
    INFO: retrieved active event for 6052
    2008-11-24 11:44:01,431 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl deliverNotificationToService
    INFO: Now delivering notification to service RemoteEvents
    2008-11-24 11:44:01,431 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl deliverNotificationToService
    INFO: Now delivering notification to service operation onEvent
    2008-11-24 11:44:01,431 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl deliverNotificationToService
    INFO: Now delivering notification to service operation parameters {eventType=TaskCreated}
    2008-11-24 11:44:01,431 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl deliverNotificationToService
    INFO: Now delivering notification to service OrchestrationEventHandler
    2008-11-24 11:44:01,446 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl deliverNotificationToService
    INFO: Now delivering notification to service operation onEvent
    2008-11-24 11:44:01,446 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl deliverNotificationToService
    INFO: Now delivering notification to service operation parameters {eventTemplateId=STRT_ER1172599333679, serviceName=Task Assignment, eventTemplateType=eventReceiveAsStartTemplate, eventTypeName=TaskCreated}
    2008-11-24 11:44:01,446 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl deliverNotificationToService
    INFO: Notifications delivered
    2008-11-24 11:44:01,446 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl disableNotification
    INFO: Attempting to disable the notification after delivery.
    2008-11-24 11:44:01,446 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.workflow.dsc.service.OrchestrationEventListenerService onAsynchronousEvent
    INFO: ProcessManagerSerice:onAsynchronousEvent()
    2008-11-24 11:44:01,446 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl disableNotification
    INFO: Attempting to disable the notification after delivery.
    2008-11-24 11:44:01,462 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.util.EventDBHelper getActiveEventByPrimaryKey
    INFO: Event with id 6052 is already disabled, EventService will not deliver notification.
    2008-11-24 11:44:01,462 INFO [com.adobe.workflow.AWS] Invoking action synchronously
    2008-11-24 11:44:01,462 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.livecycle.notification.TaskNotificationServiceImpl taskAssignment
    INFO: TaskNotificationService called taskAssignment: 2350
    2008-11-24 11:44:01,462 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.livecycle.notification.TaskNotificationServiceImpl handleNotificationEvent
    INFO: TaskNotificationService called handleAssignmentOrReminderEvent: 2350
    Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl updateEventStatus
    INFO: Event with id 6052 is already inactive.Event instance with id 6052 is inactive for TaskCreated
    2008-11-24 11:44:01,478 INFO [com.adobe.livecycle.remoteevents.client.RemoteEventClient] message received type: event
    2008-11-24 11:44:01,478 INFO [com.adobe.livecycle.remoteevents.client.RemoteEventClient] message received part 1: {data=[B@1d766ce, event=TaskCreated}
    2008-11-24 11:44:01,556 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl deliverNotificationToService
    INFO: Notifications delivered
    2008-11-24 11:44:01,556 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl disableNotification
    INFO: Attempting to disable the notification after delivery.
    2008-11-24 11:44:01,556 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl disableNotification
    INFO: Attempting to disable the notification after delivery.
    2008-11-24 11:44:01,556 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.util.EventDBHelper getActiveEventByPrimaryKey
    INFO: Event with id 6052 is already disabled, EventService will not deliver notification.
    2008-11-24 11:44:01,556 INFO [STDOUT] Nov 24, 2008 11:44:01 AM com.adobe.idp.event.notification.NotificationManagerImpl updateEventStatus
    INFO: Event with id 6052 is already inactive.Event instance with id 6052 is inactive for TaskCreated
    Thanks for your reply!

  • Error: var g_objCurrentFormData_Error : There has been an error while processing the form

    Hi,.
    I have a InfoPath 2010 form which was published to SharePoint 2010.  I migrated the content db to SQL Server 2012 and I have converted the Sharepoint 2010 (windows based) to the SharePoint 2013 claims based site. I have not fully upgraded the site to
    2013 version (Version upgrade to SP 2013) is not done..
    In the InfoPath 2010 form, which is available in SP 2013. I have a button and on click of it, i have the below code:
    XPathNavigator domNav = MainDataSource.CreateNavigator();
    XPathNavigator fldUserurl = domNav.SelectSingleNode("/my:myFields/my:TaskUrl", this.NamespaceManager);
    if (!string.IsNullOrEmpty(fldUserurl.Value))
    string urlToDecode = HttpUtility.UrlDecode(fldUserurl .Value);
    HttpContext.Current.Response.Write("<script type='text/javascript'>window.open('" + urlToDecode + "','_self','left=20,top=20,width=500,height=500,toolbar=1,resizable=0');</script>");
    HttpContext.Current.Response.Flush();
    HttpContext.Current.Response.End();
    The above code works fine in SharePoint 2010, however after moving the Site to SP 2013 Claims mode, I am getting the error as
    "var g_objCurrentFormData_Error = [[[12,"There has been an error while processing the form.","","","guid"]],[],0,"","",1033,"","",["0","","","","","",0,0,"",0,false],"","0",false,"",0,"","http:\u002f\u002ftest-t1.com\u002fs\u002fTestApplication","ltr","http:\u002f\u002ftest-t1.com\u002fs\u002fTestApplication",6.35202885373882E+17"
    In the SP Logs, i found the below:
    Unhandled exception processing request for PostbackPage Microsoft.Office.InfoPath.Server.Util.InfoPathFatalException: Exception of type 'Microsoft.Office.InfoPath.Server.Util.InfoPathFatalException' was thrown.   
     at Microsoft.Office.InfoPath.Server.Util.GlobalStorage.get_CurrentFormId()   
     at Microsoft.Office.InfoPath.Server.Util.GlobalStorage.get_CurrentContext()   
    How to fix this?
    Thanks

    Hi Venkatzeus,
    please let us know your sharepoint 2013 latest cumulative update, if possible please make sure it is March 2013 update or above.
    as i know, between 2010 infopath and 2013 there are difference, perhaps if you can debug your form it may help.
    most probably there are environment settings difference between 2010 sharepoint and 2013 sharepoint. such as the data connection size/length, that causing it failed, or the form data is NULL.
    http://infopathdebugger.codeplex.com/
    http://www.infopathdev.com/forums/t/26330.aspx
    http://social.technet.microsoft.com/Forums/en-US/5c9d2fce-0fd8-439c-a636-bf856eb76e15/how-to-retrieve-term-store-management-values?forum=sharepointgeneralprevious
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Can you move a 'Multiple Image Upload' button  into the 'Update Form'?

    I am able to creat and an Update form and an image upload using the "Update Form Wizard" tool and the "Multiple Image Upload" tool succesfully.
    <br />
    <br />The problem comes when I try to move the "UPLOAD" button inside the Update form. Right now it looks like this:
    <br />http://www.webritesolutions.com/Test/upload/now.JPG
    <br />
    <br />This is how I would like it to show:
    <br />http://www.webritesolutions.com/Test/upload/tryingto.JPG
    <br />
    <br />I want to "Upload" button to go next to the "Update record" button. When I do this I get a javascript error and the "Update record" button is disabled.
    <br />Here is the code of what I tried to do:
    <br />
    <br />
    <br />
    <br />
    <br />
    <table>
    <tr class="KT_buttons">
    <td>
    <?php<br />        // Multiple Upload Helper<br /> echo $muploadHelper->Execute();<br /> ?>
    </td>
    <td colspan="1">
    <input type="submit" name="KT_Update1" id="KT_Update1" value="Update record" />
    <br /></td>
    </tr>
    </table>
    <br />
    <br />Here is the Javascript error:
    <br />http://www.webritesolutions.com/Test/upload/error.JPG
    <br />
    <br />thanks for your help.

    A control can only appear once in the visual tree. So you have to remove it from the Grid before you can add it to the DockPanel.
    This code will move the Border element from the Grid to the DockPanel when you click the button:
    Private Sub Button_Click(sender As Object, e As RoutedEventArgs)
    Dim border = CType(LayoutRoot.FindName("myborder"), Border)
    LayoutRoot.Children.Remove(border)
    contain.Children.Add(border)
    End Sub
    <StackPanel>
    <Grid x:Name="LayoutRoot">
    <Border x:Name="myborder" BorderBrush="Black" BorderThickness="2">
    <TextBlock>...</TextBlock>
    </Border>
    </Grid>
    <DockPanel x:Name="contain" Background="Yellow">
    <TextBlock>2</TextBlock>
    </DockPanel>
    <Button Click="Button_Click" Content="Move"/>
    </StackPanel>
    You can try it for yourself. But please post your code as formatted text and not as embedded images if you want anyone to be able to reproduce your issue and help you in the future.
    Please remember to close your threads by marking helpful posts as answer.

Maybe you are looking for