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) »
  • Error after files restored by host
Pages: [1]

Author Topic: Error after files restored by host  (Read 2690 times)

nocabt

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 1
Error after files restored by host
October 29, 2008, 09:44:51 am
Hi, we're running CiviCRM 2.1 with Joomla 1.5, and after we had a hosting snafu where they had to restore some older files, we are getting this error when accessing CiviCRM:

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

Help!

Thanks.

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: Error after files restored by host
October 29, 2008, 11:28:34 am

can u delete the file: media/civicrm/upload/Config.IDS.ini

and try again

thanx

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

nocabt

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 1
Re: Error after files restored by host
October 29, 2008, 08:31:38 pm
That file does not exist, Is there a permissions problem?

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: Error after files restored by host
October 29, 2008, 09:09:02 pm

can u make sure the webserver can write to the media folder. In *nix systems the easiest way is to do: chmod 777 media

thanx

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

nocabt

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 1
Re: Error after files restored by host
October 29, 2008, 09:18:14 pm
media and all subfolders are chmoded to 777, also oddly the Config.IDS.ini file seems to appear in the site root for some reason randomly.  My host just sent me this response, which seems odd:

Quote
Sorry for the inconvenience, but the problem is that the folder ar 'public_html/administrator/components/com_civicrm/civicrm/packages/IDS' needs to have permissions set to 777, but suPHP installed on the server doesn't allow this settings to avoid security breaches. You will need to contact your web disegner to check the code and try to correct this problem.
Thank you.

ginga

  • Guest
Re: Error after files restored by host
October 30, 2008, 06:40:33 am
I just started getting this error as well, I have no idea what is going on.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Error after files restored by host
October 30, 2008, 09:37:44 am
Quote from: nocabt on October 29, 2008, 09:18:14 pm
media and all subfolders are chmoded to 777, also oddly the Config.IDS.ini file seems to appear in the site root for some reason randomly.  My host just sent me this response, which seems odd

Can you check the configured value for "Upload Directory" under Administer CiviCRM >> Global Settings >> Directories. It should be: public_html/media/civicrm/upload/

Also make sure you've done 'chmod -R 777' media to set permissions for media and it's sub-directories. Also check manually from command line that permissions are correct for media and media/civicrm and media/civicrm/upload. They should be -rwxrwxrwx
Protect your investment in CiviCRM by  becoming a Member!

nocabt

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 1
Re: Error after files restored by host
October 30, 2008, 12:34:10 pm
I chmoded the folders via command line, but i can't access the admin area b/c I get the same error.  Can I check the Upload Directory setting via PhpMyAdmin?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Error after files restored by host
October 30, 2008, 02:42:00 pm
Quote from: nocabt on October 30, 2008, 12:34:10 pm
I chmoded the folders via command line, but i can't access the admin area b/c I get the same error.  Can I check the Upload Directory setting via PhpMyAdmin?

You can't easily check it / change it that way, but you could reset the configuration settings in the DB with this command in phpMyAdmin:

UPDATE  civicrm_domain set config_backend = NULL;

Then try accessing CiviCRM again - it should rebuild the configuration settings based on the installed location.
Protect your investment in CiviCRM by  becoming a Member!

nocabt

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 1
Re: Error after files restored by host
October 30, 2008, 03:52:53 pm
Yes!  That worked.  Thank you so much for the great and prompt support.  CiviCRM is definitely a challenging (and powerful) piece of software, but the support in these forums makes it much easier.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Error after files restored by host

This forum was archived on 2017-11-26.