Results 1 to 3 of 3

Thread: Smarty Error - cannot create new roles

  1. #1
    webworx is offline Sugar Community Member
    Join Date
    Jun 2005
    Posts
    11

    Default Smarty Error - cannot create new roles

    Hi,

    Getting the following error when we try to "create a new role".. Version 4.0

    ###########
    Warning: mkdir(cache/smarty): Permission denied in /home/virtual/site56/fst/var/www/html/SugarSuite-Full-3.5.0b/include/dir_inc.php on line 56

    Warning: mkdir(cache/smarty): Permission denied in /home/virtual/site56/fst/var/www/html/SugarSuite-Full-3.5.0b/include/dir_inc.php on line 56

    Warning: mkdir(cache/smarty): Permission denied in /home/virtual/site56/fst/var/www/html/SugarSuite-Full-3.5.0b/include/dir_inc.php on line 56

    Warning: mkdir(cache/smarty): Permission denied in /home/virtual/site56/fst/var/www/html/SugarSuite-Full-3.5.0b/include/dir_inc.php on line 56

    Fatal error: Smarty error: the $compile_dir 'cache/smarty/templates_c' does not exist, or is not a directory. in /home/virtual/site56/fst/var/www/html/SugarSuite-Full-3.5.0b/include/Smarty/Smarty.class.php on line 1088
    ###########

    Any suggestions would be appreciated...

    Thanks
    Dean
    Last edited by webworx; 2006-02-22 at 07:54 PM.

  2. #2
    kpit's Avatar
    kpit is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Dec 2005
    Location
    Memphis, TN
    Posts
    996

    Default Re: Smarty Error - cannot create new roles

    Sounds like you have a permission problem on the SugarSuite-Full-3.5.0b/cache and all subdirectories need to be writable by the webserver daemon (probably apache) the best option security wise is to change the group to the apache server group what ever that may be on your host. and have permissions of 770 for security. a more unsecure way is just to set the permission to 777 but this alows other to have full access to your cache on the filesystem. this may be ok if this is a dedicated system but you should always consider potential vulnerabilities especially if the server resides on the internet.

    Cheers,

    Max

  3. #3
    webworx is offline Sugar Community Member
    Join Date
    Jun 2005
    Posts
    11

    Talking Re: Smarty Error - cannot create new roles

    Thanks for the note... I actually had to create three folders to get it to work, which was pretty simple, in:

    var/www/html/cache/smarty/

    /cache
    /configs
    /template_c

    and that then allowed me to start the process of creating a role. I then chowned to the virtual site admin user and it started working .. then when I hit the create role button after changing settings it gave me this error:

    Fatal error: Smarty error: unable to write to $compile_dir '/home/virtual/site56/fst/var/www/html/SugarSuite-Full-3.5.0b/cache/smarty/templates_c'. Be sure $compile_dir is writable by the web server user. in /home/virtual/site56/fst/var/www/html/SugarSuite-Full-3.5.0b/include/Smarty/Smarty.class.php on line 1088

    I then, based on your advise, made the folder /templates_c 777 and gave ownership to apache.. Now its working fine.

    Make sense? Thanks!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •