We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32714
    • 2 Posts


    Hi all
    I get the same error as Microbe. Just wondering if anyone knows what it is? and how to fix it?
    thanks


    Quote from: MIcrobe at Jun 28, 2010, 02:03 AM


    Parse error: syntax error, unexpected T_GLOBAL, expecting ’{’ in /home/somewhere/public_html/manager/includes/document.parser.class.inc.php(770) : eval()’d code on line 2

      • 4310
      • 2,310 Posts
      I haven’t actually used it, but a quick look at /formbuilder/functions.php suggests changing the contents to:
      <?php
      function formupdate(){
      global $modx;
      	$id = $_REQUEST['fid'];
      	$column = $_REQUEST['id'];
      	$value    = $_REQUEST['new_value'];
      	$update = array(
      	$column => $value
      			);
      	$table = $modx->getFullTableName( 'formbuilder_names' );
      	$modx->db->update($update, $table, 'internalKey = "' . $id . '"' );
      	$json = new Services_JSON( );
      
      	print $json->encode( array(
      	    "is_error"        => false,
      	    "error_text"    => "Ack!  Something broke!",
      	    "html"            => $value
      	) );
      }
      ?>

      might help, best save a copy first though wink
        • 32714
        • 2 Posts
        Thanks for your help bunk58. I used the code. But unfortunatly I get different error. any ideas?

        Parse error: syntax error, unexpected T_GLOBAL, expecting ’{’ in /home/test/public_html/Modx/manager/includes/document.parser.class.inc.php(770) : eval()’d code on line 3

        thanks
          • 4310
          • 2,310 Posts
          I’m trying it now, but am struggling to get it to work on the front end sad
            • 30912
            • 463 Posts
            Hi,

            Im trying this module - its a cool addition.

            its working fine, however im not receiving any of the emails that the form submits, it goes into the database but theres no actual send.

            thx

            Tyr
              • 1841
              • 141 Posts
              Hello,
              with eform you can send an auto reply email via a chunk, is there any way this facility can be used in form builder, preferably as a chunk with attachment?