I own two photo galleries. I upgraded both recently, one from 1.1 to 1.3.2 and other from 1.2 to 1.3.2. The last one was 100% succsesfull, but the oldest version upgrade has a problem.
When I try to add a photo, I receive the following error legends:
UPLOAD FILEQuoteNotice: Undefined offset: 2 in /var/www/html/fotos/upload.php on line 250
Notice: Undefined offset: 3 in /var/www/html/fotos/upload.php on line 256
Notice: Undefined offset: 4 in /var/www/html/fotos/upload.php on line 256
File Uploads... browse... URI/URL Uploads...
QuoteUSER:
------------------
Array
(
[ID] => 7d4a8862085852b7c789964dcc55c41a
[am] => 1
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_group] => 1
[user_active] => YES
[user_name] => joelgomez
[user_password] => ********
[user_lastvisit] => 2005-02-20 11:05:32
[user_regdate] => 2003-08-13 06:05:42
[user_group_list] =>
[user_email] =>
[user_website] => www.joelgomez.com
[user_location] => Monterrey, Nuevo León
[user_interests] => Fotografía Digital
[user_occupation] => Abogado y Profesor de Derecho
[user_actkey] =>
[user_favpics] =>
[disk_max] => 2048
[disk_min] => 2048
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 3
[ufc_min] => 3
[custom_user_upload] => 0
[num_file_upload] => 5
[num_URI_upload] => 3
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 1
[has_admin_access] => 1
[pub_upl_need_approval] => 0
[priv_upl_need_approval] => 0
[group_name] => Administrators
[upload_form_config] => 3
[group_quota] => 2048
[can_see_all_albums] => 1
[group_id] => 1
[groups] => Array
(
[1] => 1
)
)
==========================
Queries:
------------------
Array
(
- => SELECT extension, mime, content FROM cpg11d_filetypes;
[1] => SELECT * FROM cpg11d_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '5fa27dcf21a12cc2d5e0519f9d6d54d0'
[2] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg11d_usergroups WHERE group_id in (1)
[3] => SELECT group_name FROM cpg11d_usergroups WHERE group_id= 1
[4] => DELETE FROM cpg11d_banned WHERE expiry < 1108927001
[5] => SELECT * FROM cpg11d_banned WHERE ip_addr='200.56.66.110' OR ip_addr='200.56.66.110' OR user_id=1
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 4.3.10 - OK
------------------
mySQL version: 3.23.58
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 3.23.58
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.0.7
Linked Version 1.2.0.7
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/php/includes:/usr/share/php | .:/php/includes:/usr/share/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 60 | 60
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.052 seconds - 6 queries in 0.002 seconds - Album set :
CONTINUE...
Quote
Notice: Undefined variable: file_failure_array in /var/www/html/fotos/upload.php on line 1940
Notice: Undefined variable: URI_failure_array in /var/www/html/fotos/upload.php on line 1941
Notice: Undefined variable: zip_failure_array in /var/www/html/fotos/upload.php on line 1942
Successful Uploads1 uploads were successful.
Please click 'Continue' to add the files to albums.
QuoteUSER:
------------------
Array
(
[ID] => 7d4a8862085852b7c789964dcc55c41a
[am] => 1
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_group] => 1
[user_active] => YES
[user_name] => joelgomez
[user_password] => ********
[user_lastvisit] => 2005-02-20 11:05:32
[user_regdate] => 2003-08-13 06:05:42
[user_group_list] =>
[user_email] =>
[user_website] => www.joelgomez.com
[user_location] => Monterrey, Nuevo León
[user_interests] => Fotografía Digital
[user_occupation] => Abogado y Profesor de Derecho
[user_actkey] =>
[user_favpics] =>
[disk_max] => 2048
[disk_min] => 2048
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 3
[ufc_min] => 3
[custom_user_upload] => 0
[num_file_upload] => 5
[num_URI_upload] => 3
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 1
[has_admin_access] => 1
[pub_upl_need_approval] => 0
[priv_upl_need_approval] => 0
[group_name] => Administrators
[upload_form_config] => 3
[group_quota] => 2048
[can_see_all_albums] => 1
[group_id] => 1
[groups] => Array
(
[1] => 1
)
)
==========================
Queries:
------------------
Array
(
- => SELECT extension, mime, content FROM cpg11d_filetypes;
[1] => SELECT * FROM cpg11d_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '5fa27dcf21a12cc2d5e0519f9d6d54d0'
[2] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg11d_usergroups WHERE group_id in (1)
[3] => SELECT group_name FROM cpg11d_usergroups WHERE group_id= 1
[4] => DELETE FROM cpg11d_banned WHERE expiry < 1108927226
[5] => SELECT * FROM cpg11d_banned WHERE ip_addr='200.56.66.110' OR ip_addr='200.56.66.110' OR user_id=1
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
[URI_array] => Array
(
- =>
[1] =>
[2] =>
)
[control] => phase_1
)
==========================
VERSION INFO :
------------------
PHP version: 4.3.10 - OK
------------------
mySQL version: 3.23.58
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 3.23.58
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.0.7
Linked Version 1.2.0.7
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/php/includes:/usr/share/php | .:/php/includes:/usr/share/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 60 | 60
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.053 seconds - 6 queries in 0.002 seconds - Album set :
CONTINUE...
Notice: Undefined index: OS in /var/www/html/fotos/include/picmgmt.inc.php on line 157
Upload FileAlbum... File Title... File Description...
CONTINUE...
QuoteUSER:
------------------
Array
(
[ID] => 7d4a8862085852b7c789964dcc55c41a
[am] => 1
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_group] => 1
[user_active] => YES
[user_name] => joelgomez
[user_password] => ********
[user_lastvisit] => 2005-02-20 11:05:32
[user_regdate] => 2003-08-13 06:05:42
[user_group_list] =>
[user_email] =>
[user_website] => www.joelgomez.com
[user_location] => Monterrey, Nuevo León
[user_interests] => Fotografía Digital
[user_occupation] => Abogado y Profesor de Derecho
[user_actkey] =>
[user_favpics] =>
[disk_max] => 2048
[disk_min] => 2048
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 3
[ufc_min] => 3
[custom_user_upload] => 0
[num_file_upload] => 5
[num_URI_upload] => 3
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 1
[has_admin_access] => 1
[pub_upl_need_approval] => 0
[priv_upl_need_approval] => 0
[group_name] => Administrators
[upload_form_config] => 3
[group_quota] => 2048
[can_see_all_albums] => 1
[group_id] => 1
[groups] => Array
(
[1] => 1
)
)
==========================
Queries:
------------------
Array
(
- => SELECT extension, mime, content FROM cpg11d_filetypes;
[1] => SELECT * FROM cpg11d_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '5fa27dcf21a12cc2d5e0519f9d6d54d0'
[2] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg11d_usergroups WHERE group_id in (1)
[3] => SELECT group_name FROM cpg11d_usergroups WHERE group_id= 1
[4] => DELETE FROM cpg11d_banned WHERE expiry < 1108927317
[5] => SELECT * FROM cpg11d_banned WHERE ip_addr='200.56.66.110' OR ip_addr='200.56.66.110' OR user_id=1
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
[unique_ID] => 71375484
[control] => phase_2
)
==========================
VERSION INFO :
------------------
PHP version: 4.3.10 - OK
------------------
mySQL version: 3.23.58
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 3.23.58
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.0.7
Linked Version 1.2.0.7
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/php/includes:/usr/share/php | .:/php/includes:/usr/share/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 60 | 60
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.082 seconds - 6 queries in 0.002 seconds - Album set :
QuoteNotice: Undefined index: user1 in /var/www/html/fotos/upload.php on line 2146
Notice: Undefined index: user3 in /var/www/html/fotos/upload.php on line 2148
Notice: Undefined index: user4 in /var/www/html/fotos/upload.php on line 2149
Notice: Undefined index: OS in /var/www/html/fotos/include/picmgmt.inc.php on line 157
InformationThe previous file could not be placed.
You have successfully placed all the files.
CONTINUE...
QuoteUSER:
------------------
Array
(
[ID] => 7d4a8862085852b7c789964dcc55c41a
[am] => 1
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_group] => 1
[user_active] => YES
[user_name] => joelgomez
[user_password] => ********
[user_lastvisit] => 2005-02-20 11:05:32
[user_regdate] => 2003-08-13 06:05:42
[user_group_list] =>
[user_email] =>
[user_website] => www.joelgomez.com
[user_location] => Monterrey, Nuevo León
[user_interests] => Fotografía Digital
[user_occupation] => Abogado y Profesor de Derecho
[user_actkey] =>
[user_favpics] =>
[disk_max] => 2048
[disk_min] => 2048
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 3
[ufc_min] => 3
[custom_user_upload] => 0
[num_file_upload] => 5
[num_URI_upload] => 3
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 1
[has_admin_access] => 1
[pub_upl_need_approval] => 0
[priv_upl_need_approval] => 0
[group_name] => Administrators
[upload_form_config] => 3
[group_quota] => 2048
[can_see_all_albums] => 1
[group_id] => 1
[groups] => Array
(
[1] => 1
)
)
==========================
Queries:
------------------
Array
(
- => SELECT extension, mime, content FROM cpg11d_filetypes;
[1] => SELECT * FROM cpg11d_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '5fa27dcf21a12cc2d5e0519f9d6d54d0'
[2] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg11d_usergroups WHERE group_id in (1)
[3] => SELECT group_name FROM cpg11d_usergroups WHERE group_id= 1
[4] => DELETE FROM cpg11d_banned WHERE expiry < 1108927414
[5] => SELECT * FROM cpg11d_banned WHERE ip_addr='200.56.66.110' OR ip_addr='200.56.66.110' OR user_id=1
[6] => SELECT category FROM cpg11d_albums WHERE aid='46'
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
[album] => 46
[title] =>
[caption] =>
[keywords] =>
[control] => phase_2
[unique_ID] => 71375484
[user2] =>
)
==========================
VERSION INFO :
------------------
PHP version: 4.3.10 - OK
------------------
mySQL version: 3.23.58
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 3.23.58
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.0.7
Linked Version 1.2.0.7
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/php/includes:/usr/share/php | .:/php/includes:/usr/share/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 60 | 60
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.079 seconds - 7 queries in 0.002 seconds - Album set :
Final result, no pictures uploaded.
I've chmoded all folders and files to 755. With a chmod of 777 diffferent errors appear.
only post debug_info when a supporter asks you for it. Instead, set "upload method" to "Single file uploads only" in the "groups" control panel (with debug_mode enabled and display_notices disabled in coppermine config). Then post the actual error messages. Posting a link and test user account (non-admin) might be a good idea as well.
Joachim
Thanks Joachim, this is the error I got now:
QuoteCritical error
The file 'albums/userpics/10001/33-jeep-recovery.gif' can't be inserted in the album
Error executing ImageMagick - Return value: 127
Cmd line :
/usr/X11R6/bin/convert -quality 90 -antialias -geometry 100x100 'albums/userpics/10001/33-jeep-recovery.gif' 'albums/userpics/10001/thumb_33-jeep-recovery.gif'
The convert program said:
sh: line 1: /usr/X11R6/bin/convert: No such file or directory
File: /var/www/html/fotos/db_input.php - Line: 304
Link: http://fotos.joelgomez.com/
Account: I CANT CREATE NEW ACCOUNTS!!! I dont know why...
Thank you for registering at Galería Fotográfica JAGT
Your username is : "copteam"
Your password is : "testing"
In order to activate your account, you need to click on the link below
or copy and paste it in your web browser.
http://www.joelgomez.com/fotos/register.php?activate=30114ff1a75c86450108d35cc5d4cacd
Regards,
The management of Galería Fotográfica JAGT
QuoteError
This account can't be activated !
File: /var/www/html/fotos/register.php - Line: 263
Now you have a testing account ready to use:
Account: cpgteam
Password: test
LINK: http://fotos.joelgomez.com/
http://forum.coppermine-gallery.net/index.php?action=search2&search=Error%20executing%20ImageMagick%20Return%20value:%20127
GauGau, I'm amazed... doesn't matter how complex seems to be the problem, it can have a very SIMPLE solution!!!
Three letters where causing all the trouble!!!
Thank you very much!!!
http://fotos.joelgomez.com
http://www.galeria4x4.com