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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Second Issue: Fatal error: Uncaught exception 'Exception'
Pages: [1]

Author Topic: Second Issue: Fatal error: Uncaught exception 'Exception'  (Read 3604 times)

jgowans

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 3
    • CiviCRM
Second Issue: Fatal error: Uncaught exception 'Exception'
April 05, 2009, 05:26:27 am
I originally posted an issue related to upgrading from 2.1.2 to 2.2 on Joomla (thread here: http://forum.civicrm.org/index.php/topic,7307.msg32378.html#msg32378) and opted to do a full restore (Joomla 1.5.8) then attempt an upgrade to 2.2.2 as lobo suggested.  In the process, I decided to move the site from its original domain to a subdomain.

Full restore worked great, changed database information and paths in both 'civicrm.settings.php' files.  Now I have a new issue (sorry).  From both the administrative area, say when I click to go through to 'Administer CiviCRM', or on the live site, when I click through to do a donation, I receive the following error:

Fatal error: Uncaught exception 'Exception' with message 'Please make sure the IDS/tmp folder is writable' in /public_html/(subdirectory)/administrator/components/com_civicrm/civicrm/packages/IDS/Monitor.php:187 Stack trace: #0 /public_html/(subdirectory)/administrator/components/com_civicrm/civicrm/CRM/Core/IDS.php(112): IDS_Monitor->__construct(Array, Object(IDS_Init)) #1 /public_html/(subdirectory)/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(74): CRM_Core_IDS->check(Array) #2 /public_html/(subdirectory)/components/com_civicrm/civicrm.php(73): CRM_Core_Invoke::invoke(Array) #3 /public_html/(subdirectory)/components/com_civicrm/civicrm.php(24): civicrm_invoke() #4 /public_html/(subdirectory)/libraries/joomla/application/component/helper.php(162): require_once('/home/####/pu...') #5 /public_html/(subdirectory)/includes/application.php(124): JComponentHelper->renderComponent('com_civicrm') #6 /public_html/(subdirectory)/index.php(68): JSite->dis in /public_html/(subdirectory)/administrator/components/com_civicrm/civicrm/packages/IDS/Monitor.php on line 187

Looked like it was a Chmod'ing issue (found this topic, although it's the drupal equivalent: http://forum.civicrm.org/index.php/topic,5390.0.html) and changed:

/public_html/(subdirectory)/administrator/components/com_civicrm/civicrm/packages/IDS/
&
/public_html/(subdirectory)/media/civicrm/upload/

to writable (777).  Same error occurred.  More research lead to a similar error, though involving an xml issue (http://forum.civicrm.org/index.php/topic,4712.0.html).  Followed the instructions here to no avail.
CiviCRM Core Team

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: Second Issue: Fatal error: Uncaught exception 'Exception'
April 05, 2009, 07:35:30 am

can u try following the instructions here:

http://forum.civicrm.org/index.php/topic,6147.msg27102.html#msg27102

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

jgowans

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 3
    • CiviCRM
Re: Second Issue: Fatal error: Uncaught exception 'Exception'
April 05, 2009, 11:55:18 am
Deleting the Config.IDS.ini didn't seem to have any effect.  Commenting out line 74 of CRM/Core/Invoke.php: CRM_Core_IDS->check definitely did something, though it generated this error (both admin area and front end):

Warning: fopen(/home/humane/public_html/media/civicrm/upload/CiviCRM.log) [function.fopen]: failed to open stream: Permission denied in /home/barton/public_html/bartondev/administrator/components/com_civicrm/civicrm/packages/Log/file.php on line 216

Warning: fopen(/home/humane/public_html/media/civicrm/upload/CiviCRM.log) [function.fopen]: failed to open stream: Permission denied in /home/barton/public_html/bartondev/administrator/components/com_civicrm/civicrm/packages/Log/file.php on line 216

unrecoverable error
    Sorry. A non-recoverable error has occurred.

    HTTPS is not set up on this machine


Based on the warning, you should see two completely different directories, which I assume is part of the problem, though I don't know how to fix it as I've triple check the settings files.  Also, I restored this database to a sub domain in which there's no SSL established (wanted to make this restore a test site).  I'm assuming that the original settings (the site from which I was restoring from) forced SSL, thus I'm getting this error.  Not sure where to look in the settings to change this.

Interestingly, in the administrative area, all of the functions work, except when I attempt to go to Administer CiviCRM.  I can view, edit and save contacts, contributions, etc.  I just cannot get to the administrative area of CiviCRM.
CiviCRM Core Team

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: Second Issue: Fatal error: Uncaught exception 'Exception'
April 05, 2009, 04:20:40 pm

two options to work around that error:

1. from mysql shell run "update civicrm_domain set config_backend = null;"

OR

2. edit: CRM/Utils/System.php, function redirectToSSL( ) 

add a return as the first line (so no redirection takes place)

Code: [Select]
    static function redirectToSSL( $abort = true ) {
       return;

if you are nor familiar with php, i recommend option 1

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

jgowans

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 3
    • CiviCRM
Re: Second Issue: Fatal error: Uncaught exception 'Exception'
April 05, 2009, 05:31:50 pm
1.  Your powers of perception re: my PHP skills are dead on  ;D ... I opted for option 1 as you suggested and the issue appears to be resolved.
2.  Thank you.

Josh
CiviCRM Core Team

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Second Issue: Fatal error: Uncaught exception 'Exception'

This forum was archived on 2017-11-26.