Fatal error after upgrading

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.

Comments

  • acrylian Administrator, Developer
    Try a re-upload of the zp-core files. Also make sure your server is really compatible.
  • Soleil Member
    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
  • 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.
  • acrylian Administrator, Developer
    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).
  • Soleil Member
    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.
  • 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.
  • acrylian Administrator, Developer
    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.
  • Maybe it is your "toy" ftp client.
  • acrylian Administrator, Developer
    My ftp client is even a commercial one existing for years actually.
  • Then why does it now work? No excuse for not overwriting files when it uploads them.
  • acrylian Administrator, Developer
    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.
Sign In or Register to comment.