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) »
  • Discussion (deprecated) »
  • Documentation, Book and Training Resources (Moderator: Michał Mach) »
  • PHP Fatal error: Uncaught exception 'Exception' with message 'Please make sure t
Pages: [1]

Author Topic: PHP Fatal error: Uncaught exception 'Exception' with message 'Please make sure t  (Read 5289 times)

GingerFeet

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 4
  • CiviCRM version: 3.4.6 / 3.4.7
  • CMS version: Drupal 6.22
  • MySQL version: 5.1
  • PHP version: 5.3.6
PHP Fatal error: Uncaught exception 'Exception' with message 'Please make sure t
November 16, 2010, 07:08:45 pm
I just spent a few hours struggling with the infamous

PHP Fatal error: Uncaught exception 'Exception' with message 'Please make sure the folder is writable' in .../sites/all/modules/civicrm/packages/IDS/Monitor.php

I don't think there is anything in the documentation about it, and the forums are random. Also if you search the web, there are many, many pages that display the error. Clearly people need help.

Here is what I figured out for my Drupal installation


Make sure the /files/civicrm/upload directory is writable
  • chown apache.apache (your server daemon's name and group)
  • chmod 770
  • If that fixes it, you are done
Comment out the IDS code in order to get into the site
  • .../sites/all/modules/civicrm/CRM/Core/Invoke.php
Quote
// first fire up IDS and check for bad stuff
if ($config->useIDS) {
  require_once 'CRM/Core/IDS.php';
  $ids = new CRM_Core_IDS( );
  $ids->check( $args );
}
Set config_backend to NULL (most probably something got wrecked there)
  • Log in to the correct mysql database
  • update civicrm_domain set config_backend = NULL;
Delete template_c (and probabaly something got wrecked here)
  • rm -R .../sites/<site_name>/civicrm/template_c
Rebuild backend
  • /index.php?q=civicrm/admin/setting/updateConfigBackend&reset=1
Rebuild menu (for good measure)
  • /index.php?q=civicrm/menu/rebuild&reset=1

Uncomment (activate) the code to protect the site with IDS
  • Remove the comments you placed on the IDS code

Maybe someone can flesh it out with Joomla notes and post a document page?

Thanks,

COS

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: PHP Fatal error: Uncaught exception 'Exception' with message 'Please make sure t
November 17, 2010, 03:07:45 am
Hi there,

Thanks for posting this.  Part of the problem is that over time, CiviCRM has been modified to make this particaular problem easier to deal with / non existent. That is at least part of the reason that some of the advice seems confusing / contradictory / work for some and not for others.

Really depends on what version you are running.  Can you add your version number to this post.  Also, a bit about when this error happened - were you moving site? upgrading, etc. would make this even more helpful to people.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Documentation, Book and Training Resources (Moderator: Michał Mach) »
  • PHP Fatal error: Uncaught exception 'Exception' with message 'Please make sure t

This forum was archived on 2017-11-26.