Hello everyone,

We have a big problem that we cannot upload attachments. The following errors occur.


Here the PHP setting:

Parameter in php.ini:

Extension:

Then i used as well File attachement plugin:
Still not working:


  • KevinTheJedi replied to this.
  • Thanks to all of you. I solved the problem by simply doing a PHP upgarde and removing and resetting all permissions. I don't think it had anything to do with PHP, but a clean permissions distribution might help. Anyway, if anyone get the same case in the future need to clean all permissions and set them clear again. Please check if the php.ini setup is as following as well:

    Check as well if the web server still does not have write access to the temp directory. Simply upload a PHP file to the web server and display the (temp_dir)

    Then write the following code in the file:

    _<?php
    echo 'upload_tmp_dir = ' . ini_get('upload_tmp_dir') . "\n";_

    The temp directory used path should then be displayed as following:

    This is a default directory. If you want you can as well set your own folder.

    Eiltesir

    500 error is a generic error hinting at a deeper issue. You will need to check all possible logs (general server logs, webserver error logs, PHP error logs, MySQL/MariaDB error logs, osTicket System Logs, Browser Console logs, etc.) for any related errors.

    Cheers.

    Hey Kevin,

    I looked in the browser console and found the following error. I didn't find any other error, I mean there are no other errors in the logs.

      Is this a correct setting? Should I specify a path? If so, how?
      Here is my folder: C:\inetpub\wwwroot\it-helpdesk
      I have created a folder for file attachments myself. Should I create a new folder?

      Update: I even changed to this folder where the folder has all the necessary permissions. Still does not work. I submit that it does not work

        Eiltesir

        You’ll have to look at articles online for "File upload error #6". This isn’t an osTicket issue, rather a server/setup issue.

        Cheers.

        If this problem occurred recently but was available before. Then you need to check whether the recent server configuration, file directory permissions, and system configuration have been adjusted. I followed the system configuration you described and didn't encounter any problems.

        Thanks to all of you. I solved the problem by simply doing a PHP upgarde and removing and resetting all permissions. I don't think it had anything to do with PHP, but a clean permissions distribution might help. Anyway, if anyone get the same case in the future need to clean all permissions and set them clear again. Please check if the php.ini setup is as following as well:

        Check as well if the web server still does not have write access to the temp directory. Simply upload a PHP file to the web server and display the (temp_dir)

        Then write the following code in the file:

        _<?php
        echo 'upload_tmp_dir = ' . ini_get('upload_tmp_dir') . "\n";_

        The temp directory used path should then be displayed as following:

        This is a default directory. If you want you can as well set your own folder.

        Write a Reply...