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) »
  • Cannot redeclare civicrm_form_alter()
Pages: [1]

Author Topic: Cannot redeclare civicrm_form_alter()  (Read 1321 times)

jeffsensat

  • Guest
Cannot redeclare civicrm_form_alter()
January 31, 2010, 02:21:57 pm
Instead of my drupal site, now I’m getting this:

Fatal error: Cannot redeclare civicrm_form_alter() (previously declared in [MYWEBSITE]/modules/civicrm_theme/civicrm_theme.module:28) in [MYWEBSITE]/sites/all/modules/civicrm/drupal/civicrm.module on line 805

Everything was working fine with the newly-released CiviCRM 3.1.1 on Drupal 6.15 ... until I installed civicrm_theme. I followup the thread here ( http://drupal.org/node/568710 ). Installing the patched, newly-named "civitheme" module didn’t help. I also completely replaced my civicrm module folder via FTP.

I’ve tried running update.php, evoking the " http://<your_drupal_home>/civicrm/upgrade?reset=1 " command, but my site’s dead.

Help?

jeffsensat

  • Guest
Re: Cannot redeclare civicrm_form_alter()
January 31, 2010, 07:48:35 pm
In my sleep-deprived condition, I incorrectly placed a duplicate copy of the civicrm_theme module in [MYWEBSITE]/modules/ as well as the CORRECT location at [MYWEBSITE]/sites/all/modules/ ...

Having already deleted the module from the latter folder yet still receiving fatal errors, I took a nap to clear my mind. Then, thinking more clearly, I found and removed the module from the former location. That immediately solved the problem. PHEW.

Note to self: NEVER attempt critical tasks after 20 hours of straight work. I hope this helps others who toil too much and sleep too little.

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

This forum was archived on 2017-11-26.