Fatal error on Index.php

Having trouble installing serendipity?
Post Reply
jorainbo

Fatal error on Index.php

Post by jorainbo »

Hi everyone,

I am new here and I just tried to install s9y.

I first installed it locally on my laptop and it worked fine.

I then put it on the webserver and as soon as I try to access index.php in the browser, I get the following error message:

Fatal error: Call to undefined function: sqlite_open() in /home/www/toto99/blog/include/db/sqlite.inc.php on line 37

I have read that PHP 5 has SQLite functions built into it.
According to phpinfo version 4.4.0 is installed.
So probably sqlite is missing.

Any other way to make S9y work? or do I have to talk to my provider and ask him to install php 5.x?

Thanks and take care
Mark
Guest

Re: Fatal error on Index.php

Post by Guest »

Serendipity needs a database, so the easiest way is to let your provider install SQLite. Or you need to use mysql or postgresql, but then you cannot migrate your SQLite database and instead need to install serendipity from new again.

Regards,
Garvin
jorainbo

Re: Fatal error on Index.php

Post by jorainbo »

Anonymous wrote:Serendipity needs a database, so the easiest way is to let your provider install SQLite. Or you need to use mysql or postgresql, but then you cannot migrate your SQLite database and instead need to install serendipity from new again.

Regards,
Garvin
Hello again,

my provider has upgraded to PHP 5

But now I get the error by accessing the index.php in the browser:

Warning: Smarty error: unable to read resource: "" in /home/www/toto99/blog/bundled-libs/Smarty/libs/Smarty.class.php on line 1088

I have found in another thread that this error only occurs if the templates_c directory or the files in it are NOT chmod 777. But I have double checked it, the directory and the files in it are 777.
Any ideas?

Thanks and take care
Jorainbo
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Fatal error on Index.php

Post by garvinhicking »

The error message you wrote happen because you have not made sure that your "templates_c" directory is not writable. chmod 777 that directory will be fine. Notice that serendipity uses the Directory configured in your installation.

Since you configured the directory on your old host, it seems that this directory is different than the one where you now put Serendipity into. You now need to modify the serendipity_config database table and correct all path settings like "serendipityPath". It might work out if you access the serendipity admin panel and enter configuration; if you cannot enter this interface you need to use a tool like SQLiteAdmin to modify that manually.

Usually serendipity cannot be installed if the dir is not writable; but as you copied an already installed version, serendipity does not check it again.

Usually it is only recommended to just copy a s9y installation from one server to the other if you know what you'Re doing - else a fresh isntallation is recommended.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Re: Fatal error on Index.php

Post by Guest »

okay, forget it...it works now, a path information was wrong...thanks anyway

jorainbo
Jorainbo

Re: Fatal error on Index.php

Post by Jorainbo »

garvinhicking wrote:The error message you wrote happen because you have not made sure that your "templates_c" directory is not writable. chmod 777 that directory will be fine. Notice that serendipity uses the Directory configured in your installation.

Since you configured the directory on your old host, it seems that this directory is different than the one where you now put Serendipity into. You now need to modify the serendipity_config database table and correct all path settings like "serendipityPath". It might work out if you access the serendipity admin panel and enter configuration; if you cannot enter this interface you need to use a tool like SQLiteAdmin to modify that manually.

Usually serendipity cannot be installed if the dir is not writable; but as you copied an already installed version, serendipity does not check it again.

Usually it is only recommended to just copy a s9y installation from one server to the other if you know what you'Re doing - else a fresh isntallation is recommended.

Regards,
Garvin
yes...thanks for your help, that was exactly what I have figured out..I was stupid enough to copy the already installed version from my local computer to the webserver of my provider and the paths were different of course....I have set it up again and now it seems to work perfect...

Thanks again
jorainbo
Post Reply