# \[PHP\] Error: fread(): file created in the system's temporary directory at /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#91

**URL:** <https://help.nextcloud.com/t/php-error-fread-file-created-in-the-systems-temporary-directory-at-var-www-nextcloud-3rdparty-icewind-streams-src-wrapper-php-91/80221>\
**Category:** ℹ️ Support\
**Created:** [May 3, 2020, 11:27am UTC](https://help.nextcloud.com/t/php-error-fread-file-created-in-the-systems-temporary-directory-at-var-www-nextcloud-3rdparty-icewind-streams-src-wrapper-php-91/80221 "2020-05-03T11:27:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niaz](https://help.nextcloud.com/letter_avatar/niaz/32/6_449c533f586939b6e5f246632a46421f.png) [@Niaz](https://help.nextcloud.com/u/Niaz)\
**Post date:** [May 3, 2020, 11:27am UTC](https://help.nextcloud.com/t/php-error-fread-file-created-in-the-systems-temporary-directory-at-var-www-nextcloud-3rdparty-icewind-streams-src-wrapper-php-91/80221/1 "2020-05-03T11:27:49Z")

</div>

> **Support intro**
>
> Sorry to hear you’re facing problems 🙁
> 
> _**[help.nextcloud.com](http://help.nextcloud.com) is for home/non-enterprise users. If you’re running a business, paid support can be accessed via [portal.nextcloud.com](http://portal.nextcloud.com) where we can ensure your business keeps running smoothly.**_
> 
> In order to help you as quickly as possible, before clicking **Create Topic** please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
> 
> ```
> example
> 
> ```
> 
> Or for longer, use three backticks above and below the code snippet:
> 
> ```auto
> longer
> example
> here
> 
> ```
> 
> Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can ❤

Nextcloud version: 18.0.4  
Operating system and version: Raspbian 10 Buster  
Apache version: 2.4.38  
PHP version: 7.3.14-1~deb10u1

The issue you are facing:

After moving Data folder to external storage, anytime I upload something this get logged:

[PHP] Error: fread(): file created in the system’s temporary directory at /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#91

But the file itself uploads fine, just the log gets spammed, and then it’s hard to notice if something else is wrong.

I tried moving temp directory from SD Card to my external drive and back, changing path settings in both config.php and php.ini but still the same. I also tried to uninstall all my clients and log out all my sessions, but after login back it’s the same.

Is this the first time you’ve seen this error? _(Y/N)_: Y

Steps to replicate it:

1. Upload anything (Doesn’t matter if through web browser, Windows or Android client)
2. Files gets uploaded
3. Error line is logged

The output of your Nextcloud log in **Admin \> Logging** :

```auto
[PHP] Error: fread(): file created in the system's temporary directory at /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#91

PUT /nextcloud/remote.php/webdav/xx/xx.jpg
from IP by USERNAME at 2020-05-03T12:56:03+02:00

```

The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):

```auto
<?php
$CONFIG = array (
  'instanceid' => 'X',
  'passwordsalt' => 'X',
  'secret' => 'X',
  'trusted_domains' => 
  array (
    0 => 'X',
    1 => 'localhost',
    2 => 'X',
    3 => 'X',
  ),
  'datadirectory' => '/mnt/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '18.0.4.2',
  'overwrite.cli.url' => 'X',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'X',
  'dbpassword' => 'X',
  'installed' => true,
  'htaccess.RewriteBase' => '/nextcloud',
  'log_type' => 'file',
  'logfile' => '/var/www/nextcloud/logs/nextcloud.log',
  'logtimezone' => 'X',
  'log_rotate_size' => 104857600,
  'tempdirectory' => '/var/www/nextcloud/tmp',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => 'true',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);

```

The output of your Apache/nginx/system log in `/var/log/ ____ `:

```auto
Nothing was logged at the time of PHP ERROR.

```

---

<div class="post-metadata">

**Author:** ![Geoffrey\_Huang](https://help.nextcloud.com/user_avatar/help.nextcloud.com/geoffrey_huang/32/34806_2.png) [@Geoffrey\_Huang](https://help.nextcloud.com/u/Geoffrey_Huang)\
**Post date:** [March 3, 2021, 4:42pm UTC](https://help.nextcloud.com/t/php-error-fread-file-created-in-the-systems-temporary-directory-at-var-www-nextcloud-3rdparty-icewind-streams-src-wrapper-php-91/80221/2 "2021-03-03T16:42:32Z")

</div>

Please check the answer in [Fread(): file created in the system's temporary directory at /var/www/nextcloud/apps/files\_external/3rdparty/icewind/streams/src/Wrapper.php#91](https://help.nextcloud.com/t/fread-file-created-in-the-systems-temporary-directory-at-var-www-nextcloud-apps-files-external-3rdparty-icewind-streams-src-wrapper-php-91/67097)

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 6:44am UTC](https://help.nextcloud.com/t/php-error-fread-file-created-in-the-systems-temporary-directory-at-var-www-nextcloud-3rdparty-icewind-streams-src-wrapper-php-91/80221/3 "2024-12-12T06:44:14Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 6:44am UTC](https://help.nextcloud.com/t/php-error-fread-file-created-in-the-systems-temporary-directory-at-var-www-nextcloud-3rdparty-icewind-streams-src-wrapper-php-91/80221/4 "2024-12-12T06:44:15Z")

</div>


