Upgrading to 1.0.0 - path errors - Help!!

2»

Comments

  • Hi !
    Sorry I have a problem when I use the "functions.php" modification !
    I've done that :

    <?php
    // functions.php - HEADERS NOT SENT YET!

    require_once("config.php");
    if (strstr(basename(dirname($_SERVER['SCRIPT_NAME'])), "zen")) {
    define('WEBPATH', dirname(dirname($_SERVER['SCRIPT_NAME'])));
    } else {
    define('WEBPATH', dirname($_SERVER['SCRIPT_NAME']));
    }

    define('WEBPATH', '/zenphoto');//or whatever dir you installed to

    // For easy access to config vars.
    function zp_conf($var) {
    global $_zp_conf_vars;
    return $_zp_conf_vars[$var];
    }

    // Set up assertions for debugging.
    assert_options(ASSERT_ACTIVE, 1);
    assert_options(ASSERT_WARNING, 0);
    assert_options(ASSERT_QUIET_EVAL, 1);
    function assert_handler($file, $line, $code) {
    dmesg("ERROR: Assertion failed in [$file:$line]: $code");
    }
    // Set up assertion callback
    assert_options(ASSERT_CALLBACK, 'assert_handler');

    But the gallery say me that :

    Error: The 'albums' directory cannot be found or is not readable.

    I don't understand !
    Thank you (and sorry for my French English...)
  • Make sure the albums and cache directory are chmod 777 and your path to zenphoto is correct

    example.. above you show that zenphoto is located in the zenphoto directory... is this right and does it say /zenphoto in your .htaccess file?
  • Hi !
    Yes, my albums and cache directory are chmod 777 and the adresse is www.mywebsite.com/zenphoto/ ! And my .htaccess has the good directory !
    I really don't understand... Could somebody make the modifications on "config.php", "functions.php" and ".htaccess" to try ? Please...
    my server path is "/home/cereal/zenphoto/" !

    Thank you very much !
  • trisweb Administrator
    Please try upgrading to the new version 1.0.2! It should work much better with all the paths.

    If you still have trouble, please start a new topic. Thanks!
This discussion has been closed.