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) »
  • Smarty errors
Pages: [1]

Author Topic: Smarty errors  (Read 4195 times)

micnap

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Smarty errors
July 05, 2007, 04:14:13 pm
I just installed Drupal and Civicrm.  All went well until I enabled the module.  I am getting all kinds of errors.  Following is about 1/3 of them.

I've gone over and over the $civicrm_root and the CIVICRM_TEMPLATE_COMPILEDIR paths.  Folders are being created (files/civicrm/templates_c/en_US, files/civicrm/uplaod, etc.) but no files are being put in them. Permissions are defaulting to 755.  I've tried changing them to 777 but it makes no difference.  I've been all over the forum and still can't find anything.  Anyone have any suggestions? 

Thanks,
Michelle


    * user warning: Smarty error: problem creating directory '/vservers' in /vservers/iponly130733/htdocs/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1095.
    * warning: Smarty::include() [function.Smarty-include]: Unable to access /vservers/iponly130733/htdocs/files/civicrm/templates_c/en_US//%%93/938/938D45F8%%Subject.tpl.php in /vservers/iponly130733/htdocs/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1265.
    * warning: Smarty::include(/vservers/iponly130733/htdocs/files/civicrm/templates_c/en_US//%%93/938/938D45F8%%Subject.tpl.php) [function.Smarty-include]: failed to open stream: Success in /vservers/iponly130733/htdocs/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1265.
    * warning: Smarty::include() [function.include]: Failed opening '/vservers/iponly130733/htdocs/files/civicrm/templates_c/en_US//%%93/938/938D45F8%%Subject.tpl.php' for inclusion (include_path='.:/vservers/iponly130733/htdocs/sites/all/modules/civicrm/:/vservers/iponly130733/htdocs/sites/all/modules/civicrm//packages:.:opt/php/includes::/opt/php/lib/php:/opt/php/lib/php/20020429/') in /vservers/iponly130733/htdocs/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1265.
    * user warning: Smarty error: problem creating directory '/vservers' in /vservers/iponly130733/htdocs/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1095.
    * warning: Smarty::include() [function.Smarty-include]: Unable to access /vservers/iponly130733/htdocs/files/civicrm/templates_c/en_US//%%91/919/91975F02%%Menu.tpl.php in /vservers/iponly130733/htdocs/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1265.
    * warning: Smarty::include(/vservers/iponly130733/htdocs/files/civicrm/templates_c/en_US//%%91/919/91975F02%%Menu.tpl.php) [function.Smarty-include]: failed to open stream: Success in /vservers/iponly130733/htdocs/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1265.
    * warning: Smarty::include() [function.include]: Failed opening '/vservers/iponly130733/htdocs/files/civicrm/templates_c/en_US//%%91/919/91975F02%%Menu.tpl.php' for inclusion (include_path='.:/vservers/iponly130733/htdocs/sites/all/modules/civicrm/:/vservers/iponly130733/htdocs/sites/all/modules/civicrm//packages:.:opt/php/includes::/opt/php/lib/php:/opt/php/lib/php/20020429/') in /vservers/iponly130733/htdocs/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1265.
    * user warning: Smarty error: problem creating directory '/vservers' in /vservers/iponly130733/htdocs/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1095.
    * warning: Smarty::include() [function.Smarty-include]: Unable to access /vservers/iponly130733/htdocs/files/civicrm/templates_c/en_US//%%93/938/938D45F8%%Subject.tpl.php in /vservers/iponly130733/htdocs/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1265.
   

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: Smarty errors
July 05, 2007, 08:40:47 pm

If i had to guess, i think there is an error in your path: "/vservers/iponly130733/...."

You might want to check with your hosting provider what the true path of your directory is on the file system. I suspect the /vservers is a virtual path and is masking the true path

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

micnap

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: Smarty errors
July 06, 2007, 05:25:27 am
I checked with the host.  They verified the path.  I also put up a phpinfo page (<?php phpinfo(); ?>) and it returned the same path.  They mentioned there might be a server-side problem having to do with the owner permissions and are checking into it.  So I'm currently waiting (impatiently) for them to get back to me.

Thanks,
Michelle

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Smarty errors
July 06, 2007, 05:33:37 am
Quote from: micnap on July 05, 2007, 04:14:13 pm
Code: [Select]
    * user warning: Smarty error: problem creating directory '/vservers'

This error is triggered in line 69 of packages/Smarty/internals/core.create_dir_structure.php in the following manner:

Code: [Select]
<?php
if ($_make_new_dir && !file_exists($_new_dir) && !@mkdir($_new_dir, $smarty->_dir_perms) && !is_dir($_new_dir)) {
    
$smarty->trigger_error("problem creating directory '" . $_new_dir . "'");
    return 
false;
}
?>


This means file_exists('/vservers') returns false. Either the directory does not exist or PHP is chrooted (i.e., it believes its root directory is not the same as the root directory of the server).
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.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Smarty errors
July 06, 2007, 05:41:56 am
Quote from: micnap on July 06, 2007, 05:25:27 am
I also put up a phpinfo page (<?php phpinfo(); ?>) and it returned the same path.

Does it say anything about the open_basedir setting (in the PHP Core section)?
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.

micnap

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: Smarty errors
July 06, 2007, 06:02:37 am
open_basedir shows just a forward slash.  Does that mean my root should actually start after the htdocs?

Thanks,
Michelle

micnap

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: Smarty errors
July 06, 2007, 06:07:27 am
And I changed the pages to start after the htdocs folder. There was also a server side thing.  They had to turn off a php setting - safe mode. 

Yeeayyy.  I'm up and running.

Thanks for your help!

Michelle

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Smarty errors

This forum was archived on 2017-11-26.