i have one more issue 🙂

i increased the upload_max_filesize to 100M

But i amm getting an error if i upload a 70M pdf file

    You may need to increase upload_max_filesize and post_max_size in your php.ini. Then restart php-fpm or other caching services to apply the change.
    As an example, on my osTicket with php8.1-fpm, I would edit this /etc/php/8.1/fpm/php.ini to increase the limits. And then systemctl restart php8.1-fpm to apply the changes.

    Hi TonyO,
    this i already did, see Screenshot

    Still getting the error

    I recommend checking the php log for errors. On Ubuntu/Debian for example, check /var/log/php8.0-fpm.log There may be other limits that need to be increased.
    On my osTicket, I replicated this before I gave the advice above. PHP defaults are very low, so I increase several.

    rabiesamakeh
    Take a look at Admin panel -> Settings -> Tickets
    Scroll down to Attachments.
    Click Config.
    What do you have set here?

    like i said, i added the php.ini file to allow loading bigger files

    i can't find any error in /var/log/php8.0-fpm.log, the last 3 lines says:
    [20-Feb-2023 12:20:27] NOTICE: fpm is running, pid 5081
    [20-Feb-2023 12:20:27] NOTICE: ready to handle connections
    [20-Feb-2023 12:20:27] NOTICE: systemd monitor interval set to 10000ms

    although i can upload small pdf files but as soon i load a big file i get the above error

      rabiesamakeh

      I would double/triple check your settings to ensure you are changing the right ones. You can make a PHP info file in your osTicket directory, visit that page, and see if the changes you made are reflected. If not it’s likely you didn’t change the right file or you didn’t restart the webserver and PHP-FPM.

      Apache also has a setting called LimitRequestBody that can limit the requests.

      Cheers.

      i am sure that i am editing the right php.ini file,
      nano /etc/php/8.0/fpm/php.ini
      nano /etc/php/8.0/apache2/php.ini

      i woudn't get the Option 100mb in osTicket, if i didn't edit the right php.ini file and restarted the webserver (See Sceenshot)

        rabiesamakeh

        Did you update the setting I mentioned for Apache? Are you using a hosting provider or is this your own server?

        Are you sure you changed both upload_max_filesize and post_max_size?

        Cheers.

        oh thank you very much!
        i just edited upload_max_filesize and didn't know about post_max_size

        now it's working 🙂

        a year later

        ![

        ](https://)

        [02-Mar-2024 02:34:59 UTC] PHP Fatal error: Uncaught InconsistentModelException: Unable to prepare query: DELETE ostiq_session.* FROM ostiq_session WHERE ostiq_session.user_id = 0 AND ostiq_session.session_data REGEXP '_auth\|.*\"user\";[a-z]+:[0-9]+:{[a-z]+:[0-9]+:\"id\";[a-z]+:261' in /home/mysej0/public_html/sktmt/include/class.orm.php:3467
        Stack trace:

        LDAP was enable

        but still got this error

          bhenie

          1. You need to start your own thread and explain your issue(s) in detail.
          2. You are using an old and unsupported version of osTicket. You would need to upgrade to one of the latest supported versions (v1.18.1 or v1.17.5) and retest.
          3. Your error is incomplete; it does not include the full stack trace.

          Cheers.

          Write a Reply...