Page 1 of 1

eror in the my first page

Posted: Tue Dec 13, 2005 11:01 pm
by leksanadra.com
I have done the instalation with serendipity 0.9.1. I have required all requirement system and all path.

But after the installation, (the message tell me the instalation success and visit theserendipity page), i can't open my first page at all. The error message tell

Warning: Smarty error: unable to read resource: "" in /home/leksa/domains/leksanadra.com/public_html/bundled-libs/Smarty/libs/Smarty.class.php on line 1088

Anybody know what happened in my case??


http://leksanadra.com/index.php

Thanks..

Re: eror in the my first page

Posted: Tue Dec 13, 2005 11:03 pm
by garvinhicking
This error can happen if your "templates_c" directory is not writable for the webserver user, or if you specified a bad Serendipity Path setting in your Configuration panel.

Please check those two issues and report back if it helps?

Regards,
Garvin

Posted: Tue Dec 13, 2005 11:36 pm
by leksanadra.com
i have set the permission. But it doesnt work.

About the configuration panel, i dont know what do you mean about that. In the installation process, i didnt change the path value. I use the default that serendipity's intallation chose.

Do you think i have to reinstall serendipity? What file that i have to up load again to begin reistallation?

Maybe you can describe me more. I'm a newbie in serendipity system. :lol:

Posted: Tue Dec 13, 2005 11:45 pm
by garvinhicking
Okay, so if you're absolutely sure that templates_c is something like chmod 777, then it should be a path setting within the serendipty config that is not right.

You shouldn't have to reinstall serendipity; go to your blog by directly accessing "serendipity_admin.php", there you can login and go to "Configuration". Then tell me what you've entered there within the "Path settings.

Depending on your setup and if you're using symbolic links or Windows, the s9y autodetection of paths might not always be correct.

Best regards,
Garvin

Posted: Wed Dec 14, 2005 12:40 pm
by the path setting
this actually the settings

---------------------------------------------------------------------------
Full path : /home/leksa/domains/leksanadra.com/public_html/

Upload path : uploads/

Relative path : /

Relative template path : templates/

Relative upload path : uploads/

URL to blog : http://www.leksanadra.com/

Autodetect used HTTP-Host : No

Index file : index.php

-----------------------------------------------------------------------

The blogs still down rigth now..

Posted: Wed Dec 14, 2005 4:08 pm
by garvinhicking
Can you please execute this piece of PHP within your serendpity directory:

Code: Select all

<?php
function recurse($dir, $i = 0) {
    $h = opendir($dir);
    while (($file = readdir($h)) !== false) {
        if ($file{0} == '.') {
            continue;
        }
        
        $perm   = substr(sprintf('%o', fileperms($dir . '/' . $file)), -4);
        $is_dir = is_dir($dir . '/' . $file);
        $pad    = str_repeat('  ', $i);

        echo $pad . ($is_dir ? '[D] ' : '') . "$dir/$file\n<br />$pad  [$perm] [" . fileowner($dir . '/' . $file) . "]\n<br />";

        if ($is_dir) {
            recurse($dir . '/' . $file, $i+1);
        }
    }
}

recurse('.');
Save it as "recurse.php" or so and call it in your borwser. Either some file permissions are wrong, or you didn't copy some files that serendipity requires...this output will help me tell you what's missing.

Regards,
Garvin

recurse file

Posted: Thu Dec 15, 2005 3:45 pm
by leksanadra
i cant post the code here..If i submit the post, it didn't post anything except the "subject"

So, i decide to give the URL, i hope you can help me..

http://leksanadra.com/recurse.php

Thank you so much... :lol: :lol:

Re: recurse file

Posted: Thu Dec 15, 2005 10:20 pm
by garvinhicking
Can it be that your Webserver has the "Safe Mode" functionality activated?

If yes, you must make the "templates_c" directory so that it has the same owner like your PHP user. That might be harder to do, so first delete it via FTP and then save this code as "create.php":

Code: Select all

<?php
mkdir('templates_c');
chmod('templates_c', 0777);
?>
and call it in your borwser; then templates_c should have the owner of your webserver...

HTH,
Garvin

folder added

Posted: Fri Dec 16, 2005 3:45 pm
by leksanadra
Thank you for your script. This sucsesfully create folder template_c.

But, the site still unworked. Thats i miss something? How about if i reinstall serendipty?

thank you for you attention

Re: folder added

Posted: Mon Dec 19, 2005 9:19 am
by garvinhicking
Phew, I'm at a loss of your problem, i've never seen that. I might think now that maybe some Smarty files are missing and did not get copied to your installation? Maybe just unpack a fresh serendipity install file over your current installation - just replace all files that are already there. You won't need to reinstall then, but have all the fresh files.

If that doesn't work, I'm afraid I can only help you further if you'd give me a FTP access to your blog site, then I could have a look what's happening...

Best regards,
Garvin