1. Install a new osticket with default settings
  2. Select this settings:
  3. Register an user
  4. Open a new window in Incognito mode and User Authorization
  5. filling in the required fields with insert image

    itabirit

    I see you have a "Save Error" in your screenshot. If you pull up browser Developer Tools, go to Network tab, click Preserve Logs, upload the image, click the response from the draft/upload request (should be red), and see what that error says.

    Also, you should try upgrading to v1.18.1 and retest.

    Cheers.

    I'm sorry but I don't have enough skills with debugging in Chrome.

    {
    "image.png": {
    "content_id": "cid:lmEyL9hAi5TXKqVj1SB9oSUYUuzhJzD4",
    "id": "lmEyL9hAi5TXKqVj1SB9oSUYUuzhJzD4",
    "draft_id": 11,
    "url": "\/file.php?key=lmeyl9hai5txkqvj1sb9osuyuuzhjzd4&expires=1698796800&signature=ce69b9709f8a0da5eba0f08e156f4470b205e3b0&id=25"
    }
    }

      itabirit

      Okay that means uploading an image is fine just the draft save is failing. What is the Payload for the draft save request?

      Cheers.


      b1f0b996c69349: <p>dfgdfgdfgegerrdgf</p><figure><img src="/file.php?key=u6yttofkmdr2ujmqwcckvb2jlo151z9y&expires=1698883200&signature=eb6213739f35c0fbf0a9faba96c452005bbcb17a&id=26" data-image="u6YtTOFKmDr2ujMqwCCkVb2JlO151z9Y"></figure>
      CSRFToken: a1389e3ec501919a34d65cf2e57f692a0ebe5d41

        itabirit

        Go to Admin Panel > Manage > Forms > Ticket Details Form and show me a screenshot of all the fields and their types, variables, etc.

        Cheers.

        itabirit

        It simply seems like the session is dying or something.

        • Do you have any browser extensions?
        • Can you try in a completely English system?
        • Can you truncate your _session table in the db, optimize the table, repair the table, and retest?
        • Do users go through a load balancer or proxy?

        Cheers.

        Do you have any browser extensions? - Yes but my extensions don't work in Incognito window
        Can you try in a completely English system? - phar file was deleted. However the system sees the language pack somehow
        Can you truncate your _session table in the db, optimize the table, repair the table, and retest? -
        I deleted the contents of the table, did all the checks and optimizations.
        Do users go through a load balancer or proxy? - nginx acted as a proxy for apache.net. I removed nginx from the scheme.
        All of this couldn't solved the problem. And I think taht it is not because of saving draft. Because save error appears now only when I switch on Devtools in Chrome
        I think if you deploy a new osticket and try my action and setting you will get the issue.

          itabirit

          I just installed a brand new instance of v1.18.1, left everything default, updated both User settings you did (Require login to create Tickets and set User Registration set to Private), registered a User, logged in as the User, and was able to upload an image and create the Ticket with no issues. This means something weird is going on with your install/setup.

          As I recommended, you should setup a completely new and separate install of osTicket only in English and retest.

          If you use a proxy you must forward the User's real IP via the X-Forwarded-For header and then edit your ost-config.php file to include the Proxy addresses to the TRUSTED_PROXIES option.

          Cheers.

          Write a Reply...