<p>I found the problem which is because of a plugin called "Scout". I just update it and everything seems to be fine now.</p>

CC BY-SA 3.0
2018-03-16T03:25:34.033Z
2018-03-16T03:25:34.033Z
yu xia
<p>I created a form on the frontend that allows users to upload their profile photos:</p>

<pre><code>&lt;form method="post" accept-charset="UTF-8" enctype="multipart/form-data"&gt;
    {{ csrfInput() }}
    &lt;input type="hidden" name="action" value="users/save-user"&gt;
    &lt;input type="hidden" name="redirect" value="users/{{ currentUser.username }}"&gt;
    &lt;input type="hidden" name="userId" value="{{ currentUser.id }}"&gt;

    &lt;input type="file" name="photo"&gt;
    &lt;input type="submit" value="upload"&gt;
&lt;/form&gt;
</code></pre>

<p>But I get the following error:</p>

<blockquote>
  <p>Serialization of 'Closure' is not allowed from /Users/rain/dev/valet/tr3ndsideas/vendor/yiisoft/yii2-queue/src/serializers/PhpSerializer.php</p>
</blockquote>

<p>Any ideas on how to fix this problem?</p>

CC BY-SA 3.0
2018-03-15T19:11:30.707Z
Are you on the latest version of Craft 3?  There was a similar bug fixed in RC14 around entries and entry types: https://github.com/craftcms/cms/blob/develop/CHANGELOG-v3.md#fixed-2 Can you enable devMode and share the full stack trace leading up to the error?
Brad Bell
CC BY-SA 3.0
2018-03-16T02:40:19.990Z
@BradBell devMode is enabled, but where is the tracing file? Sorry, a noob I'm and totally new to craft...
yu xia
<users><form><upload><user-profile>
Serialization of 'Closure' is not allowed
# Serialization of 'Closure' is not allowed

(Asked by: username_0 on 2018-03-15)

I created a form on the frontend that allows users to upload their profile photos:

    {{ csrfInput() }}
    
    
    

    
    


But I get the following error:

Serialization of 'Closure' is not allowed from /Users/rain/dev/valet/tr3ndsideas/vendor/yiisoft/yii2-queue/src/serializers/PhpSerializer.php

Any ideas on how to fix this problem?

**Tags:** users, form, upload, user-profile

> **Comments:**
> **username_1**: Are you on the latest version of Craft 3?  There was a similar bug fixed in RC14 around entries and entry types: https://github.com/craftcms/cms/blob/develop/CHANGELOG-v3.md#fixed-2 Can you enable devMode and share the full stack trace leading up to the error?  
> **username_0**: @BradBell devMode is enabled, but where is the tracing file? Sorry, a noob I'm and totally new to craft...  

---

## 1 answers

### Answer by username_0 on 2018-03-16. Score: 1

I found the problem which is because of a plugin called "Scout". I just update it and everything seems to be fine now.


---

