By chueewowee on
It doesn't matter what template I try, but I get :
Fatal error: phptemplate_init(): Failed opening required '' (include_path='.:/usr/lib/php') in ./themes/engines/phptemplate/phptemplate.engine on line 55
with all installations of 4.6 on my local test computer. I do not have this problem with 4.6 before on my published site.
Comments
I dont have this problem
I dont have this problem ...
looks like it has something to do with the place were you are doing your new install and the include_path
Thanks guys
Yes, I do think it is something to do with where I am. I recently chaged to Tiger OS X, and re-installed PHP , MySQL etc.. As I say, no problem on my remote site, and I even downloaded that installation to try it, with the same errors as a result.
So to solve it, I do think it s a path problem ..yes. I'lll take a look and report back. Not sure what you mean about the include_path, can you just expand a little?
Thanks again
-----------------------------------------------------
"It's never too late to have a happy childhood."
What do you mean by implicating the include_path?
I have the installation in the same place as I once did before, a first-level subdirectory of my sites folder.
-----------------------------------------------------
"It's never too late to have a happy childhood."
Maybe this helps
Seems to me www.php.net/realpath is the problem, and in that case problem will be solved if you remove it.
On line 5 (it says 55 in your post but it's located at line 5 in my phptemplate.engine and that's where the only require construct is) try to change:
require_once(realpath('themes/engines/phptemplate/template.php'));to:
require_once('themes/engines/phptemplate/template.php');Also, you should make sure template.php is present.
Hope so...
Ok thanks... I'll check it out, easy to change, but shall read forst your reference and try to understand why it may be so on this system, not the other.
It does bug me because I'm pressed to develop a theme and need the local installation! So , hanks again for support.
-----------------------------------------------------
"It's never too late to have a happy childhood."
No luck with the realpath soloution
I did that, but the same error returns. By the way, the line in question is in line 55 on my engine. We must have different versions, although I downloaded the current 4.6 version. I'm aghast because I'm boggled, but I don't want to be stumped!
-----------------------------------------------------
"It's never too late to have a happy childhood."
Hmm. Ok. How about pasting
Hmm. Ok. How about pasting the file into phptemplate.engine?
er, sorry = what file?
.....do you mean?
-----------------------------------------------------
"It's never too late to have a happy childhood."