Answers.Body: <p>Looking at the code, I can see that the donation button only appears if <code>$validDate</code> is TRUE and <code>$contributeURL</code> is TRUE.</p>
  
  <p>Enable debugging (<strong>Administer menu > System Settings > Debugging and Error Handling</strong>, select "Yes" to "Enable Debugging"), then reload your PCP page, adding this to the end of the URL: <code>&amp;smartyDebug=1</code>.  You'll get a pop-up showing all your Smarty variables.  Make sure that there's a value for both <code>$validDate</code> and <code>$contributeURL</code>.</p>
  
  <p>My guess is either:</p>
  
  <ul>
  <li>You're before the PCP begin date;</li>
  <li>You're after the PCP end date;</li>
  <li>Your server has the wrong time set.</li>
  </ul>
  
  <p>PS - also make sure there's a value set for <code>$contributionText</code>.  You can set this by editing the PCP and filling in the value for "Donation Button".</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-04T19:34:06.637Z
Answers.Text: I am not seeing anything defined for $contributeURL or contributionText, but there is a value next to the Donation Button field on the PCP. The date of the campaign is also set to begin yesterday (and our server time is for today) and doesn't end until the 17th, but the $validDate is saying false.
  
  Any advice on where I can  go to define the $contributeURL, or why the text isn't showing up despite the value next to the Donate Now?
Answers.UserDisplayName: Jessica
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-04T17:56:03.650Z
Answers.LastActivityDate: 2015-06-04T17:56:03.650Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>Based on the information in your last comment, I think the lack of donate button is indicative of a larger issue - this PCP isn't linked to a contribution page.  I don't know if this is a data issue or a bug; I don't have any PCP-using sites running 4.6 yet.</p>
  
  <p>If you know how to use SQL, try running this statement on your Civi database:</p>
  
  <pre><code>SELECT id, page_id, page_type FROM civicrm_pcp;
  </code></pre>
  
  <p>The first <code>id</code> corresponds to the PCP id you see in the URL for that page.  <code>page_id</code> should be the contribution page it's linked to, and <code>page_type</code> should be "contribute".  If they're not, you could fix the SQL directly, or figure out what caused the PCP to not be linked to the 
  contribution page.  If this doesn't answer your question, you may want to post the results of that SQL as an edit to your question.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-05T17:39:11.623Z
Answers.LastActivityDate: 2015-06-05T17:39:11.623Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>We just had to resolve this for a site - in our case the client had fired up the PCPs using a Contribution Page which had an End Date set that was in the past - which is close to what Jon said above but for our case the solution is with the Contribion Page settings not the PCP settings</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-23T22:55:52.730Z
Answers.LastActivityDate: 2018-07-23T22:55:52.730Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>We are using version 4.6.3 on Drupal. Our Personal Campaign pages aren't displaying a donate button on them: it just has a link to have people make their own PCPs, and the honor roll and thermometer.</p>
  
  <p>Does anyone know why this might be the case?</p>
  
  <p>Thanks!</p>
  
Tags: <civicontribute><personal-campaign-pages><pcp>
Title: Personal Campaign Pages don't have a donate button
ThreadText: # Personal Campaign Pages don't have a donate button
  
  (Asked by: username_0 on 2015-06-04)
  
  We are using version 4.6.3 on Drupal. Our Personal Campaign pages aren't displaying a donate button on them: it just has a link to have people make their own PCPs, and the honor roll and thermometer.
  
  Does anyone know why this might be the case?
  
  Thanks!
  
  **Tags:** civicontribute, personal-campaign-pages, pcp
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2015-06-04. Score: 2 | Accepted answer
  
  Looking at the code, I can see that the donation button only appears if `$validDate` is TRUE and `$contributeURL` is TRUE.
  
  Enable debugging (**Administer menu > System Settings > Debugging and Error Handling**, select "Yes" to "Enable Debugging"), then reload your PCP page, adding this to the end of the URL: `&smartyDebug=1`. You'll get a pop-up showing all your Smarty variables. Make sure that there's a value for both `$validDate` and `$contributeURL`.
  
  My guess is either:
  
  * You're before the PCP begin date;
  * You're after the PCP end date;
  * Your server has the wrong time set.
  
  PS - also make sure there's a value set for `$contributionText`. You can set this by editing the PCP and filling in the value for "Donation Button".
  
  > **Comments:**
  > **username_0**: I am not seeing anything defined for $contributeURL or contributionText, but there is a value next to the Donation Button field on the PCP. The date of the campaign is also set to begin yesterday (and our server time is for today) and doesn't end until the 17th, but the $validDate is saying false.  Any advice on where I can  go to define the $contributeURL, or why the text isn't showing up despite the value next to the Donate Now?  
  
  ---
  
  ### Answer by username_1 on 2015-06-05. Score: 1
  
  Based on the information in your last comment, I think the lack of donate button is indicative of a larger issue - this PCP isn't linked to a contribution page.  I don't know if this is a data issue or a bug; I don't have any PCP-using sites running 4.6 yet.
  If you know how to use SQL, try running this statement on your Civi database:
  SELECT id, page_id, page_type FROM civicrm_pcp;
  
  The first id corresponds to the PCP id you see in the URL for that page.  page_id should be the contribution page it's linked to, and page_type should be "contribute".  If they're not, you could fix the SQL directly, or figure out what caused the PCP to not be linked to the 
  contribution page.  If this doesn't answer your question, you may want to post the results of that SQL as an edit to your question.
  
  
  ---
  
  ### Answer by username_2 on 2018-07-23. Score: 0
  
  We just had to resolve this for a site - in our case the client had fired up the PCPs using a Contribution Page which had an End Date set that was in the past - which is close to what Jon said above but for our case the solution is with the Contribion Page settings not the PCP settings
  
  
  ---
  
  