[Forminator Pro] Upload File Error

Hello ,
My client using Pantheon Hosting , I got error when I upload a file to the form.

I contact Live agent and he said I should make conflict test.

I did it , By disable all plugins except Forminator and the Hub.

And I got same error !! .. So , I think it is a bug from your side.

Pantheon have three enviroments I will gave support access to Live and Dev.

Obvious differences of DEV and TEST/LIVE environments are:
Different URLs for the site (dev-, test,- live-
TEST and LIVE environment are Write locked because of version control
Each environment has their own, separate DBs
So if the plugin uses any of these as part of the configuration, then they might need to be checked.

Could you help , Please?

Notes:

- It is working in Dev enviroment because it is in SFTP mode , If I enable Git as ( Test and Live ) It will not working
- Please Check https://pantheon.io/docs/modules-plugins-known-issues/

Regards

  • Patrick Freitas
    • Staff

    Hi Mohamed

    I'm sorry to hear that you are having this problem.

    Wouldn't you mind please send the FTP information for both websites.

    Note: Don't leave your login details in this ticket.

    Instead, you can send us your details using our contact form https://premium.wpmudev.org/contact/#i-have-a-different-question:

    Subject: "Attn: Patrick Freitas"

    - Site login URL:

    - WordPress admin username:
    - WordPress admin password:

    - FTP/SFTP credentials

    Host:
    Username:
    Password:
    Port:

    - cPanel credentials

    Host:
    Username:
    Password:

    - Folder path to the site in question:

    - Link back to this thread for reference

    - Any other relevant URLs/info:

    Please, reply to the ticket once you have sent the information.
    Best Regards
    Patrick Freitas

  • Patrick Freitas
    • Staff

    Hi Mohamed

    Thank you for the information.

    I made some test, on the Pantheon environment the wp-content/uploads is a shortcut to a folder called files. However, I can see there are some files inside that folder and had a double check on the permissions, everything is ok there. I tried to create a tempory upload folder into the wp-content but I couldn't, so I made the following test:

    I created the situation:

    A form test where the field was required, and I got the same issue:

    The field is required, Please upload a file.

    On the second test, I didn't use the upload as required.
    When the field is not *required, it sent the contact form without the file.

    As you already made a plugin conflict test, wouldn't you mind to the same for the theme?
    Switch to the Twenty Seventeen theme and check if the problem is gone.

    It the problem persists, rename the shortcut on the wp-content/uploads and create a new uploads folder, give it 755 permission.

    Let me know the results.
    Best Regards,
    Patrick Freitas

    • Mohamed
      • Flash Drive

      Hi Patrick Freitas ,
      Thank you , sorry but all of this already done nothing new with your words !
      From the beginning i said :
      - The problem in upload file not submit the normal form.
      - The problem with Pantheon at all not certain website , I said to you at live chat i create sandbox with only Forminator and it is same problem.
      - I attached links to Pantheon documantion Did you check it ?
      - Please, create sandbox with Pantheon it is free try by yourself and contact them contact support.
      - They have restrictions on files and folders

      Please , Give me real solution or answer as fast as possible

      Thanks

  • Patrick Freitas
    • Staff

    Hi Mohamed

    - The problem in upload file not submit the normal form.

    I tested both situations, just in case :wink:

    - The problem with Pantheon at all not certain website , I said to you at live chat i create sandbox with only Forminator and it is same problem.

    The credentials that you provided me is restricted, I wasn't able to run more test, so I had to deal with that I could test.

    - I attached links to Pantheon documantion Did you check it ?

    As I said, the permissions on that folder (uploads) are set right, again, you can see others files inside the upload folder, if this is not writable you wouldn't have those files at all. :wink:

    - Please, create sandbox with Pantheon it is free try by yourself and contact them contact support.

    I will run this test as soon as possible, also will contact their support.

    - They have restrictions on files and folders

    If they have such restrictions, this is a server side problem, we are working on the thread for you and update as soon as we find a solution.

    Best Regards,
    Patrick Freitas

  • Patrick Freitas
    • Staff

    Hi Mohamed

    I would like to update this thread.

    I just created a test at Pantheon, and I was able to upload the file.

    Wouldn't you mind please, double check a Theme Conflict? This test is a quick and simple test, just switch the staging site to a WordPress default Theme.

    Let me know the result.
    Best Regards,
    Patrick Freitas

  • Patrick Freitas
    • Staff

    Hi Mohamed

    How are you today?

    Wouldn't you mind please to update the attached file on /wp-content/plugins/forminator/library/abstracts
    Create a backup of the abstract-class-front-action.php and upload the new file into the abstracts folder.

    Remember, is essential that you run this test in a staging site, if you can’t do it you must create a full backup.

    Let me know the results,
    Best Regards,
    Patrick Freitas

  • Patrick Freitas
    • Staff

    Hi Mohamed

    I'm glad to hear that this worked.

    The plugin could not write the TEMP file on pantheon service, so it could not upload the data from the temp directory to the right directory, this only happened for me on the TEST and LIVE pantheon environment. However, I contacted our developers, and they modified the way the temp file is written.

    They included this as a feature and will be included in a future release, you will not have the problem when updating the plugin.

    Best Regards,
    Patrick Freitas

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.