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) »
  • error in 1.8 beta.
Pages: [1]

Author Topic: error in 1.8 beta.  (Read 2925 times)

tara

  • Guest
error in 1.8 beta.
July 30, 2007, 11:29:12 pm


    * warning: mkdir(/upload/) [function.mkdir]: Read-only file system in /home/12205/domains/swop-usa.org/html/drupal/sites/all/modules/civicrm/CRM/Utils/File.php on line 118.
    * warning: mkdir(/custom/) [function.mkdir]: Read-only file system in /home/12205/domains/swop-usa.org/html/drupal/sites/all/modules/civicrm/CRM/Utils/File.php on line 118.



I went to File.php, and had it print the directories it's trying to print, and it really is trying to make a directory in /upload and /custom and not in $civicrm_root/upload, etc.

This seems to be a problem :)


Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: error in 1.8 beta.
July 30, 2007, 11:55:58 pm
you need to give write permission to "files" folder in your drupal directory.

kurund
Found this reply helpful? Support CiviCRM

tara

  • Guest
Re: error in 1.8 beta.
July 31, 2007, 08:44:22 am
drupal/files is mode 775
It has successfully made the civicrm, and all other directories inside of files/

again, I captured what dir it was trying to make and it really was /upload/ and not drupal/files/civicrm/upload (or drupal/files/upload ).

same with custom.  All other directories were made fine, and have not made any warnings (from civicrm, or any other module).

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: error in 1.8 beta.
July 31, 2007, 05:27:35 pm
Can you check "Administer CiviCRM >> Global Settings >> Directories" and see what values are entered for Temporary Files and Custom Files. They should be absolute directory paths.
Protect your investment in CiviCRM by  becoming a Member!

sethneal

  • Guest
Re: error in 1.8 beta.
August 02, 2007, 01:02:04 pm
I also had to do this when I moved my drupal installation with civiCRM from mysite.com/subsite to mysite.com

Thanks.

iana

  • Guest
Re: error in 1.8 beta.
August 03, 2007, 12:47:29 am
I get a similar error:

warning: mkdir() [function.mkdir]: Permission denied in /usr/local/apache2/htdocs/drupal-5.1/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.

the directory 'files' is writable.

I also get:

user error: Smarty error: the $compile_dir '/usr/local/apache2/drupal-5.1/Files/civicrm/templates_c/en_US/' does not exist, or is not a directory. in /usr/local/apache2/htdocs/drupal-5.1/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1095.   warning:Smarty::include(/usr/local/apache2/drupal-5.1/Files/civicrm/templates_c/en_US//%%93/938/938D45F8%%Subject.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in /usr/local/apache2/htdocs/drupal-5.1/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1265. warning: Smarty::include() [function.include]: Failed opening '/usr/local/apache2/drupal-5.1/Files/civicrm/templates_c/en_US//%%93/938/938D45F8%%Subject.tpl.php' for inclusion (include_path='.:/usr/local/apache2/htdocs/drupal-5.1/sites/all/modules/civicrm/:/usr/local/apache2/htdocs/drupal-5.1/sites/all/modules/civicrm//packages:.:/opt/php5/lib/php') in /usr/local/apache2/htdocs/drupal-5.1/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1265.

/usr/local/apache2/drupal-5.1/Files/civicrm/templates_c/en_US/ does exist and is writable, and CIVICRM_TEMPLATE_COMPILEDIR is set to /usr/local/apache2/drupal-5.1/Files/civicrm/templates_c/ in civicrm.settings.php.

This is a very long list of mostly the same warnings. I can't check "Administer CiviCRM >> Global Settings >> Directories" because all I get is this list of warnings.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: error in 1.8 beta.
August 03, 2007, 01:11:02 am
Quote
/usr/local/apache2/drupal-5.1/Files/civicrm/templates_c/en_US/

i guess it should be "files" and not Files. Check your $compile_dir.

HTH

kurund
« Last Edit: August 03, 2007, 01:14:22 am by Kurund Jalmi »
Found this reply helpful? Support CiviCRM

iana

  • Guest
Re: error in 1.8 beta.
August 03, 2007, 04:18:26 pm
Thanks kurund. I missed that and htdocs in the path. need more sleep. All working now.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • error in 1.8 beta.

This forum was archived on 2017-11-26.