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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • CiviCRM forms 'dead'
Pages: [1]

Author Topic: CiviCRM forms 'dead'  (Read 2518 times)

michaels23

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 1
CiviCRM forms 'dead'
September 09, 2007, 07:42:55 am
Hi all,

Sorry for the vague subject, but it's the most accurate description I could come up with. I just switched hosts, and all my CiviCRM forms (anything with a Save/Submit & Cancel button) seem to be 'dead.' The 'Cancel' button doesn't even redirect. It's like the script is getting stopped before it gets anywhere.

Even more puzzling is that it only happens to my CiviCRM forms. The Drupal forms all finish perfectly. PHP memory is generous (90M). I don't think it's a base_dir restriction.

I've pored over civicrm_settings.php more times than I can count, since that's where I make most of my mistakes. I can't find anything else to try.

TIA for any debugging suggestions.

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: CiviCRM forms 'dead'
September 09, 2007, 12:09:23 pm

1. does your php/apache error log say anything?

2. If not (or you dont have access to them), u'll need to start tracing the code and figuring out where it dies. start from civicrm_invoke in CRM/Core/Invoke.php.

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

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: CiviCRM forms 'dead'
September 26, 2007, 03:05:58 pm
Hi,

I am having the same problem on an installation of 1.8.11536 with Drupal 5.2 and PHP4. CiviCRM uses a different database than the Drupal one.

Modifying anything returns the form in its original state. Even trying to activate debugging/backtracing.

I have installed CiviCRM many times, but usually on PHP4, so I'm guessing the PHP version has something to do with it.

Ah, and I also have the error "Could not find valid value for ct" when I try to update a contact.

I'm not sure if it's worth to debug, or just to migrate to a site with PHP5.

Any ideas?
Mathieu
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CiviCRM forms 'dead'
September 26, 2007, 05:32:12 pm
Any clues in your Apache / error logs?
Protect your investment in CiviCRM by  becoming a Member!

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: CiviCRM forms 'dead'
September 27, 2007, 09:00:06 am
Nothing in the logs, but I activated backtracing by editing the domain information in the database directly, and got the following backtrace:

civicrm/CRM/Core/Error.php, backtrace, 258
civicrm/CRM/Utils/Request.php, fatal, 112
civicrm/CRM/Contact/Form/Edit.php, retrieve, 154
civicrm/CRM/Core/Form.php, preprocess, 291
civicrm/CRM/Core/QuickForm/Action/Display.php, buildform, 101
civicrm/packages/HTML/QuickForm/Controller.php, perform, 195
civicrm/packages/HTML/QuickForm/Page.php, handle, 95
civicrm/CRM/Core/Controller.php, handle, 216
civicrm/CRM/Utils/Wrapper.php, run, 78
civicrm/CRM/Core/Invoke.php, run, 490
civicrm/CRM/Core/Invoke.php, form, 189
civicrm/CRM/Core/Invoke.php, contact, 93
civicrm/drupal/civicrm.module, invoke, 320, civicrm_invoke,
/includes/menu.inc, call_user_func_array, 418
index.php, menu_execute_active_handler, 15

I went into CRM/Utils/Request.php and dumped the parameters of the call to retrieve():

retrieve: name = ct, type = String, store = , abort = , default = , method = GET
retrieve: name = cst, type = String, store = , abort = , default = , method = GET
retrieve: name = action, type = String, store = Object, abort = , default = add, method = GET
retrieve: name = ct, type = String, store = Object, abort = 1, default = , method = REQUEST

the 4th call is the one which causes the backtrace. A var_dump() of the store object for the 4th call is available here: http://www.bidon.ca/transit/object_store.txt.gz
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CiviCRM forms 'dead'
September 27, 2007, 10:40:09 am
Mathieu - I don't have any idea what's causing this :-(

Might be best just to switch to PHP5 - since all future releases of CiviCRM will require it.
Protect your investment in CiviCRM by  becoming a Member!

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: CiviCRM forms 'dead'
September 27, 2007, 08:18:17 pm
No problem, I also suspect PHP4, I just wanted to be sure it was not some obvious mistake. :)

Thanks,
Matt
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • CiviCRM forms 'dead'

This forum was archived on 2017-11-26.