Member
Member
Soleil   13-07-2013, 16:24
#1

After upgrading to 1.4.5, I get the following message

Fatal error: Call to undefined function zp_load_gallery() in /homez.65/pXXX/www/YYYY/albums/zp-core/controller.php on line 16

I would be grateful for your help how to solve this problem.

Administrator
Administrator
acrylian   13-07-2013, 17:15
#2

Try a re-upload of the zp-core files. Also make sure your server is really compatible.

Member
Member
Soleil   13-07-2013, 18:20
#3

Thanks, acrylian, for your quick answer.

I reloaded the zp-core files, but got the same error message.

I entered "SetEnv PHP_VER 5_3" in the htaccess file

Member
Member
sbillard   13-07-2013, 18:38
#4

Best guess it that this was a faulty upgrade. Perhaps a file permissions problem or maybe some files from an older install did not get replaced.

Check all your logs to see what else is shown. Specially the server access log, the CGI error log and the Zenphoto debug log. The only way that you can get this error is for the functions-controller.php script to fail to load. That load would have been the action done immediately before the execution of the statement showing the error.

Administrator
Administrator
acrylian   13-07-2013, 18:38
#5

More errors in the log? If SetEnv PHP_VER 5_3 is what you need to do on your host to switch/enable php version that will be correct (never saw that actually).

Member
Member
Soleil   14-07-2013, 14:53
#6

It works!

After several re-uploads, I managed to have the new version working. It seems that index.php did not overwrite properly. (I know you recommend not too overwrite this file, but to erase it and then upload the new file!!!).

Thank you very much for your help. I always learn a lot from your replies.

Member
Member
sbillard   14-07-2013, 18:45
#7

We have never recommended NOT overwriting any of the files in the package. On the contrary, the process is to insure that ALL the files are overwritten.

Administrator
Administrator
acrylian   14-07-2013, 18:55
#8

I think you misunderstood him. I actually would always recommend to delete all files first and then upload the new ones.

It somehow happens that via FTP frequently that some are not correctly overwritten if you for example drop the entire zp-core on zp-core. I often had problems that way somehow but not the other way. Maybe it is the the number of files, no idea.

Member
Member
sbillard   14-07-2013, 20:36
#9

Maybe it is your "toy" ftp client.

Administrator
Administrator
acrylian   14-07-2013, 20:51
#10

My ftp client is even a commercial one existing for years actually.

Member
Member
sbillard   14-07-2013, 22:35
#11

Then why does it now work? No excuse for not overwriting files when it uploads them.

Administrator
Administrator
acrylian   15-07-2013, 08:26
#12

I cannot say to Soleil's problem but I guess on my end it was related to the connection and number of files transferred at one time. I have to say that this was our old server primarily where I had that issue.

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