Fatel Error has got me stumped.

Discussion in 'PHP' started by mg3hockey, Feb 16, 2009.

  1. #1
    Hello all,

    I can not figure this out.

    Fatal error: Smarty error: unable to write to $compile_dir '/home/proxysit/public_html/templates_c'. Be sure $compile_dir is writable by the web server user. in /home/proxysit/public_html/includes/smarty/Smarty.class.php on line 1095

    I have changed the permissions to the existing folders and to the files themselves and it does not seem to do anything. Would you mind helping me out?


    Thanks
     
    mg3hockey, Feb 16, 2009 IP
  2. pachecus

    pachecus Well-Known Member

    Messages:
    1,841
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    110
    #2
    You need to set up 777 permissions to cache and template_c folders.
     
    pachecus, Feb 16, 2009 IP
  3. mg3hockey

    mg3hockey Active Member

    Messages:
    438
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #3
    I have the template_c file in 777 but I can not find the cache file.

    There is none is my root
     
    mg3hockey, Feb 16, 2009 IP
  4. mg3hockey

    mg3hockey Active Member

    Messages:
    438
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #4
    any other recommendations? this error is killing my site
     
    mg3hockey, Feb 17, 2009 IP
  5. dowhile

    dowhile Active Member

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #5
    Are you sure that you have folder not file?
     
    dowhile, Feb 17, 2009 IP
  6. harrisunderwork

    harrisunderwork Well-Known Member

    Messages:
    1,005
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    135
    #6
    It should be folder, not a file.
     
    harrisunderwork, Feb 17, 2009 IP
  7. mg3hockey

    mg3hockey Active Member

    Messages:
    438
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #7
    I can not find and folder/file with the title cache
     
    mg3hockey, Feb 17, 2009 IP
  8. dowhile

    dowhile Active Member

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #8
    do you have this folder '/home/proxysit/public_html/templates_c' ?
     
    dowhile, Feb 17, 2009 IP
  9. mg3hockey

    mg3hockey Active Member

    Messages:
    438
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #9
    yes I do and the permissions are in 777 sequence
     
    mg3hockey, Feb 17, 2009 IP
  10. websecrets

    websecrets Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    $compile_dir is not set. It wouldn't be giving you the unset variable if it was... check your code.

    If it were a permissions issue you would be getting...

    unable to write to '/home/proxysit/public_html/templates_c'.

    instead of..
    unable to write to $compile_dir '/home/proxysit/public_html/templates_c'.
     
    websecrets, Feb 17, 2009 IP
  11. mg3hockey

    mg3hockey Active Member

    Messages:
    438
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #11
    it was a permisions issue within the control panel...there are 2 template-c files.

    issue reolved. thanks all close thread
     
    mg3hockey, Feb 17, 2009 IP