CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Broken Forms
Pages: [1]

Author Topic: Broken Forms  (Read 739 times)

enapoleone

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6.26
  • MySQL version: 5.1.54
  • PHP version: 5.3.5
Broken Forms
October 27, 2012, 01:05:02 pm
I moved a Drupal CiviCRM installation for a client and we're encountering an issue where forms are breaking. What I mean is that when requesting a form the result is one with all the applicable fields but on a white page (no theme) and when I take a look at the source it's only the form elements without <form></form>tags (ie. no <html>, <body> etc. - a partial document). To be even more specific we are encountering this issue when attempting to update Events. For example: I can go to Manage Events (index.php?q=/civicrm/event/manage?reset=1) Then select Configure > Info and Settings (index.php?q=civicrm/event/manage/eventInfo&reset=1&action=update&id=15) But then when I select anything after that ex. Info and Settings, Event Location etc (ex. index.php?q=civicrm/event/manage/eventInfo&reset=1&action=update&snippet=4&id=15&qfKey=ac6e29f49ac0cbf4d0b3485b3cd1fc45_373), I get a plain white form like I describe above - and of course clicking Save, Save and Done or Cancel do nothing. This is obviously the template for this particular form but I can not figure out why the rest of the templates are not being called. I know I must have forgotten something but at this point I am going round in circles. I was wondering if someone might be able to shed some light or point me in the right direction. Thanks.
« Last Edit: October 27, 2012, 03:21:47 pm by enapoleone »

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Broken Forms
October 27, 2012, 02:54:25 pm
Hi there,

There's two general pieces of troubleshooting info I can suggest:
* If you're getting a completely white screen, it sounds like you might have CiviCRM debugging disabled and/or are suppressing PHP errors/warnings/notices.  You may want to change both of those to get more meaningful errors.
* CiviCRM 3.2.5 is pretty old.  You may want to consider upgrading a non-production version of the site to the latest version to see if the problem persists.  The quality of support you'll get on a newer version is going to be higher because it eliminates a bunch of potential problems that would need to be chased down regarding old bugs etc.

Best,
Jon
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

enapoleone

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6.26
  • MySQL version: 5.1.54
  • PHP version: 5.3.5
Re: Broken Forms
October 27, 2012, 03:57:54 pm
Hi Jon, thanks for responding. I did turn on debugging before I posted my message and was disappointed when it didn't produce any results. However, I did not think about turning PHP display_errors on. This unfortunately didn't produce any results either.

You also make a good point about the version. The thing that bothers me though is that it did work fine under this version before I got it.

Thank you for the suggestions though.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Broken Forms
October 27, 2012, 04:40:02 pm

delete your templates_c directory and see if that fixes the issue. Might be an issue of corrupt templates?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

enapoleone

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6.26
  • MySQL version: 5.1.54
  • PHP version: 5.3.5
Re: Broken Forms
October 27, 2012, 05:21:36 pm
Hi Lobo, thanks for the suggestion but that didn't work either - a good one nonetheless.

From the path mentioned in my original post it seems to break with the snippet variable. Remove that variable and the themed site returns intact however not with the applicable form.

index.php?q=civicrm/event/manage/eventInfo&reset=1&action=update&snippet=4&id=15&qfKey=ac6e29f49ac0cbf4d0b3485b3cd1fc45_373

I started to wonder if this was a Drupal configuration issues. I had Drupal Sections and Administration Theme installed using both as a way of controlling the CiviCRM theme. This seemed to work. However disabling both and clearing the cache didn't fix the problem.

enapoleone

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6.26
  • MySQL version: 5.1.54
  • PHP version: 5.3.5
Re: Broken Forms
October 31, 2012, 03:01:25 pm
Unfortunately I did not solve this problem under under the version that I received it, 3.2.5. I maintain that there must have been some sort of setting that I overlooked. However based on my limited experience with CiviCRM I could not figure out what it was.

I did upgrade CiviCRM to 4.1.0 (Drupal 6) which fortunately fixed everything it seems. The argument that this should have been done anyway makes fixing the aforementioned issue trivial.

Regardless, thank you for the help from those who chimed in.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Broken Forms

This forum was archived on 2017-11-26.