Error pathurlencode

I installed Zenphoto, uploading pictures goes fine but but when i try to view them or go to edit he gives me this error:

Fatal error: Call to undefined function pathurlencode() in /home/site/public_html/photos/zen/classes.php on line 172

Everything seems configged ok, i didn't find this error on the forum. Anyone an idea?

Comments

  • Well, I found the function in /zen/functions.php:

    `// rawurlencode function that is path-safe (does not encode /)

    function pathurlencode($path) {

    return implode("/", array_map("rawurlencode", explode("/", $path)));

    }`

    Not sure exactly what may be the case with it though. I'm going to guess it's a path issue, like the system cannot find functions.php but that is just a guess. Tris? Can you illuminate maybe?
  • trisweb Administrator
    @fille -- can we see your gallery? Often it's much easier to diagnose if we can look around.

    It could be a path issue with functions.php, but I doubt it. Everything else seems to be working, so it's just that function? Weird.

    fille, are you upgrading from an earlier version to 1.0.4?
  • http://www.dvmc.be/suriname/
    admin/admin

    It's not an upgrade, new install.
  • trisweb Administrator
    Did you try 1.0.5? I'm not sure of the problem, but if it was with the archive and the files included, then that could work.

    Next step if that doesn't work: On your server, in the /suriname/zen directory, rename `"functions.php"` to `"functions.txt"` -- this will make Zenphoto stop working, but it will allow me to see the contents of the functions.php file you have and try to find the problem.

    Thanks!
  • I installed 1.0.4 as a test, and this one works great! Not sure what the problem is with 1.0.5...
  • trisweb Administrator
    You probably had an error or problem during extraction and corrupted functions.php somehow. I'd try 1.0.5 again with a fresh download, but if 1.0.4 works then no worries, they're the same functionally.
Sign In or Register to comment.