I am running Zenphoto 1.4
I encounter the error messages below when I have the "Make a new album" option also selected while uploading a photo.
---
Notice: class-album detected an invalid folder name: Boys_Brigade/Excellent. in /home/zenphoto/public_html/zp-core/class-album.php on line 70
Warning: Cannot modify header information - headers already sent by (output started at /home/zenphoto/public_html/zp-core/class-album.php:70) in /home/zenphoto/public_html/zp-core/admin-edit.php on line 35
---
However the photo gets uploaded with no problem if I do NOT select the "Make a new album" option at the same time.
Could anyone advise? Thanks in advance
Comments
There is no problem if I first create the album and THEN upload to it.
I have just tried the latest nightly build from here
http://www.zenphoto.org/files/nightly/
and the result is the same.
Do let me know what else I need to do or other information that is needed to troubleshoot?
This is a clean install of Zenphoto 1.4
Backtrace: class-album detected an invalid folder name: folder.
Album->Album called
from admin-upload.php [49]
{Wed, 19 Jan 2011 04:19:34 GMT}
Backtrace: class-album detected an invalid folder name: xx2.
Album->Album called
from admin-upload.php [49]
{Wed, 19 Jan 2011 04:27:45 GMT}
Backtrace: class-album detected an invalid folder name: ejemplo.
Album->Album called
from admin-upload.php [49]
{Wed, 19 Jan 2011 04:31:55 GMT}
Backtrace: class-album detected an invalid folder name: ejemplo2.
Album->Album called
from admin-upload.php [49]
{Wed, 19 Jan 2011 04:32:35 GMT}
Backtrace: class-album detected an invalid folder name: ejemplo2.
Album->Album called
from admin-edit.php [32]
Backtrace: class-album detected an invalid folder name: ejemplo2.
Album->Album called
from admin-edit.php [469]
{Wed, 19 Jan 2011 04:38:07 GMT}
Backtrace: class-album detected an invalid folder name: ejemplo2.
Album->Album called
from admin-edit.php [32]
Backtrace: class-album detected an invalid folder name: ejemplo2.
Album->Album called
from admin-edit.php [469]
{Wed, 19 Jan 2011 04:38:10 GMT}
Backtrace: class-album detected an invalid folder name: ejemplo2.
Album->Album called
from admin-edit.php [32]
Backtrace: class-album detected an invalid folder name: ejemplo2.
Album->Album called
from admin-edit.php [469]
{Wed, 19 Jan 2011 04:40:19 GMT}
Backtrace: class-album detected an invalid folder name: sws.
Album->Album called
from admin-upload.php [49]
{Wed, 19 Jan 2011 04:43:19 GMT}
Backtrace: class-album detected an invalid folder name: sese.
Album->Album called
from admin-upload.php [49]
{Wed, 19 Jan 2011 05:01:08 GMT}
404 error: album=images; image=; theme=default
$_SERVER => ( AUTH_TYPE => Basic, DOCUMENT_ROOT => /home/natur123/public_html,
GATEWAY_INTERFACE => CGI/1.1, HTTP_ACCEPT => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,
HTTP_ACCEPT_CHARSET => ISO-8859-1,utf-8;q=0.7,*;q=0.7, HTTP_ACCEPT_ENCODING => gzip,deflate,
HTTP_ACCEPT_LANGUAGE => es-es,es;q=0.8,en-us;q=0.5,en;q=0.3, HTTP_CONNECTION => keep-alive,
HTTP_COOKIE => zenphoto_auth=eb116240f506c61d791c483289f41fba; uploadtype=http; PHPSESSID=fd9e349a7bae6542e15cd1b45c5d7c88; setup_test_cookie=6454,
HTTP_HOST => www.naturemar.org, HTTP_KEEP_ALIVE => 115, HTTP_USER_AGENT => Mozilla/5.0 (Windows; U; Windows NT 6.0; es-ES; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 GTB7.1,
PATH => /bin:/usr/bin, PHP_AUTH_PW => trama6, PHP_AUTH_USER => solojano,
QUERY_STRING => album=images, REDIRECT_QUERY_STRING => album=images, REDIRECT_STATUS => 200,
REDIRECT_UNIQUE_ID => TTZwFEPSZH4AAATk6XoAAAAk, REDIRECT_URL => /photos/images,
REMOTE_ADDR => 200.86.19.52, REMOTE_PORT => 57144, REMOTE_USER => solojano,
REQUEST_METHOD => GET, REQUEST_URI => /photos/images, SCRIPT_FILENAME => /home/natur123/public_html/photos/index.php,
SCRIPT_NAME => /photos/index.php, SERVER_ADDR => 67.210.100.91, SERVER_ADMIN => webmaster@naturemar.org,
SERVER_NAME => www.naturemar.org, SERVER_PORT => 80, SERVER_PROTOCOL => HTTP/1.1,
SERVER_SIGNATURE => Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.naturemar.org Port 80
,
SERVER_SOFTWARE => Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635,
UNIQUE_ID => TTZwFEPSZH4AAATk6XoAAAAk, PHP_SELF => /photos/index.php, REQUEST_TIME => 1295413268,
argv => ( 0 => album=images )
argc => 1 )
$_REQUEST => ( album => images, zenphoto_auth => eb116240f506c61d791c483289f41fba,
uploadtype => http, PHPSESSID => fd9e349a7bae6542e15cd1b45c5d7c88, setup_test_cookie => 6454 )
{Wed, 19 Jan 2011 05:01:46 GMT}
404 error: album=images; image=; theme=default
$_SERVER => ( AUTH_TYPE => Basic, DOCUMENT_ROOT => /home/natur123/public_html,
GATEWAY_INTERFACE => CGI/1.1, HTTP_ACCEPT => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,
HTTP_ACCEPT_CHARSET => ISO-8859-1,utf-8;q=0.7,*;q=0.7, HTTP_ACCEPT_ENCODING => gzip,deflate,
HTTP_ACCEPT_LANGUAGE => es-es,es;q=0.8,en-us;q=0.5,en;q=0.3, HTTP_CONNECTION => keep-alive,
HTTP_COOKIE => zenphoto_auth=eb116240f506c61d791c483289f41fba; uploadtype=http; PHPSESSID=fd9e349a7bae6542e15cd1b45c5d7c88; setup_test_cookie=6454,
HTTP_HOST => www.naturemar.org, HTTP_KEEP_ALIVE => 115, HTTP_USER_AGENT => Mozilla/5.0 (Windows; U; Windows NT 6.0; es-ES; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 GTB7.1,
PATH => /bin:/usr/bin, PHP_AUTH_PW => trama6, PHP_AUTH_USER => solojano,
QUERY_STRING => album=images, REDIRECT_QUERY_STRING => album=images, REDIRECT_STATUS => 200,
REDIRECT_UNIQUE_ID => TTZwOkPSZH4AAATf6HEAAAAf, REDIRECT_URL => /photos/images,
REMOTE_ADDR => 200.86.19.52, REMOTE_PORT => 57148, REMOTE_USER => solojano,
REQUEST_METHOD => GET, REQUEST_URI => /photos/images, SCRIPT_FILENAME => /home/natur123/public_html/photos/index.php,
SCRIPT_NAME => /photos/index.php, SERVER_ADDR => 67.210.100.91, SERVER_ADMIN => webmaster@naturemar.org,
SERVER_NAME => www.naturemar.org, SERVER_PORT => 80, SERVER_PROTOCOL => HTTP/1.1,
SERVER_SIGNATURE => Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.naturemar.org Port 80
,
SERVER_SOFTWARE => Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635,
UNIQUE_ID => TTZwOkPSZH4AAATf6HEAAAAf, PHP_SELF => /photos/index.php, REQUEST_TIME => 1295413306,
argv => ( 0 => album=images )
argc => 1 )
$_REQUEST => ( album => images, zenphoto_auth => eb116240f506c61d791c483289f41fba,
uploadtype => http, PHPSESSID => fd9e349a7bae6542e15cd1b45c5d7c88, setup_test_cookie => 6454 )
{Wed, 19 Jan 2011 05:02:43 GMT}
404 error: album=photos; image=; theme=default
$_SERVER => ( AUTH_TYPE => Basic, DOCUMENT_ROOT => /home/natur123/public_html,
GATEWAY_INTERFACE => CGI/1.1, HTTP_ACCEPT => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,
HTTP_ACCEPT_CHARSET => ISO-8859-1,utf-8;q=0.7,*;q=0.7, HTTP_ACCEPT_ENCODING => gzip,deflate,
HTTP_ACCEPT_LANGUAGE => es-es,es;q=0.8,en-us;q=0.5,en;q=0.3, HTTP_CONNECTION => keep-alive,
HTTP_COOKIE => zenphoto_auth=eb116240f506c61d791c483289f41fba; uploadtype=http; PHPSESSID=fd9e349a7bae6542e15cd1b45c5d7c88; setup_test_cookie=6454,
HTTP_HOST => www.naturemar.org, HTTP_KEEP_ALIVE => 115, HTTP_USER_AGENT => Mozilla/5.0 (Windows; U; Windows NT 6.0; es-ES; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 GTB7.1,
PATH => /bin:/usr/bin, PHP_AUTH_PW => trama6, PHP_AUTH_USER => solojano,
QUERY_STRING => album=photos, REDIRECT_QUERY_STRING => album=photos, REDIRECT_STATUS => 200,
REDIRECT_UNIQUE_ID => TTZwc0PSZH4AAAd3eMkAAAAk, REDIRECT_URL => /photos/photos,
REMOTE_ADDR => 200.86.19.52, REMOTE_PORT => 57159, REMOTE_USER => solojano,
REQUEST_METHOD => GET, REQUEST_URI => /photos/photos, SCRIPT_FILENAME => /home/natur123/public_html/photos/index.php,
SCRIPT_NAME => /photos/index.php, SERVER_ADDR => 67.210.100.91, SERVER_ADMIN => webmaster@naturemar.org,
SERVER_NAME => www.naturemar.org, SERVER_PORT => 80, SERVER_PROTOCOL => HTTP/1.1,
SERVER_SIGNATURE => Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.naturemar.org Port 80
,
SERVER_SOFTWARE => Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635,
UNIQUE_ID => TTZwc0PSZH4AAAd3eMkAAAAk, PHP_SELF => /photos/index.php, REQUEST_TIME => 1295413363,
argv => ( 0 => album=photos )
argc => 1 )
$_REQUEST => ( album => photos, zenphoto_auth => eb116240f506c61d791c483289f41fba,
uploadtype => http, PHPSESSID => fd9e349a7bae6542e15cd1b45c5d7c88, setup_test_cookie => 6454 )
{Wed, 19 Jan 2011 05:02:50 GMT}
404 error: album=photos; image=; theme=default
$_SERVER => ( AUTH_TYPE => Basic, DOCUMENT_ROOT => /home/natur123/public_html,
GATEWAY_INTERFACE => CGI/1.1, HTTP_ACCEPT => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,
HTTP_ACCEPT_CHARSET => ISO-8859-1,utf-8;q=0.7,*;q=0.7, HTTP_ACCEPT_ENCODING => gzip,deflate,
HTTP_ACCEPT_LANGUAGE => es-es,es;q=0.8,en-us;q=0.5,en;q=0.3, HTTP_CACHE_CONTROL => max-age=0,
HTTP_CONNECTION => keep-alive, HTTP_COOKIE => zenphoto_auth=eb116240f506c61d791c483289f41fba; uploadtype=http; PHPSESSID=fd9e349a7bae6542e15cd1b45c5d7c88; setup_test_cookie=6454,
HTTP_HOST => www.naturemar.org, HTTP_KEEP_ALIVE => 115, HTTP_USER_AGENT => Mozilla/5.0 (Windows; U; Windows NT 6.0; es-ES; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 GTB7.1,
PATH => /bin:/usr/bin, PHP_AUTH_PW => trama6, PHP_AUTH_USER => solojano,
QUERY_STRING => album=photos, REDIRECT_QUERY_STRING => album=photos, REDIRECT_STATUS => 200,
REDIRECT_UNIQUE_ID => TTZwekPSZH4AAAfVh5QAAABA, REDIRECT_URL => /photos/photos,
REMOTE_ADDR => 200.86.19.52, REMOTE_PORT => 57160, REMOTE_USER => solojano,
REQUEST_METHOD => GET, REQUEST_URI => /photos/photos, SCRIPT_FILENAME => /home/natur123/public_html/photos/index.php,
SCRIPT_NAME => /photos/index.php, SERVER_ADDR => 67.210.100.91, SERVER_ADMIN => webmaster@naturemar.org,
SERVER_NAME => www.naturemar.org, SERVER_PORT => 80, SERVER_PROTOCOL => HTTP/1.1,
SERVER_SIGNATURE => Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.naturemar.org Port 80
,
SERVER_SOFTWARE => Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635,
UNIQUE_ID => TTZwekPSZH4AAAfVh5QAAABA, PHP_SELF => /photos/index.php, REQUEST_TIME => 1295413370,
argv => ( 0 => album=photos )
argc => 1 )
$_REQUEST => ( album => photos, zenphoto_auth => eb116240f506c61d791c483289f41fba,
uploadtype => http, PHPSESSID => fd9e349a7bae6542e15cd1b45c5d7c88, setup_test_cookie => 6454 )
I do believe I have located what exactly causes this problem.
The problem I described above only occurs for a user who does NOT have the "Manage all albums" rights given. (I have given this user an album to manage, and all its sub albums)
When I DO give the user this right, the problem disappears.
So effectively, the managed albums feature is presently broken somewhat?
Thank you
----------------------
Notice: class-album detected an invalid folder name: koko. in /.../zp-core/class-album.php on line 70
Notice: class-album detected an invalid folder name: koko. in /.../zp-core/class-album.php on line 70
Zenphoto encountered an error
Error: The album named cannot be found.
Backtrace:
-> Album->loadFileNames (class-album.php [385])
-> Album->getImages (class-album.php [490])
-> Album->getNumImages (admin-functions.php [472])
-> setAlbumSubtabs (admin-edit.php [470])
Zenphoto encountered an error
MySQL Query ( SELECT * FROM `zp_images` WHERE `albumid`= ) failed. MySQL returned the error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Backtrace:
-> query (class-album.php [439])
-> Album->sortImageArray (class-album.php [386])
-> Album->getImages (class-album.php [490])
-> Album->getNumImages (admin-functions.php [472])
-> setAlbumSubtabs (admin-edit.php [470])