Answers.Body: <p>Change the shortcode to <code>create</code> mode instead of <code>edit</code>, Civi expects a contact id if it's in edit mode, ie a logged in user,  it would be something like <code>[civicrm component="profile" gid="xx" mode="create" hijack="0"]</code> where xx would be the profile id.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-09T19:54:52.507Z
Answers.LastActivityDate: 2016-08-09T19:54:52.507Z
Answers.UserDisplayName: Andrei
Body: <p>Upgraded to CiviCRM 4.7.9 with WordPress. Now the Profiles only work for a logged in user. Anyone else gets the error message shown above. It's not a members only website, so you shouldn't have to login. Here's one url: <a href="http://wiuta.org/petition" rel="nofollow noreferrer">http://wiuta.org/petition</a></p>
  
  <p><a href="https://i.sstatic.net/3ki9O.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/3ki9O.png" alt="enter image description here"></a></p>
  
  <p>I tried deactivating all plugins but CiviCRM, but the problem persisted. I tried creating a new profile, but that didn't work either. My website is broken, please help!</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-08-09T19:24:04.270Z
Comments.Text: Change the shortcode to `create` mode instead of `edit`, Civi expects a contact id if it's in edit mode, it would be something like `[civicrm component="profile" gid="xx" mode="create" hijack="0"]`
Comments.UserDisplayName: Andrei
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-08-09T19:53:22.613Z
Comments.Text: I'll add it as an answer so we keep Stackexchange happy
Comments.UserDisplayName: Andrei
Tags: <profile>
Title: "No user/contact ID was specified, so the Profile cannot be used in edit mode"
ThreadText: # "No user/contact ID was specified, so the Profile cannot be used in edit mode"
  
  (Asked by: username_0 on 2016-08-09)
  
  Upgraded to CiviCRM 4.7.9 with WordPress. Now the Profiles only work for a logged in user. Anyone else gets the error message shown above. It's not a members only website, so you shouldn't have to login. Here's one url: <http://wiuta.org/petition>
  
  [![enter image description here](https://i.sstatic.net/3ki9O.png)](https://i.sstatic.net/3ki9O.png)
  
  I tried deactivating all plugins but CiviCRM, but the problem persisted. I tried creating a new profile, but that didn't work either. My website is broken, please help!
  
  **Tags:** profile
  
  > **Comments:**
  > **username_1**: Change the shortcode to `create` mode instead of `edit`, Civi expects a contact id if it's in edit mode, it would be something like `[civicrm component="profile" gid="xx" mode="create" hijack="0"]`  
  > **username_1**: I'll add it as an answer so we keep Stackexchange happy  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-08-09. Score: 3 | Accepted answer
  
  Change the shortcode to `create` mode instead of `edit`, Civi expects a contact id if it's in edit mode, ie a logged in user, it would be something like `[civicrm component="profile" gid="xx" mode="create" hijack="0"]` where xx would be the profile id.
  
  
  ---
  
  