Title: Bulk layout syntax error
Last modified: February 12, 2021

---

# Bulk layout syntax error

 *  Resolved [locksunlight](https://wordpress.org/support/users/locksunlight/)
 * (@locksunlight)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/bulk-layout-syntax-error/)
 * Hello,
 * I have just purchased pro and enabled it. When copying code from “bulk layout”
   and saving, the page errors with the below…..
 * Parse error: syntax error, unexpected ‘pure’ (T_STRING), expecting ‘,’ or ‘;’
   in /home/customer/www/tonyoughton.uk/public_html/wp-content/plugins/wp-upg/layout/
   form/personal/1_personal_post_form.php on line 54
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbulk-layout-syntax-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [odude](https://wordpress.org/support/users/odude/)
 * (@odude)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/bulk-layout-syntax-error/#post-14042054)
 * I checked your site and didn’t found any issues.
    Image successfully uploaded
   and found security check also worked.
 * Seems you had error due to improper inverted commas.
 *  Thread Starter [locksunlight](https://wordpress.org/support/users/locksunlight/)
 * (@locksunlight)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/bulk-layout-syntax-error/#post-14050597)
 * I had to change the layout as the page was unusable. I have set it back to “bulk
   layout” and the above error is displayed.
 *     ```
       <script src="<?php echo plugins_url() . '/' . upg_FOLDER . '/layout/form/bulk/dropzone.js'; ?>"></script>
       <link rel="stylesheet" href="<?php echo plugins_url() . '/' . upg_FOLDER . '/layout/form/bulk/dropzone.css'; ?>">
       <?php
   
       if (is_upg_pro()) {
           include_once(WP_PLUGIN_DIR . '/wp-upg-pro/bulk_upload_layout.php');
   
           $upload_dir = wp_upload_dir();
           $upload_path = $upload_dir['path'] . DIRECTORY_SEPARATOR;
           $resultUpload = upg_bulk_post_layout($upload_path, $preview, $form_name, $form_attach_id);
           ?>
   
           <form method="POST" enctype="multipart/form-data" action=" " class="dropzone pure-form">
   
               <input id="name" name="user-submitted-title" type="text" value="" placeholder="<?php _e('Post Title', 'wp-upg'); ?>" required>
               <?php echo upg_droplist_category('', 'image'); ?>
               <?php
                   do_action("upg_submit_form");
                   ?>
   
               <legend></legend>
   
               <div class="fallback">
                   <input id="file" name="user-submitted-image" type="file" multiple />
               </div>
   
               <?php wp_nonce_field('upg-nonce', 'upg-nonce', false); ?>
   
               <input type="hidden" name="preview" value="<?php echo $preview; ?>">
               <input type="hidden" name="form_name" value="<?php echo $form_name; ?>">
               <input type="hidden" name="media_private" value="<?php echo $media_private; ?>">
               <input type="hidden" name="form_attach" value="<?php echo $form_attach_id; ?>">
   
           </form>
           <p class="max-upload-size"><?php printf(__('Maximum upload file size: %s.'), esc_html(size_format(wp_max_upload_size()))); ?></p>
   
       <?php
   
       } else {
   
           echo "'Bulk layout' is available only to <a href='https://odude.com/product/wp-upg-pro/'>UPG Pro</a>. <hr></b>";
       }
   
       //if(isset($options['my_gallery']))
       //{
       //echo $options['my_gallery']."---";
       echo "<a href='" . esc_url(get_page_link(upg_get_option('my_gallery', 'upg_gallery', '0'))) . "' class=\"pure-button\">" . __('My Gallery', 'wp-upg') . "</a><br><br>";
       //}
   
       ?>
       ```
   
 * I’m looking to find the Drag & Drop Bulk Layout. To upload multiple images at
   once.
 * Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bulk layout syntax error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-upg_72695c.svg)
 * [User Post Gallery - UPG](https://wordpress.org/plugins/wp-upg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-upg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-upg/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-upg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-upg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-upg/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [locksunlight](https://wordpress.org/support/users/locksunlight/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/bulk-layout-syntax-error/#post-14050597)
 * Status: resolved