Page 1 of 1

Fatal error: Call to undefined function: sha1()

Posted: 19 Feb 2009, 12:26
by Gizmo
Hey!

I don't know if I did something wrong.
I just bought and uploaded the imagevue x2 folder on the ftp server and tried to test it, but I only get the Fatal error message:

Fatal error: Call to undefined function: sha1() in /home/p2008/p1/tiettn/public_html/gallery/imagevue/include/ivUserManager.class.php on line 116

I didn't edit anything, I just uploaded the unmodified files. Any idea?
Here's the link: http://perso.ecp.fr/~tiettn/gallery/

Thanks in advance!

Posted: 23 Feb 2009, 10:48
by Nick
You need php4.3+ to run this gallery, strange that your host is running older ofcourse you might add some workaround, but we use other functionality which might not work on your site:

http://perso.ecp.fr/~tiettn/gallery/ima ... hpinfo.php

So best bet is to ask your admin to upgrade php to atleast 4.4, because there are some vulnerabilities in earlier versions also.

If you want you can try a workaround, add to imagevue/include/functions.inc.php:
Code
if (!function_exists('sha1')) {

	function sha1($str)
	{
		return md5($str);
	}
}
But i bet it will lack some other functions anyway.