Page 1 of 1

functions_installer.inc.php

Posted: Wed Feb 10, 2010 11:59 am
by Capt Mike
Upgrade issue:

http://www.stmarymagdalenechurch.org

I upgraded: "Serendipity 1.4.1 installation. You are seeing this message because you have just installed Serendipity 1.5.2,"

Now I get a fatal error on line: "include/functions_installer.inc.php on line 1262"

// Calculate the checksum
$md5 = false;
if (stristr($type, 'text')) {
// This is a text-type file. We need to remove linefeeds before
// calculating a checksum, to account for possible FTP conversions
// that are inconvenient, but still valid. But we don't want to
// allow newlines anywhere; just different *kinds* of newlines.
$newlines = array("#\r\n#", "#\r#", "#\n#");
$file = file_get_contents($filename);
(1262) $file = preg_replace($newlines, ' ', $file);
$md5 = md5($file);
} else {
// Just get its md5sum
$md5 = md5_file($filename);
}

What went wrong?
:shock:

Re: functions_installer.inc.php

Posted: Wed Feb 10, 2010 12:59 pm
by garvinhicking
Hi!

Please give us the actual error message :)

It might be that your PHP is too old, which version do you use?

Could also be you'Re out of memory, in which case you could delete the file "checksums.inc.php".

Regards,
Garvin

Re: functions_installer.inc.php

Posted: Thu Feb 11, 2010 8:39 am
by Capt Mike
That did it!

I was a memory overload error message.

Removing the "checksums.inc.php" made it work.

thanks