Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-16T03:25:34.033Z
Answers.LastActivityDate: 2018-03-16T03:25:34.033Z
Answers.UserDisplayName: yu xia
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-03-15T19:11:30.707Z
Comments.Text: 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?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-03-16T02:40:19.990Z
Comments.Text: @BradBell devMode is enabled, but where is the tracing file? Sorry, a noob I'm and totally new to craft...
Comments.UserDisplayName: yu xia
Tags: <users><form><upload><user-profile>
Title: Serialization of 'Closure' is not allowed
ThreadText: # 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:
  
  ```
  <form method="post" accept-charset="UTF-8" enctype="multipart/form-data">
      {{ csrfInput() }}
      <input type="hidden" name="action" value="users/save-user">
      <input type="hidden" name="redirect" value="users/{{ currentUser.username }}">
      <input type="hidden" name="userId" value="{{ currentUser.id }}">
  
      <input type="file" name="photo">
      <input type="submit" value="upload">
  </form>
  
  ```
  
  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**: @username_1 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.
  
  
  ---
  
  