Member
Member
reef   05-08-2009, 15:24
#1

Hi,

I just did a fresh install of 1.2.6rc2 on a server that has php 4.3.11 available. I have asked the hostingprovider to give me access to a newer version of php as I know this is less than the recommended/required version.

But in the meantime setup.php gives me a curious fatal error:

Fatal error: Call to undefined function: file_put_contents() in /home/.sites/39/site9/web/zp-core/setup.php on line 1097

Isn't this function php 5 and higher, so should not be used for php 4?

Hope this helps in some way :-)

regards,

Bob

Member
Member
divan   05-08-2009, 15:46
#2

It's not a bug, but I hit this as well, while trying 1.2.6 RC1. You should use php5. Add the following line to your .htaccess:

AddHandler application/x-httpd-php5 .php

Member
Member
reef   05-08-2009, 15:58
#3

Hi Divan,

Thanks for the tip. However adding that line to the .htaccess just makes my browser want to download the page instead of it being executed.

I googled and found all kinds of variations but these all have the same effect :-(

regards,

Bob

Administrator
Administrator
acrylian   05-08-2009, 16:01
#4

Thanks for the note. We develope on PHP 5 and sometimes we miss something. But we recommend PHP 5 anyway. Also, stated here http://www.zenphoto.org/2009/07/version-126-rc1/ Zenphoto 1.2.6 raises its requirements a little

Administrator
Administrator
acrylian   05-08-2009, 16:13
#5

@reef: I suggest to contact your host if you want to change the php versions.

Member
Member
reef   05-08-2009, 16:22
#6

Hi Acrylian,

I already contacted the host to change the versions for me but wanted to pass on the error anyway.

thanks!

Bob

Member
Member
sbillard   05-08-2009, 22:24
#7

file_put_contents is indeed a PHP5 function. We will have to correct that.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.