I have installed Coppermine 1.4.18
I have installed this on an Linux Distro.
I cant upload true the URL upload, but i can true a file.
I have checked the CHMOD on the maps ( i own the webserver)
I have read true the topic about what to check on de PHP.ini.
Everything is set right. Safe mode is off.
I use GD2.
I have set the file upload to 1 and the url upload to 0.. this works.
But i want to upload true URL too.... can someone try and explain me what to do to fix this problem?
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble)
i have read the information that was provided by the link.
The only solution given by it is to upload by FTP. wich i dont want to.
I want to upload links from the internet but i get an error on that.
I have checked the CHMOD on the maps and they are correct (777).
The next errors i got:
Information
0 uploads were successful.
Error Report
The following uploads encountered errors:
URI/URL Uploads:
File Name/URL Error Message
1. http://myfotolink.jpg Could not open URI.
USER:
------------------
Array
(
[ID] => fcf1d6fb36296b9e851dbf91c2be7d4d
[am] => 1
[lang] => english
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 3
[user_name] => Deeske
[groups] => Array
(
[0] => 1
)
[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 0
[ufc_max] => 2
[ufc_min] => 2
[custom_user_upload] => 0
[num_file_upload] => 0
[num_URI_upload] => 1
[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] => 2
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 1
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM pdw_filetypes; (0.003s)
[1] => select * from pdw_plugins order by priority asc; (0.002s)
[2] => delete from `coppermine`.pdw_sessions where time<1209997898 and remember=0; (0.002s)
[3] => delete from `coppermine`.pdw_sessions where time<1208791898; (0.002s)
[4] => select user_id from `coppermine`.pdw_sessions where session_id = '5c9b7c381ad39bbe6192645c96d59b6a' (0.002s)
[5] => select user_id as id, user_password as password from `coppermine`.pdw_users where user_id=3 (0.002s)
[6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `coppermine`.pdw_users AS u INNER JOIN `coppermine`.pdw_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='3' (0.003s)
[7] => SELECT user_group_list FROM `coppermine`.pdw_users AS u WHERE user_id='3' and user_group_list <> ''; (0.002s)
[8] => 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 pdw_usergroups WHERE group_id in (1) (0.004s)
[9] => SELECT group_name FROM pdw_usergroups WHERE group_id= 1 (0.002s)
[10] => update `coppermine`.pdw_sessions set time='1210001498' where session_id = '5c9b7c381ad39bbe6192645c96d59b6a' (0.002s)
[11] => SELECT user_favpics FROM pdw_favpics WHERE user_id = 3 (0.002s)
[12] => DELETE FROM pdw_banned WHERE expiry < '2008-05-05 16:31:38' (0.002s)
[13] => SELECT * FROM pdw_banned WHERE (ip_addr='62.58.87.139' OR ip_addr='62.58.87.139' OR user_id=3) AND brute_force=0 (0.002s)
[14] => SELECT aid, title FROM pdw_albums WHERE category < 10000 ORDER BY title (0.003s)
[15] => SELECT aid, title FROM pdw_albums WHERE category='10003' ORDER BY title (0.002s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
[URI_array] => Array
(
[0] => http://icanhascheezburger.files.wordpress.com/2008/04/funny-pictures-kitten-desk-finger-painting.jpg
)
[control] => phase_1
)
==========================
VERSION INFO :
------------------
PHP version: 5.2.0 - OK
------------------
mySQL version: 5.0.27-log
------------------
Coppermine version: 1.4.18(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support:
XBM Support: 1
JIS-mapped Japanese Font Support:
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.27
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/mysql/include/mysql
MYSQL_LIBS -L/usr/local/mysql/lib/mysql -lmysqlclient
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.2
Linked Version 1.2.3
==========================
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 | .:/usr/local/php/lib/php | .:/usr/local/php/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
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 | 240 | 240
max_input_time | 60 | 60
upload_max_filesize | 8M | 8M
post_max_size | 12M | 12M
==========================
Page generated in 1.79 seconds - 16 queries in 0.037 seconds - Album set : ; Meta set: ;
Notice line 1042: Undefined index: file_upload_array
Warning line 1655: fopen() [function.fopen]: php_network_getaddresses: gethostbyname failed
Warning line 1655: fopen(http://icanhascheezburger.files.wordpress.com/2008/04/funny-pictures-kitten-desk-finger-painting.jpg) [function.fopen]: failed to open stream: Success
Warning line 697: fsockopen() [function.fsockopen]: php_network_getaddresses: gethostbyname failed
Warning line 697: fsockopen() [function.fsockopen]: unable to connect to icanhascheezburger.files.wordpress.com:80 (Unknown error)
Notice line 1967: Undefined variable: escrow_array
Notice line 1968: Undefined variable: file_failure_array
Notice line 1970: Undefined variable: zip_failure_array
Looks like you don't have DNS setup properly on the server. Make sure you have valid nameservers listed in /etc/resolv.conf. Not a Coppermine issue.
Thnxs for the tip.
I updated my Network settings (added the right DNS's) and the problem was fixed.
I've got the same problem, but don't understand how to change the DNS settings. How do I do that??
Ask your host.
The error report I get is:
USER:
------------------
Array
(
[ID] => 387dd74e46e264714157d44f3e42f397
[am] => 1
[lang] => dutch
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_name] => Irene
[groups] => Array
(
- => 101
[1] => 100
)
[disk_max] => 0
[disk_min] => 0
[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] => 1
[priv_upl_need_approval] => 1
[group_name] => Administrator
[upload_form_config] => 3
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 101
)
==========================
Queries:
------------------
Array
(
- => SELECT extension, mime, content, player FROM cpg14x_filetypes; (0s)
[1] => select * from cpg14x_plugins order by priority asc; (0s)
[2] => SELECT * FROM cpg14x_bridge (0s)
[3] => 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 cpg14x_usergroups WHERE group_id in (101,100) (0s)
[4] => SELECT group_name FROM cpg14x_usergroups WHERE group_id= 101 (0s)
[5] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 1 (0s)
[6] => DELETE FROM cpg14x_banned WHERE expiry < '2008-07-19 20:18:54' (0s)
[7] => SELECT * FROM cpg14x_banned WHERE (ip_addr='80.126.105.162' OR ip_addr='80.126.105.162' OR user_id=1) AND brute_force=0 (0s)
[8] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = '' ORDER BY name (0s)
[9] => SELECT aid FROM cpg14x_albums as a WHERE category>=10000 (0s)
[10] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
[11] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = '1' ORDER BY name (0s)
[12] => SELECT aid FROM cpg14x_albums as a WHERE category = '0' (0s)
[13] => SELECT count(*) FROM cpg14x_albums as a WHERE 1 (0s)
[14] => SELECT count(*) FROM cpg14x_pictures as p LEFT JOIN cpg14x_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
[15] => SELECT count(*) FROM cpg14x_comments as c LEFT JOIN cpg14x_pictures as p ON c.pid=p.pid LEFT JOIN cpg14x_albums as a ON a.aid=p.aid WHERE 1 (0s)
[16] => SELECT count(*) FROM cpg14x_categories WHERE 1 (0s)
[17] => SELECT sum(hits) FROM cpg14x_pictures as p LEFT JOIN cpg14x_albums as a ON p.aid=a.aid WHERE 1 (0s)
[18] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' (0s)
[19] => SELECT count(*) FROM cpg14x_albums as a WHERE category = '0' (0s)
[20] => SELECT COUNT(*) from cpg14x_pictures WHERE approved = 'YES' (0s)
[21] => SELECT * FROM cpg14x_pictures WHERE approved = 'YES' ORDER BY RAND() LIMIT 8 (0.001s)
[22] => SELECT COUNT(*) from cpg14x_pictures WHERE approved = 'YES' (0s)
[23] => SELECT * FROM cpg14x_pictures WHERE approved = 'YES' ORDER BY pid DESC LIMIT 0 ,8 (0s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 4.4.2 - OK
------------------
mySQL version: 4.1.11-standard-log
------------------
Coppermine version: 1.4.18(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.11
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.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | 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 | system, exec, shell_exec, passthru | system, exec, shell_exec, passthru
file_uploads | On | On
include_path | .:/usr/local/lib/php | .:/usr/local/lib/php
open_basedir | /home/irenesah/:/tmp:/usr/local/lib/php/ | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i -f irenesah@irenesahner.nl | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 10M | 10M
post_max_size | 10M | 10M
==========================
Page generated in 0.489 seconds - 24 queries in 0.001 seconds - Album set : ; Meta set: ;
Is this a DNS problem too?? (sorry, i've just started building coppermine, don't know anything about it..) Can anyone tell me what to do? Is there something I can do myself?
Quote from: isa on July 19, 2008, 08:21:55 PM
The error report I get is:
USER:
------------------
Array
(
[ID] => 387dd74e46e264714157d44f3e42f397
[am] => 1
[lang] => dutch
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_name] => Irene
[groups] => Array
(
- => 101
[1] => 100
)
[disk_max] => 0
[disk_min] => 0
[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] => 1
[priv_upl_need_approval] => 1
[group_name] => Administrator
[upload_form_config] => 3
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 101
)
==========================
Queries:
------------------
Array
(
- => SELECT extension, mime, content, player FROM cpg14x_filetypes; (0s)
[1] => select * from cpg14x_plugins order by priority asc; (0s)
[2] => SELECT * FROM cpg14x_bridge (0s)
[3] => 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 cpg14x_usergroups WHERE group_id in (101,100) (0s)
[4] => SELECT group_name FROM cpg14x_usergroups WHERE group_id= 101 (0s)
[5] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 1 (0s)
[6] => DELETE FROM cpg14x_banned WHERE expiry < '2008-07-19 20:18:54' (0s)
[7] => SELECT * FROM cpg14x_banned WHERE (ip_addr='80.126.105.162' OR ip_addr='80.126.105.162' OR user_id=1) AND brute_force=0 (0s)
[8] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = '' ORDER BY name (0s)
[9] => SELECT aid FROM cpg14x_albums as a WHERE category>=10000 (0s)
[10] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
[11] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = '1' ORDER BY name (0s)
[12] => SELECT aid FROM cpg14x_albums as a WHERE category = '0' (0s)
[13] => SELECT count(*) FROM cpg14x_albums as a WHERE 1 (0s)
[14] => SELECT count(*) FROM cpg14x_pictures as p LEFT JOIN cpg14x_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
[15] => SELECT count(*) FROM cpg14x_comments as c LEFT JOIN cpg14x_pictures as p ON c.pid=p.pid LEFT JOIN cpg14x_albums as a ON a.aid=p.aid WHERE 1 (0s)
[16] => SELECT count(*) FROM cpg14x_categories WHERE 1 (0s)
[17] => SELECT sum(hits) FROM cpg14x_pictures as p LEFT JOIN cpg14x_albums as a ON p.aid=a.aid WHERE 1 (0s)
[18] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' (0s)
[19] => SELECT count(*) FROM cpg14x_albums as a WHERE category = '0' (0s)
[20] => SELECT COUNT(*) from cpg14x_pictures WHERE approved = 'YES' (0s)
[21] => SELECT * FROM cpg14x_pictures WHERE approved = 'YES' ORDER BY RAND() LIMIT 8 (0.001s)
[22] => SELECT COUNT(*) from cpg14x_pictures WHERE approved = 'YES' (0s)
[23] => SELECT * FROM cpg14x_pictures WHERE approved = 'YES' ORDER BY pid DESC LIMIT 0 ,8 (0s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 4.4.2 - OK
------------------
mySQL version: 4.1.11-standard-log
------------------
Coppermine version: 1.4.18(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.11
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.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | 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 | system, exec, shell_exec, passthru | system, exec, shell_exec, passthru
file_uploads | On | On
include_path | .:/usr/local/lib/php | .:/usr/local/lib/php
open_basedir | /home/irenesah/:/tmp:/usr/local/lib/php/ | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i -f irenesah@irenesahner.nl | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 10M | 10M
post_max_size | 10M | 10M
==========================
Page generated in 0.489 seconds - 24 queries in 0.001 seconds - Album set : ; Meta set: ;
Is this a DNS problem too?? (sorry, i've just started building coppermine, don't know anything about it..) Can anyone tell me what to do? Is there something I can do myself?
sorry..
sorry
Nobody asked for the debug_output. Nibbler already told you what to do.