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 File.php on line 114
Pages: [1]

Author Topic: Error in File.php on line 114  (Read 11330 times)

jarius

  • Guest
Error in File.php on line 114
May 29, 2007, 05:46:47 pm
Drupal 5.1
Php 5.2.1
MySQL 5.0
CentOS 4.4

Installed Drupal
Installed CiviCRM in /home/omegamed/public_html/sites/all/modules/

Activated CiviCRM and received the following errors:

    * warning: mkdir() [function.mkdir]: Permission denied in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: Permission denied in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.

Any idea what I did wrong?  I don't even find a directory named Utils.

jarius

  • Guest
Re: Error in File.php on line 114
May 29, 2007, 06:07:44 pm
Wow.  I thought I was about done.  After browsing around I receive these errors also:


    * warning: mkdir() [function.mkdir]: Permission denied in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: Permission denied in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * user error: Smarty error: the $compile_dir '/home/omegamed/public_html/sites/all/modules/civicrm/templates_c/en_US/' does not exist, or is not a directory. in /home/omegamed/public_html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1095.
    * warning: Smarty::include(/home/omegamed/public_html/sites/all/modules/civicrm/templates_c/en_US//%%93/938/938D45F8%%Subject.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in /home/omegamed/public_html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1265.
    * warning: Smarty::include() [function.include]: Failed opening '/home/omegamed/public_html/sites/all/modules/civicrm/templates_c/en_US//%%93/938/938D45F8%%Subject.tpl.php' for inclusion (include_path='.:/home/omegamed/public_html/sites/all/modules/civicrm/:/home/omegamed/public_html/sites/all/modules/civicrm//packages:.:/usr/lib/php:/usr/local/lib/php') in /home/omegamed/public_html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1265.
    * user error: Smarty error: the $compile_dir '/home/omegamed/public_html/sites/all/modules/civicrm/templates_c/en_US/' does not exist, or is not a directory. in /home/omegamed/public_html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1095.
    * warning: Smarty::include(/home/omegamed/public_html/sites/all/modules/civicrm/templates_c/en_US//%%91/919/91975F02%%Menu.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in /home/omegamed/public_html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1265.
    * warning: Smarty::include() [function.include]: Failed opening '/home/omegamed/public_html/sites/all/modules/civicrm/templates_c/en_US//%%91/919/91975F02%%Menu.tpl.php' for inclusion (include_path='.:/home/omegamed/public_html/sites/all/modules/civicrm/:/home/omegamed/public_html/sites/all/modules/civicrm//packages:.:/usr/lib/php:/usr/local/lib/php') in /home/omegamed/public_html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1265.

Any idea how to fix these?
Thanks

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Error in File.php on line 114
May 29, 2007, 09:10:59 pm
CiviCRM/Smarty can’t create the proper directories and cache files. Please adjust the CIVICRM_TEMPLATE_COMPILEDIR setting in your civicrm.settings.php file and the permissions on that directory – my guess is that setting should be set to /home/omegamed/public_html/sites/all/files/civicrm/templates_c/
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

jarius

  • Guest
Re: Error in File.php on line 114
May 30, 2007, 06:19:11 am
I made the recommended changes.  Still getting the following:



    * warning: mkdir() [function.mkdir]: Permission denied in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: No such file or directory in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: No such file or directory in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: Permission denied in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: No such file or directory in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: No such file or directory in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: No such file or directory in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: Permission denied in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: No such file or directory in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: No such file or directory in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: No such file or directory in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: Permission denied in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: No such file or directory in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: No such file or directory in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: Permission denied in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: No such file or directory in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: No such file or directory in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: No such file or directory in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: Permission denied in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: No such file or directory in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: No such file or directory in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: No such file or directory in /home/omegamed/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.


Here is /home/omegamed/public_html/sites/default/civicrm.settings.php
Code: [Select]
<?php
/**
 * CiviCRM Configuration File - v1.7
 */


define( 'CIVICRM_UF'               , 'Drupal'        );
define( 'CIVICRM_UF_VERSION'       , '5.1' );
define( 'CIVICRM_UF_URLVAR'        , 'q'  );


define( 'CIVICRM_UF_DSN'           , 'mysql://civicrm:Password@localhost/civicrm?new_link=true' );



define( 'CIVICRM_UF_USERSTABLENAME', 'users' );


 
define( 'CIVICRM_MYSQL_VERSION', 5.0 );
define( 'CIVICRM_DSN'          , 'mysql://civicrm:Password@localhost/civicrm?new_link=true' );
define( 'CIVICRM_MYSQL_PATH', '/usr/bin/' );


global 
$civicrm_root;

$civicrm_root = '/home/omegamed/public_html/sites/all/modules/civicrm/';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/omegamed/public_html/sites/all/files/civicrm/templates_c/' );

 
define( 'CIVICRM_UF_BASEURL'      , 'http:/domain.org/' );

/**
*DID NOT CHANGE ANYTHING BEYOND THIS!!!!
*
*
 * SMTP Server Authentication Password:
 *
 * If your SMTP server requires authentication, you will enable that and enter the 
 * Username from Administer CiviCRM >> Global Settings >> SMTP. Then enter the
 * authentication Password below.
 *
 */
define( 'CIVICRM_SMTP_PASSWORD', ''    );

/**
 * Payment Processor Passwords and/or Signature:
 *
 * Select and configure your payment processing service from Administer CiviCRM >> Global Settings >> 
 * Payment Processor. For most services, you will also need to enter a Password and/or a Signature
 * or key below. These values are not stored separately (not in your database) for security reasons.
 */

/*
 * TEST Payment Server (Sandbox) Settings:
 * NOTE: Not all settings are used by all payment processors and authentication credential methods.
 * 
 */

/* API Password
 * PayPal API Signature credential: API Password value (from your PayPal sandbox account - View API Signature screen).
 * PayPal Pro or Express with API Certificate credential: API Password value (from your PayPal sandbox account).
 * Moneris: API Token value.
 */
 
define( 'CIVICRM_CONTRIBUTE_PAYMENT_TEST_PASSWORD'      , '' ); 

/* API Signature or Key 
 * PayPal API Signature credential: Use the API Signature value (from your PayPal account - View API Signature screen).
 * PayPal API Certificate credential: Go to Administer CiviCRM >> Create PayPal API Profile to generate this key value.
 * Moneris: Use the storeid value.
 * Authorize.net: Use the API Transaction Key.
 */
 
define( 'CIVICRM_CONTRIBUTE_PAYMENT_TEST_KEY'           , '' ); 

/* API Subject
 * PayPal API Signature credential only: Use this setting to process transactions in behalf of a 3rd party.
 */
 
define( 'CIVICRM_CONTRIBUTE_PAYMENT_TEST_SUBJECT'       , '' );

/*
 * LIVE Payment Server Settings:
 * NOTE: Not all settings are used by all payment processors and authentication credential methods.
 * 
 */

/* API Password
 * PayPal Pro or Express with API Signature credential: API Password value (from your PayPal account - View API Signature screen)
 * PayPal Pro or Express with API Certificate credential: API Password value (from your PayPal account).
 * Moneris: API Token value.
 */

define( 'CIVICRM_CONTRIBUTE_PAYMENT_PASSWORD'      , '' );

/* API Signature or Key 
 * PayPal Pro or Express with API Signature credential: Use the API Signature value (from your PayPal account - View API Signature screen).
 * PayPal Pro or Express with API Certificate credential: Go to Administer CiviCRM >> Create PayPal API Profile to generate this key value.
 * Moneris: Use the storeid value.
 * Authorize.net: Use the API Transaction Key.
 */

define( 'CIVICRM_CONTRIBUTE_PAYMENT_KEY'           , '' );

/* API Subject
 * PayPal Pro or Express with API Signature credential only: Use this setting to process transactions in behalf of a 3rd party.
  */

define( 'CIVICRM_CONTRIBUTE_PAYMENT_SUBJECT'       , '' );

/**
 * Multi-site Support
 *
 * CiviCRM uses Domain ID keys to allow you to store separate data sets for multiple sites
 * using the same codebase.
 *
 * Refer to the 'Multi-site Support' section of the Installation Guide for more info.
 */

define('CIVICRM_DOMAIN_ID' , 1 );

/**
 * Joomla! Front-end Component Flag
 * If this configuration file is being used by a Joomla! front-end CiviCRM component
 * instance, set this value to 1.
 */

define( 'CIVICRM_UF_FRONTEND', 0 );

/**
 * 
 * Do not change anything below this line. Keep as is
 *
 */

$include_path = '.'        . PATH_SEPARATOR .
                
$civicrm_root . PATH_SEPARATOR . 
                
$civicrm_root . DIRECTORY_SEPARATOR . 'packages' . PATH_SEPARATOR .
                
get_include_path( );
set_include_path( $include_path );

define( 'CIVICRM_SMARTYDIR'  , $civicrm_root . DIRECTORY_SEPARATOR . 'packages' . DIRECTORY_SEPARATOR . 'Smarty' . DIRECTORY_SEPARATOR );
define( 'CIVICRM_TEST_DIR'   , $civicrm_root . DIRECTORY_SEPARATOR . 'test'   . DIRECTORY_SEPARATOR );
define( 'CIVICRM_DAO_DEBUG'  , 0 );
define( 'CIVICRM_TEMPLATEDIR', $civicrm_root . DIRECTORY_SEPARATOR . 'templates'   );
define( 'CIVICRM_PLUGINSDIR' , $civicrm_root . DIRECTORY_SEPARATOR . 'CRM' . DIRECTORY_SEPARATOR . 'Core' . DIRECTORY_SEPARATOR . 'Smarty' . DIRECTORY_SEPARATOR . 'plugins' );

define( 'CIVICRM_GETTEXT_CODESET'    , 'utf-8'   );
define( 'CIVICRM_GETTEXT_DOMAIN'     , 'civicrm' );
define( 'CIVICRM_GETTEXT_RESOURCEDIR', $civicrm_root . DIRECTORY_SEPARATOR . 'l10n' );

if ( 
function_exists( 'variable_get' ) && variable_get('clean_url', '0') != '0' ) {
    
define( 'CIVICRM_CLEANURL', 1 );
} else {
    
define( 'CIVICRM_CLEANURL', 0 );
}

// force PHP to auto-detect Mac line endings
ini_set('auto_detect_line_endings', '1');

// make sure the memory_limit is at least 24 MiB
$memLimitString = trim(ini_get('memory_limit'));
$memLimitUnit = strtolower(substr($memLimitString, -1));
$memLimit = (int) $memLimitString;
switch (
$memLimitUnit) {
    case 
'g': $memLimit *= 1024;
    case 
'm': $memLimit *= 1024;
    case 
'k': $memLimit *= 1024;
}
if (
$memLimit >= 0 and $memLimit < 25165824) {
    
ini_set('memory_limit', '24M');
}

?>


Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Error in File.php on line 114
May 30, 2007, 07:37:08 am
Please verify if webserver can write in the templates_c directory. Also, check other directories in CiviCRM global configuration about the same.

Thx.
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

jarius

  • Guest
Re: Error in File.php on line 114
May 30, 2007, 07:45:33 am
Yes it has permission.

/home/omegamed/public_html/sites/all/files/civicrm/templates_c/ this is what I was suggested to do but it doesn't exist.

/home/omegamed/public_html/sites/all/modules/civicrm/templates_c/  this is what I had done originally.  Should I change it back?

CiviCRM glogal configuration=what?

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Error in File.php on line 114
May 30, 2007, 07:59:12 am
It's not a good practive to keep compiled templates in modules directory, so I would rather keep it in sites/all/files/civicrm/templates_c/. If it doesn't exist, you should create it and make sure webserver can write there.

CiviCRM global configuration = go to Administer CiviCRM, than Global Settings and than Directories and verify if paths are right (directories exist, persmissions are right).

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

jarius

  • Guest
Re: Error in File.php on line 114
May 30, 2007, 08:37:10 am
Ok some things are working now.
I created the folders as suggested.  The errors have gone away.

Now CiviCRM shows up in the menu and also by itself.  Whenever I click on any of the links within CiviCRM I receive "page not found".

Any idea what needs to be done so I can get into the admin section?
Thanks

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Error in File.php on line 114
May 30, 2007, 08:47:21 am
Make sure that CIVICRM_UF_BASEURL in civicrm.settings.php is properly set - you can find detailed description in the configuration file.

m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

jarius

  • Guest
Re: Error in File.php on line 114
May 30, 2007, 10:57:59 am
OK it works with the following:

Code: [Select]
define( 'CIVICRM_UF_BASEURL'      , '' );
Filling in the base url gave me www.domain.org/domain.org/civicrm...

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Error in File.php on line 114
May 30, 2007, 11:07:22 am
Not sure what you mean here: do you have CIVICRM_UF_BASEURL empty? I wouldn't risk it, it will cause problems in random places for sure.

What exactly did you set it to before that was giving you that wierd address?

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

jarius

  • Guest
Re: Error in File.php on line 114
May 30, 2007, 11:29:41 am
'www.mydomain.org' was what I had set it.  This gave me the following in the address bar when I clicked any of the CiviCRM links:
http://www.mydomain.org/www.mydomain.org/civicrm...

When I saw the address bar and noticed that the domain was repeated I decided to see what would happen if I left the CIVICRM_UF_BASEURL empty.  Now it works fine.  Not sure if it will give me problems later but at least now I can navigate.

What is your opinion on this?

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Error in File.php on line 114
May 30, 2007, 12:43:52 pm
CIVICRM_UF_BASEURL is (as the name states) an URL, not the domain name, so you should set it to: http://www.domain.org/ (note it has http at the beginning in opposition to your original setting).

Try this and let me know.

m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

jarius

  • Guest
Re: Error in File.php on line 114
May 30, 2007, 01:26:28 pm
It was originally an URL not domain.  Removing the URL allowed it to work.  Now I replaced the URL has requested and it still works.

Is this just a freak anomaly or is there another explanation?



Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Error in File.php on line 114
May 31, 2007, 04:33:00 am
Conjunction of planets yesterday was causing random open source projects to malfunction.  :D

There were probably some typo, uncleaned caches - as usually, a combination of different issues. Glad it works now.

m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Error in File.php on line 114

This forum was archived on 2017-11-26.