Answers.Body: <p>After a long investigation, this seems to have been a hosting issue. For whatever reason, the <code>rename</code> operation in <code>civicrm/packages/Smarty/internals/core.write_file.php</code> was not occurring, possibly because the temporary files were created with 600 permissions. This only occurred when the templates were accessed by a front-end user. Templates accessed through the admin section were able to rename their temporary files.</p>
  
  <p>Our hosting provider was unable to find a solution. We eventually migrated the site to Pantheon.io, and everything appears to be working well there.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-15T13:27:28.190Z
Answers.LastActivityDate: 2015-09-15T13:27:28.190Z
Answers.UserDisplayName: restouffer
Body: <p>I have created a Member Sign-Up form that goes to a Contribution page with three price sets (one is always hidden with JS, so two appear). Under the Contribution Page's settings, "Use a confirmation page?" is checked. When valid input is submitted, the Confirmation page that comes up next has no visible content. In the HTML a form with the id "Confirm" is shown, but it has only hidden inputs and no submit button.</p>
  
  <p>Does anyone know why this is happening? How can I get a normal confirmation page to appear?</p>
  
  <p>This is testable at <a href="http://aplddemo.wpengine.com/sign-up/?type=student" rel="nofollow">http://aplddemo.wpengine.com/sign-up/?type=student</a></p>
  
  <p>To make this issue even more unusual, after creating a different (test) Contribution page and completing a transaction on that, the original confirmation page began working. My immediate issue is solved, but I'm still curious why this happened and what is to prevent it from happening again.</p>
  
  <p><strong>UPDATE - September 1</strong></p>
  
  <p>This issue reappeared. This time I added <code>ini_set('display_errors', true);</code> to my plugin, and see errors like the following:</p>
  
  <blockquote>
    <p>Warning: include(/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/files/civicrm/templates_c/en_US//%%3D/3D1/3D13F2BA%%Main.tpl.php): failed to open stream: No such file or directory in /nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1907</p>
    
    <p>Warning: include(): Failed opening '/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/files/civicrm/templates_c/en_US//%%3D/3D1/3D13F2BA%%Main.tpl.php' for inclusion (include_path='/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/files/civicrm/custom_ext/com.osseed.eventcalendar-1.1/:/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/files/civicrm/custom_ext/ca.bidon.civiexportexcel/:/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/files/civicrm/custom_ext/nz.co.fuzion.extendedreport/:/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/files/civicrm/custom_ext/co.johnwebster.apld/:/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/files/civicrm/custom_ext/org.civicrm.module.cividiscount/:.:/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/civicrm/civicrm:/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/civicrm/civicrm/packages:.:/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/civicrm/civicrm/:/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/civicrm/civicrm//packages:.:/usr/sha in /nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1907</p>
  </blockquote>
  
  <p>I thought it might be a caching issue, so I went to Administer > System Settings > Cleanup Caches and Update Paths, but clicking the "Cleanup Caches" button doesn't affect the error. The issue changes periodically. Sometimes parts of the form appear, with an error about the missing compiled Smarty template where the price field should be. I haven't been able to connect the change in the error's behavior/message to any other changes on the site. They seem to happen on their own.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-27T13:27:52.303Z
Comments.Text: I am getting the following Error while submitting the form                      --------- Sorry but we are not able to provide this at the moment.
  '2592' is not a valid option for field custom_205
Comments.UserDisplayName: Ramesh - ARTECH Consultancy
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-27T14:41:22.467Z
Comments.Text: Thanks for taking a look. custom_205 is the state field. It looks like you selected a UK state, which has no local chapters and caused a no results error. I'll add a fix for that. In the meantime, would you be willing to test using a US state?
Comments.UserDisplayName: restouffer
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-27T15:00:01.560Z
Comments.Text: Sorry i tried but still getting the same error even for US - Please set the custom field to accept null value
Comments.UserDisplayName: Ramesh - ARTECH Consultancy
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-27T15:03:07.687Z
Comments.Text: If you still have that page open in your browser, try refreshing it. I added a try block around the API query that was throwing that error message.
Comments.UserDisplayName: restouffer
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-27T15:19:44.297Z
Comments.Text: please change to default theme and please try again
Comments.UserDisplayName: Ramesh - ARTECH Consultancy
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-27T15:21:26.683Z
Comments.Text: I'm not sure what you're asking. Do you want me to change the Wordpress theme?
Comments.UserDisplayName: restouffer
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-27T20:03:26.083Z
Comments.Text: Any chance you have this wired in to more than one site? Only asking because the domain id on the Membership Type can trigger odd behaviours if the Contribution Page is made via one Domain and then edited via another.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-28T11:30:35.160Z
Comments.Text: This contribution page has only been on one domain.
Comments.UserDisplayName: restouffer
Tags: <wordpress><contribution-page><smarty>
Title: Contribution confirmation page is blank
ThreadText: # Contribution confirmation page is blank
  
  (Asked by: username_0 on 2015-07-27)
  
  I have created a Member Sign-Up form that goes to a Contribution page with three price sets (one is always hidden with JS, so two appear). Under the Contribution Page's settings, "Use a confirmation page?" is checked. When valid input is submitted, the Confirmation page that comes up next has no visible content. In the HTML a form with the id "Confirm" is shown, but it has only hidden inputs and no submit button.
  
  Does anyone know why this is happening? How can I get a normal confirmation page to appear?
  
  This is testable at <http://aplddemo.wpengine.com/sign-up/?type=student>
  
  To make this issue even more unusual, after creating a different (test) Contribution page and completing a transaction on that, the original confirmation page began working. My immediate issue is solved, but I'm still curious why this happened and what is to prevent it from happening again.
  
  **UPDATE - September 1**
  
  This issue reappeared. This time I added `ini_set('display_errors', true);` to my plugin, and see errors like the following:
  
  > Warning: include(/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/files/civicrm/templates\_c/en\_US//%%3D/3D1/3D13F2BA%%Main.tpl.php): failed to open stream: No such file or directory in /nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1907
  >
  > Warning: include(): Failed opening '/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/files/civicrm/templates\_c/en\_US//%%3D/3D1/3D13F2BA%%Main.tpl.php' for inclusion (include\_path='/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/files/civicrm/custom\_ext/com.osseed.eventcalendar-1.1/:/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/files/civicrm/custom\_ext/ca.bidon.civiexportexcel/:/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/files/civicrm/custom\_ext/nz.co.username_2.extendedreport/:/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/files/civicrm/custom\_ext/co.johnwebster.apld/:/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/files/civicrm/custom\_ext/org.civicrm.module.cividiscount/:.:/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/civicrm/civicrm:/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/civicrm/civicrm/packages:.:/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/civicrm/civicrm/:/nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/civicrm/civicrm//packages:.:/usr/sha in /nas/wp/www/cluster-40204/aplddemo/wp-content/plugins/civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1907
  
  I thought it might be a caching issue, so I went to Administer > System Settings > Cleanup Caches and Update Paths, but clicking the "Cleanup Caches" button doesn't affect the error. The issue changes periodically. Sometimes parts of the form appear, with an error about the missing compiled Smarty template where the price field should be. I haven't been able to connect the change in the error's behavior/message to any other changes on the site. They seem to happen on their own.
  
  **Tags:** wordpress, contribution-page, smarty
  
  > **Comments:**
  > **username_1**: I am getting the following Error while submitting the form                      --------- Sorry but we are not able to provide this at the moment. '2592' is not a valid option for field custom_205  
  > **username_0**: Thanks for taking a look. custom_205 is the state field. It looks like you selected a UK state, which has no local chapters and caused a no results error. I'll add a fix for that. In the meantime, would you be willing to test using a US state?  
  > **username_1**: Sorry i tried but still getting the same error even for US - Please set the custom field to accept null value  
  > **username_0**: If you still have that page open in your browser, try refreshing it. I added a try block around the API query that was throwing that error message.  
  > **username_1**: please change to default theme and please try again  
  > **username_0**: I'm not sure what you're asking. Do you want me to change the Wordpress theme?  
  > **username_2**: Any chance you have this wired in to more than one site? Only asking because the domain id on the Membership Type can trigger odd behaviours if the Contribution Page is made via one Domain and then edited via another.  
  > **username_0**: This contribution page has only been on one domain.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2015-09-15. Score: 1 | Accepted answer
  
  After a long investigation, this seems to have been a hosting issue. For whatever reason, the `rename` operation in `civicrm/packages/Smarty/internals/core.write_file.php` was not occurring, possibly because the temporary files were created with 600 permissions. This only occurred when the templates were accessed by a front-end user. Templates accessed through the admin section were able to rename their temporary files.
  
  Our hosting provider was unable to find a solution. We eventually migrated the site to Pantheon.io, and everything appears to be working well there.
  
  
  ---
  
  