This topic is locked
[SOLVED]

 error 256

4/5/2007 7:07:44 PM
PHPRunner General questions
kanso author

Smarty error: unable to write to $compile_dir '/home/my/public_html/my/templates_c'. Be sure $compile_dir is writable by the web server user.

/home/my/public_html/my/l*/S**.class4.php
error:

I can view the page with url to .htm(showing php codes) but I can't get to the page with .php url.

kanso author 4/5/2007

Smarty error: unable to write to $compile_dir '/home/my/public_html/my/templates_c'. Be sure $compile_dir is writable by the web server user.

/home/my/public_html/my/l*/S**.class4.php
error:

I can view the page with url to .htm(showing php codes) but I can't get to the page with .php url.


error line: 1095
line 1093 -1098:
if (!isset($attrs['max']))

$output .= "{$section_props}['max'] = {$section_props}['loop'];\n";

else{

$output .= "if ({$section_props}['max'] < 0)\n" .

" {$section_props}['max'] = {$section_props}['loop'];\n";

}

kanso author 4/5/2007

When I tried to preview the file in my local browser - login.htm for example - and tried to go to register page, it said, " mysite/public/myfolder/templates/register.php can't be located. Ok, I thought I got it, move the register.php to templates folder - it worked on the local bower.

After I uploaded file to the templates folder on my server, I saw more problems, long lists of errors.

My ftp server is apache on linux, but I have no problems with older php runner version, nowI am lost.

Help!

J
Jane 4/6/2007

Hi,
it's a permission error.

You need to make sure templates_c directory is writable by the web server user.

Usually you can assign correct permissions using your control panel. Also you may ask your webshoting company to help you with this.

kanso author 4/6/2007

Jane,
Thanks,

The templates_c directory is generated by phprunner, I see two front page extentions, one for pluggins/dummy , one for templates_c /dummy. When I tried to upload a ht.access file once , they told me to write as .txt file and upload and it worked.

I tried that with dummy file but it didn't worked.

Before I ask my server,my question is should I ask my host for the both folder, pluggins and templates_c?

Or, is there something I can do with Cpanel?
I am on Cpanel now

kanso author 4/6/2007

When I tried to preview the file in my local browser - login.htmfor example - and tried to go to register page, it said,

"C:// mysite/public/templates/register.phpcan't be found."
It shoud said "C:// mysite/public/register.phpcan't be found" because, some files that are generated by phprunner are placed outside oftemplatesfolder.
Ok, I thought I got it, move the register.php to templates folder - it worked on the local bower.

After I uploaded file to the templates folder on my server, I saw more problems, long lists of errors.

So, I moved files back to where it was.
It doesn't seem to me that is server permission problem, but the file directory error, somehow, it looks for a file from the wrong folder. Can you explain why this is happening?

kanso author 4/6/2007

You are right, my host took care of the problem by changing the ownership of file.