Support » Plugin: WordPress File Upload » do shortcode not function properly in thank you page

  • Hi,
    I have an issue with nonfunctional upload form once using the do_shortcode method.
    The shortcode instance set to be visible in cart page in the settings of the instance.
    So, at the cart page the plugin showing the form automatically and all works great.

    Once I’m trying to use the same shortcode (or other instance) at the thank you page with this line: <?php echo do_shortcode(‘[wordpress_file_upload]’); ?> I can see the upload form, but when clicking on the browse button and choosing a file, the input text fieled not filled with the name of the chose file and also the upload button is not active.
    Also the pen symbol to edit the shortcode doen’t work and not responding.

    Can u tell me what i’m doing wrong in order to make it work?
    Thanks so much!
    Best regards,
    Ofir

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author nickboss

    (@nickboss)

    Hi Ofir, view the page contents (there is an option for this when you right-click on the page) and search for ‘wordpress_file_upload_block’ string. How many of them do you see in the page?

    Nickolas

    Hi Nickolas, got one block only, 2 strings found as follow: Photo

    Plugin Author nickboss

    (@nickboss)

    Ok, so there is only one instance.

    Next thing is to check if there are any Javascript errors when loading the page.

    Load the page, press F12 to open Dev Console and then reload the page. Do you see any errors in Console tab?

    Nickolas

    Yes, WFU is undefined.

    Plugin Author nickboss

    (@nickboss)

    Ok, so this means that something is not loading correctly. Please go to Sources tab in Dev Console, browse in wp-content/plugins/wordpress-file-upload/js and see if wordpress_file_upload_functions.js file is loaded.

    Nickolas

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.