forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: pwoens on September 05, 2006, 05:11:07 pm
-
Hello all...
First of all, I apologize as I see this has been asked quite a few times, but unfortunately none of the resolutions offered have been able to correct the issue. I searched and tried any resolution offered but maybe I overlooked something as it was late?? Either way, thanks a ton.
I upgraded to the latest version of CPG.
I did verify and also reset permissions on all folders and subfolders to 777 as suggested.
I also recreated the edit folder.
If I set it to fixed upload of 1, it will work. If I set it to fixed of 2 or more it will bomb out? Also, variable fails as well.
UPDATE: i went through the 1.3.x section as well and none of the resolutions fixed my problem.
-
- Do not post debug info uless requested
- here is what I've got from search:
http://forum.coppermine-gallery.net/index.php?topic=32731.0
http://forum.coppermine-gallery.net/index.php?topic=34763.0
-
- Do not post debug info uless requested
- here is what I've got from search:
http://forum.coppermine-gallery.net/index.php?topic=32731.0
http://forum.coppermine-gallery.net/index.php?topic=34763.0
thanks...I have read through both those and still have the problem. ANy other possible ideas?
-
anyone have any ideas?? been a few days and only one reply?
-
Enable debug mode and look at the exact error message. Make sure that you have granted read permissions to the source and write permissions to the destination.
-
Enable debug mode and look at the exact error message. Make sure that you have granted read permissions to the source and write permissions to the destination.
Thanks!!
I noticed a "." after gallery in destination but not sure if that would be the cause?? If so, where would I edit that? Thanks for the reply Nibbler....truly appreciate it.
I have set all permission on /root/tmp, /gallery/tmp, /gallery/albums, /albums/edit, /album/userpics, /albums/uploads to 777. I also recreated the albums directory just to make sure. Not sure whats going on??
here is what I get:
Warning line 2922: cannot yet handle MBCS in html_entity_decode()!
followed by:
/upload.php
Warning line 1218: move_uploaded_file(/home/wearzcom/public_html/gallery./albums/edit/mHTTP_temp_f20f68ed.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory
Warning line 1218: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/php5GQYoj' to '/home/wearzcom/public_html/gallery./albums/edit/mHTTP_temp_f20f68ed.jpg'
Notice line 1291: Undefined index: URI_array
Notice line 1967: Undefined variable: escrow_array
Notice line 1969: Undefined variable: URI_failure_array
Notice line 1970: Undefined variable: zip_failure_array
-
What did you set in config for your albums directory?
-
What did you set in config for your albums directory?
it is set to albums/ and perms here are 0777
-
CPG is still down?? any other ideas? Thanks
-
Find line 1218 and add some debug code.
//Now we upload the file.
if (!(move_uploaded_file($_FILES['file_upload_array']['tmp_name'][$counter], $path_to_image))) {
And add before it:
var_dump($_FILES['file_upload_array']['tmp_name'][$counter]);
var_dump(is_readable($_FILES['file_upload_array']['tmp_name'][$counter]));
var_dump($path_to_image);
var_dump(is_writable($path_to_image));
Post what you get.
-
Thanks a ton for getting back to me...
Here's the new code snippet:
// Create a holder called $tempname.
$tempname = $prefix . $seed . '.' . $suffix;
var_dump($_FILES['file_upload_array']['tmp_name'][$counter]);
var_dump(is_readable($_FILES['file_upload_array']['tmp_name'][$counter]));
var_dump($path_to_image);
var_dump(is_writable($path_to_image));
//Now we upload the file.
if (!(move_uploaded_file($_FILES['file_upload_array']['tmp_name'][$counter], $path_to_image))) {
Here is the output after uploading the new php file with the dumps in it:
Warning line 2922: cannot yet handle MBCS in html_entity_decode()!
Warning line 2922: cannot yet handle MBCS in html_entity_decode()!
/upload.php
Warning line 1223: move_uploaded_file(/home/wearzcom/public_html/gallery./albums/edit/mHTTP_temp_775c1905.JPG) [function.move-uploaded-file]: failed to open stream: No such file or directory
Warning line 1223: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpzm8HiI' to '/home/wearzcom/public_html/gallery./albums/edit/mHTTP_temp_775c1905.JPG'
Warning line 1223: move_uploaded_file(/home/wearzcom/public_html/gallery./albums/edit/mHTTP_temp_9271770f.JPG) [function.move-uploaded-file]: failed to open stream: No such file or directory
Warning line 1223: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpRjNf1O' to '/home/wearzcom/public_html/gallery./albums/edit/mHTTP_temp_9271770f.JPG'
Notice line 1296: Undefined index: URI_array
Notice line 1972: Undefined variable: escrow_array
Notice line 1974: Undefined variable: URI_failure_array
Notice line 1975: Undefined variable: zip_failure_array
-
You need to post what the new code outputs, not the debug output.
-
You need to post what the new code outputs, not the debug output.
sorry...is this what you are talking about??
USER:
------------------
Array
(
[ID] => c0a235deeb0e19d67a7635f011cdc090
[am] => 1
[lang] => english
[liv] => Array
(
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_name] => #*#*#*#*#
[groups] => Array
(
)
[disk_max] => 20000
[disk_min] => 20000
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 1
[ufc_min] => 1
[custom_user_upload] => 1
[num_file_upload] => 10
[num_URI_upload] => 0
[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] => 1
[group_quota] => 20000
[can_see_all_albums] => 1
[group_id] => 1
)
==========================
Queries:
------------------
Array
(
- => SELECT extension, mime, content, player FROM cpg_filetypes; (0.001s)
[1] => select * from cpg_plugins order by priority asc; (0s)
[2] => delete from `wearzcom_copp1`.cpg_sessions where time<1159068818 and remember=0; (0s)
[3] => delete from `wearzcom_copp1`.cpg_sessions where time<1157862818; (0s)
[4] => select user_id from `wearzcom_copp1`.cpg_sessions where session_id=md5("683bb5003d91e2dfe61ba7a7cac17b672284f1b84e3932ecf307d32a79ba7a3a"); (0s)
[5] => select user_id as id, user_password as password from `wearzcom_copp1`.cpg_users where user_id=1 (0s)
[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 `wearzcom_copp1`.cpg_users AS u INNER JOIN `wearzcom_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
[7] => SELECT user_group_list FROM `wearzcom_copp1`.cpg_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
[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 cpg_usergroups WHERE group_id in (1) (0s)
[9] => SELECT group_name FROM cpg_usergroups WHERE group_id= 1 (0s)
[10] => update `wearzcom_copp1`.cpg_sessions set time='1159072418' where session_id=md5('683bb5003d91e2dfe61ba7a7cac17b672284f1b84e3932ecf307d32a79ba7a3a'); (0s)
[11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0.001s)
[12] => DELETE FROM cpg_banned WHERE expiry < '2006-09-24 04:33:38' (0s)
[13] => SELECT * FROM cpg_banned WHERE (ip_addr='67.185.98.100' OR ip_addr='67.185.98.100' OR user_id=1) AND brute_force=0 (0s)
[14] => SELECT aid, title FROM cpg_albums WHERE category < 10000 ORDER BY title (0s)
[15] => SELECT aid, title FROM cpg_albums WHERE category='10001' ORDER BY title (0s)
[16] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
[control] => phase_1
)
==========================
VERSION INFO :
------------------
PHP version: 4.4.4 - OK
------------------
mySQL version: 4.0.27-standard
------------------
Coppermine version: 1.4.9(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.0.27
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
==========================
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 | system, shell_exec, passthru | system, shell_exec, passthru
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/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 | 30 | 30
max_input_time | -1 | -1
upload_max_filesize | 20M | 20M
post_max_size | 55M | 55M
==========================
Page generated in 0.156 seconds - 17 queries in 0.002 seconds - Album set : ; Meta set: ;