Hello,
when i try to install the blog software on a fresh debian-stable system,
I always get this error:
SERENDIPITY_INSTALLATION
Attempting to setup Database...
Warning: Wrong parameter count for fgets() in /home/web/blog.paupau.org/htdocs/serendipity_admin_installer.inc.php on line 142
The last to lines continue endless and apache must be restarted.
Some ideas?
I did not find any link to the dev-mailinglist on
http://sourceforge.net/mail/?group_id=75065
Is the list dead?
Tobias.
fgets() problem
I just installed it, I however ran into the same roadblock, but I do have a fix
in serendipity_admin_installer.inc.php
on line 141 $line = trim(fgets($fp));
this should be $line = trim(fgets($fp, '4096'));
This will fix the problem.
Also, on the newspaper template there is a reference to randomtitle.php, which is not included, and not a realitive url.
in serendipity_admin_installer.inc.php
on line 141 $line = trim(fgets($fp));
this should be $line = trim(fgets($fp, '4096'));
This will fix the problem.
Also, on the newspaper template there is a reference to randomtitle.php, which is not included, and not a realitive url.
-
- Regular
- Posts: 5
- Joined: Fri Jul 25, 2003 7:42 pm
As for the fgets() problem, I can assume that you are using php 4.1 or earlier. As of php version 4.2, the length argument to fgets is now optional.
string fgets ( resource handle [, int length])
That is the current function spec for php 4.3. If you put a length in it will work. Or you can upgrade to php 4.2 or later.
PS.. I also get the missing randomtitle.php error upon installation.
string fgets ( resource handle [, int length])
That is the current function spec for php 4.3. If you put a length in it will work. Or you can upgrade to php 4.2 or later.
PS.. I also get the missing randomtitle.php error upon installation.