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...)
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/" !
Comments
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...)
example.. above you show that zenphoto is located in the zenphoto directory... is this right and does it say /zenphoto in your .htaccess file?
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 !
If you still have trouble, please start a new topic. Thanks!