Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter arev

    (@arev)

    Thank you very much for your help. I think you are correct in guessing the reasons.

    Thread Starter arev

    (@arev)

    Thank you very much for your support. Seems I have found the reason of problems.

    It seems it was the file path issue, as previously the files were kept in the following type of directory

    /home/username/public_html/some_directory/file.pdf

    and now this path became

    /some_directory/file.pdf

    So after this change it is working properly. Also for the PDF type of file, due to Chrome issue with opening files I was using an option “force download”. Somehow this now was also giving issue. After I removed this option, I’m able to download PDF file. But before it was trying to open te file, and was giving an error.

    Thank you again!

    Best regards.

    Thread Starter arev

    (@arev)

    Thank you very much for your help.

    Actually I’m doing exactly the way you described, but the problem is that when I’m opening local browser, it is not allowing me to select a file.

    It seems like to be locked. So I was forced to type the path manually.

    I’m thinking to clear the cache, do you have some suggestions on some easy way of clearing cache?

    Thank you in advance.

    Thread Starter arev

    (@arev)

    I have created new contact form, new download, with new ID.

    https://rafasolutions.com/en/test-download/

    But during created I have noticed new problems, which were not there previously.

    When I was trying to select a file for downloading, it was not possible to select any folder to open, or file o choose.

    So I manually entered file path from the server.

    Next, after the new page with new contact form and new download was created, when I press download, it is opening one of my old contact form for download.

    You can check out it from the provided link.

    Thread Starter arev

    (@arev)

    Hi,

    Thank you for your reply.

    Actually it used to work properly for several months. But now I have changed the website hosting. And after this change the mentioned problems appeared.

    All downloads from the website are implemented with the Email before download plugin. So the user should fill the form to get the link.

    https://rafasolutions.com/en/download-inpedusavionics-datasheet/

    This is the download link I just created with the form.

    https://rafasolutions.com/wp-content/plugins/email-before-download/download.php?dl=3cf4e298869a47bcfac6d7482d4e15d5

    And these are the shortcodes.

    [email-download download_id=”2780″ contact_form_id=”3342″ force_download=”true”]

    Best regards.

    Thread Starter arev

    (@arev)

    Hi zaus,

    I tried to add the custom fields as following:

    CUSTOMFIELDS%1/CUSTOM_FIELD_ID
    CUSTOMFIELDS%1/FIELD_VALUE
    CUSTOMFIELDS%2/CUSTOM_FIELD_ID
    CUSTOMFIELDS%2/FIELD_VALUE

    And the result I’m getting is:

    [body] => {“CUSTOMFIELDS%1”:{“CUSTOM_FIELD_ID”:”Product Download”,”FIELD_VALUE”:”test2″},”CUSTOMFIELDS%2″:{“CUSTOM_FIELD_ID”:”Datasheet Download”,”FIELD_VALUE”:”wer”},”FIRST_NAME”:”Arev”,”LAST_NAME”:”Arev”,”TITLE”:”JK”,”ORGANIZATION_NAME”:”JK”,”PHONE_NUMBER”:”678951″,”EMAIL_ADDRESS”:”[email protected]”,”ADDRESS_COUNTRY”:”Austria”,”LEAD_DESCRIPTION”:”Datasheet Download”,”LEAD_RATING”:”2″}

    Could you please suggest what I’m doing wrong, or what else I should do to get json array instead.

    Thanks.

    Thread Starter arev

    (@arev)

    Hi zaus,

    Thanks for your help, but I think I haven’t understood fully your suggestion.

    Where do you suggest to add custom fields/%i/custom-field-id?

    The plugins interface allows to fill Label, Form submission field and the 3rd-party field.

    Thread Starter arev

    (@arev)

    Hi,

    Thank you for your answers.
    Actually I need to get something like this:

    “CUSTOMFIELDS”: [
    {
    “CUSTOM_FIELD_ID”: “sample string 1”,
    “FIELD_VALUE”: {aaa}
    },
    {
    “CUSTOM_FIELD_ID”: “sample string 1”,
    “FIELD_VALUE”: {bbb}
    },
    {
    “CUSTOM_FIELD_ID”: “sample string 1”,
    “FIELD_VALUE”: {ccc}
    }
    ],

    Thread Starter arev

    (@arev)

    Hi zaus,

    Thank you very much for your support. You helped me a lot. The problem really was connected with the wrapper value set to post.

    Thank you again!

    Thank you for clarifications.

    I have tried to use Leads instead of Contacts, but in this case I get error, and no contact is created.

    When using Contacts, I get contact with empty fields.

    I’ve set all my settings, according to your settings in the image, and hs got the same result: contacts are created, but with empty fields.

    I have the following mapping:
    insightly_web_to_contact – name
    code – formID
    your-name – FIRST_NAME
    your-name – LAST_NAME

    Yes, in this case I’m getting notification that it has failed. In case of Leads it is not creating anything.

    Hi milkman1265

    I have the same problem, as you have described in your first message. But the solution you suggested is not working in my case.

    Could you please let me know if there are some other tricks as well.

    Please see my debug email below.

    Thank you in advance.

    *** Service ***
    Array
    (
    [name] => Insightly Leads
    [url] => https://api.insight.ly/v2.1/Contacts
    [forms] => Array
    (
    [0] => cf7_2798
    )

    [success] =>
    [failure] =>
    [timeout] => 10
    [as-xpost] => json
    [xpost-wrapper] => post
    [xpost-header] => Authorization=Basic [base64]API key[/base64]
    [mapping] => Array
    (
    [0] => Array
    (
    [lbl] => The submitter name
    [src] => your-name
    [3rd] => FIRST_NAME
    )

    [1] => Array
    (
    [lbl] => The submitter name
    [src] => your-name
    [3rd] => LAST_NAME
    )

    )

    [separator] => ,
    )

    *** Post (Form) ***
    https://my website/
    Array
    (
    [_wpcf7] => 2798
    [_wpcf7_version] => 4.3
    [_wpcf7_locale] => en_US
    [_wpcf7_unit_tag] => wpcf7-f2798-p2836-o1
    [your-name] => my name
    [your-email] => my email
    [tel-399] => my phone
    [your-company] => company
    [your-title] => title
    [coutrylist] => country
    [_wpcf7_download_id] => 28
    [_wpcf7_is_ajax_call] => 1
    )

    *** Post (to Service) ***
    Array
    (
    [timeout] => 10
    [body] => {“post”:{“FIRST_NAME”:”my name”,”LAST_NAME”:”my name”}}
    [headers] => Array
    (
    [Authorization] => Basic MTE1NTQ0YjYtNDVmYy00ZTE5LWJmM2UtZGFjZjk1YWVjMmU5
    [Content-Type] => application/json
    )

    )

    *** Response ***
    Array
    (
    [headers] => Array
    (
    [cache-control] => no-cache
    [pragma] => no-cache
    [content-type] => application/json; charset=utf-8
    [expires] => -1
    [location] => https://api.insight.ly/v2.1/Contacts/169993494
    [server] => Microsoft-IIS/7.5
    [x-powered-by] => ASP.NET
    [date] => Fri, 06 May 2016 20:42:03 GMT
    [connection] => close
    [content-length] => 489
    [set-cookie] => snaptid=sac1prdc01ut04; path=/; HttpOnly; Secure
    )

    [body] => {“CONTACT_ID”:169993494,”SALUTATION”:null,”FIRST_NAME”:null,”LAST_NAME”:null,”BACKGROUND”:null,”IMAGE_URL”:”https://s3.amazonaws.com/insightly.userfiles/432102/”,”DEFAULT_LINKED_ORGANISATION”:null,”OWNER_USER_ID”:756781,”DATE_CREATED_UTC”:”2016-05-06 20:42:04″,”DATE_UPDATED_UTC”:”2016-05-06 20:42:04″,”VISIBLE_TO”:”EVERYONE”,”VISIBLE_TEAM_ID”:null,”VISIBLE_USER_IDS”:null,”CUSTOMFIELDS”:[],”ADDRESSES”:[],”CONTACTINFOS”:[],”DATES”:[],”TAGS”:[],”LINKS”:[],”CONTACTLINKS”:[],”EMAILLINKS”:[]}

    [response] => Array
    (
    [code] => 201
    [message] => Created
    )

    [cookies] => Array
    (
    [0] => WP_Http_Cookie Object
    (
    [name] => snaptid
    [value] => sac1prdc01ut04
    [expires] =>
    [path] => /
    [domain] => api.insight.ly
    [httponly] =>
    [secure] =>
    )

    )

    [filename] =>
    )

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