Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Template file /admin/template//main.html not found.

  1. #1
    Join Date
    May 2006
    Posts
    5

    Default Template file /admin/template//main.html not found.

    I just installed this program and keep getting this error, but it is intermittant.
    Refresh the page a few times and it is ok, but for some reason it is not picking up the template variable.


    Warning: file_exists(): open_basedir restriction in effect. File(/admin/template//main.html) is not within the allowed path(s): (/home/httpd/vhosts/watsonhomes.tv/httpdocs:/tmp) in /home/httpd/vhosts/watsonhomes.tv/httpdocs/include/class/template/core.inc.php on line 101
    Template file /admin/template//main.html not found.

    any ideas, I'm at my wits end!!!

    Jim

  2. #2
    Join Date
    May 2006
    Posts
    10

    Default Re: Template file /admin/template//main.html not found.

    Hi Jim,

    I can see right away a problem. See the Double "//" It needs to be only one. I'm not sure how you got it in there wrong but I know how to fix it. I think that you can fix it by opening the index.php in the root of the site and look for that path. Then remove the extra /. Or you can reinstall it.
    Rebekah

  3. #3
    Join Date
    May 2006
    Posts
    10

    Default Re: Template file /admin/template//main.html not found.

    Oops, I think I missunderstood your problem. did you just put up a new template?
    Rebekah

  4. #4
    Join Date
    May 2006
    Posts
    5

    Default Re: Template file /admin/template//main.html not found.

    nope, have done a fresh install of Open-Realty Version 2.3.0

    and have not added any templates

    has similar problem with the language tag not getting picked up so I hard coded that but this issue will not go away

  5. #5
    Join Date
    May 2006
    Posts
    10

    Default Re: Template file /admin/template//main.html not found.

    I think that the file core.inc.php has the incorrect path where it has that //.

    What is the actual path to the main.html.

    You are missing a folder name like /admin/mytemplate/main.html
    Rebekah

  6. #6
    Join Date
    May 2006
    Posts
    5

    Default Re: Template file /admin/template//main.html not found.

    this is the code that is causing the problem:

    Code:
    	// This function should be called first, it checks that the page exsists and sets up the page variable for the other functions
    	function load_page($template = '')
    	{
    		if (file_exists($template)) {
    			$this->page = $this->parse($template);
    		}else {
    			die('Template file ' . $template . ' not found.');
    		}
    	}
    any ideas on how to hard code the else function to supply the "missed" template folder so if it is not found as in my error:
    Template file /admin/template//main.html not found.

    it would return /admin/template/OR/main.html

  7. #7
    Join Date
    May 2006
    Posts
    10

    Default Re: Template file /admin/template//main.html not found.

    Ok, have you gone and actually looked on your server to make sure that the file main.html file really exists? and If it does exist please forward the path. Then open the file core.inc.php and paste the contents in this forum for me to look at.
    Rebekah

  8. #8
    Join Date
    May 2006
    Posts
    5

    Default Re: Template file /admin/template//main.html not found.

    Quote Originally Posted by accountant1040
    I think that the file core.inc.php has the incorrect path where it has that //.

    What is the actual path to the main.html.

    You are missing a folder name like /admin/mytemplate/main.html

    the folder is there...
    sometimes the variable gets set and page works fine,., sometimes it doesn't and I get the error

  9. #9
    Join Date
    May 2006
    Posts
    10

    Default Re: Template file /admin/template//main.html not found.

    What are you using for the backbone? usine Joomla, MamboOR?
    Rebekah

  10. #10
    Join Date
    May 2006
    Posts
    5

    Default Re: Template file /admin/template//main.html not found.

    Quote Originally Posted by accountant1040
    Ok, have you gone and actually looked on your server to make sure that the file main.html file really exists? and If it does exist please forward the path. Then open the file core.inc.php and paste the contents in this forum for me to look at.
    I think you might be missing the point.

    the variable for the "template folder" set in the config page (in my case OR) is not always being passed.


    Warning: file_exists(): open_basedir restriction in effect. File(/admin/template//main.html) is not within the allowed path(s): (/home/httpd/vhosts/watsonhomes.tv/httpdocs:/tmp) in /home/httpd/vhosts/watsonhomes.tv/httpdocs/include/class/template/core.inc.php on line 101
    Template file /admin/template//main.html not found.


    code from core.inc.php at line 101 is:

    // This function should be called first, it checks that the page exsists and sets up the page variable for the other functions
    function load_page($template = '')
    {
    if (file_exists($template)) {
    $this->page = $this->parse($template);
    }else {
    die('Template file ' . $template . ' not found.');
    }
    }


    but for the life of me I can not find anywhere in any of the code pages where the variable $template is being set

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
  •