Results 1 to 5 of 5

Thread: Template File Change error

  1. #1
    Join Date
    Jul 2002
    Location
    New York, NY
    Posts
    20

    Exclamation Template File Change error

    I'm trying to change the templates within my control panel and I constantly get this error message:

    Warning: fopen("/home/actor/public_html/actor_shop/themes/classic/add_form.html", "w+") - Permission denied in /actorpo/public_html/actor_shop/admin/template_modify.php on line 126

    Warning: Supplied argument is not a valid File-Handle resource in /actor/public_html/actor_shop/admin/template_modify.php on line 127

    What is the problem?? I chmod'd template_modify.php to 666, 777, 755... nothing works!

    Josh

  2. #2
    Join Date
    Aug 2001
    Location
    Toronto, Ontario
    Posts
    678

    Default

    chmod your themes/ template folders to 777 or write access. Your error says.. that you dont' have permission to write to your themes folder/html files.

  3. #3
    Join Date
    Aug 2002
    Posts
    12

    Default template_modify.php error

    Help....... I'm having the same problem too. This is the error that I get
    Warning: fopen("/home/ebooksad/public_html/themes/default/index.html", "w+") - Permission denied in /home/ebooksad/public_html/admin/template_modify.php on line 126

    Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/ebooksad/public_html/admin/template_modify.php on line 127


    I have not made any changes, but when I tried and go to save file, I get the error like everyone else that's posting here on this subject.

    I have checked my chmod themes/template folders and it's set to 777 (every files).

    Could this be related to a newer php version running on our hosting provider. My host is running PHP/4.2.3.

    The only reason I suggestion this is that I had a similiar problem on another website I run using a database. When I went to change and save, I got the same error. I downloaded a patch for the script that they provided and it worked fine.

    I hope this helps, because now I can't make any changes to my website. Uggggh......

    Thanks.

    Nhia Ly
    ebooksads.com

  4. #4
    Join Date
    Apr 2002
    Posts
    351

    Default Re: template_modify.php error

    Originally posted by ebooksads

    I have checked my chmod themes/template folders and it's set to 777 (every files).
    Try to change 777 to 755 for the template folder setting and the template files to 666 as some server setting does not allow 777 due to security measures.

    Good luck.

    Veg

  5. #5
    Join Date
    Aug 2002
    Posts
    12

    Default Template Error

    Thanks Veg...looks like that did the trick.

    Nhia
    ebooksads.com

Similar Threads

  1. switch to smarty template engine
    By dody in forum v5.x
    Replies: 20
    Last Post: 01-10-2005, 04:58 PM
  2. Undestanding templates
    By dody in forum Tutorials, Hints & Tips
    Replies: 2
    Last Post: 01-04-2004, 03:37 AM
  3. Change catview in browse template ?
    By Frank71 in forum v5.x
    Replies: 5
    Last Post: 09-01-2003, 06:31 PM
  4. Replies: 2
    Last Post: 08-05-2003, 02:16 AM
  5. Template Modifier Error
    By craven in forum v5.x
    Replies: 4
    Last Post: 11-13-2002, 07:11 AM

Posting Permissions

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