Results 1 to 5 of 5

Thread: Template Modifier Error

  1. #1
    Join Date
    Jan 2002
    Posts
    279

    Default Template Modifier Error

    When trying to load templates through admin I get the following message at the top and nothing in the html box. What could be wrong?


    Warning: file("/home/httpd/mysite/themes//header.html") - No such file or directory in /home/httpd/mysite/admin/template_modify.php on line 97

    Warning: Bad arguments to implode() in /home/httpd/mysite/admin/template_modify.php on line 97



    Also when I purchased Indexu I saw that it had multiple themes. How do I access the themes? When trying to create a user pref page the only theme available is (default)

  2. #2
    Join Date
    Aug 2002
    Posts
    12

    Default template 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 reason I suggestion this is that I had a similiar problem on another website I running 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.

    Thanks.

    Nhia Ly
    ebooksads.com

  3. #3
    Join Date
    Apr 2002
    Posts
    351

    Default

    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

    BTW: Only post in one category when you have a problem unless you have two different problems

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

    Default

    I had a similar problem with the template modifier unable to write to the html files cause the permission was set to now allow write.

    I suggest chmod the file to 777 to write and edit files. Once you're done maybe chmod back to 755.

    oh yeah. You should chmod the "themes" folder and all "html" files in default and classic folders.


    Best of luck.

    Hart

  5. #5
    Join Date
    Apr 2002
    Posts
    351

    Default

    Originally posted by Hart_House
    I suggest chmod the file to 777 to write and edit files. Once you're done maybe chmod back to 755.
    It would be more secure to use chmod 755 for the folder and 666 for the files.

    Chmod 666 allows 'public', 'owner' and 'public' to read and write but not to execute which is not necessary in this case.

    I always like to take precautions when it comes to web security and I always like to be more 'safe than sorry'.
    Last edited by Veg; 11-13-2002 at 07:41 AM.

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. Replies: 2
    Last Post: 10-20-2003, 09:48 PM
  3. Category Error
    By ebooksads in forum v5.x
    Replies: 5
    Last Post: 11-13-2002, 10:58 PM
  4. Template File Change error
    By jcary in forum v5.x
    Replies: 4
    Last Post: 11-13-2002, 11:34 AM
  5. Template Modifier Problem
    By binto in forum v5.x
    Replies: 1
    Last Post: 06-18-2002, 10:59 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
  •