Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Uploading dosent work here is the debug.  (Read 7420 times)

0 Members and 1 Guest are viewing this topic.

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Uploading dosent work here is the debug.
« on: August 09, 2007, 05:12:35 pm »

When i click upload it just says "0 files were successful"

here is the debug:

Code: [Select]
USER:
------------------
Array
(
    [ID] => 23dfcf30264300c656f88e9de56b39e1
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

    [theme] => classic
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => just_some_guy
    [groups] => Array
        (
            [0] => 1
        )

    [disk_max] => 20480
    [disk_min] => 20480
    [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] => 20480
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg1411_filetypes; (0.005s)
    [1] => select * from cpg1411_plugins order by priority asc; (0.006s)
    [2] => delete from `imrieimag`.cpg1411_sessions where time<1186668496 and remember=0; (0.006s)
    [3] => delete from `imrieimag`.cpg1411_sessions where time<1185462496; (0.006s)
    [4] => select user_id from `imrieimag`.cpg1411_sessions where session_id=md5("a85b36a785533117d1bef16b382f4b11425640eba0e3d9de8ae577220db440e9"); (0.006s)
    [5] => select user_id as id, user_password as password from `imrieimag`.cpg1411_users where user_id=1 (0.008s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.avatar_url AS avatar_url, u.enable_admin_email AS notify, u.auto_subscribe_post AS auto_subscribe_post, u.auto_subscribe_comment AS auto_subscribe_comment, u.user_group+100 AS group_id FROM `imrieimag`.cpg1411_users AS u INNER JOIN `imrieimag`.cpg1411_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.006s)
    [7] => SELECT user_group_list FROM `imrieimag`.cpg1411_users AS u WHERE user_id='1' and user_group_list <> ''; (0.003s)
    [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 cpg1411_usergroups WHERE group_id in (1) (0.007s)
    [9] => SELECT group_name FROM  cpg1411_usergroups WHERE group_id= 1 (0.006s)
    [10] => update `imrieimag`.cpg1411_sessions set time='1186672096' where session_id=md5('a85b36a785533117d1bef16b382f4b11425640eba0e3d9de8ae577220db440e9'); (0.006s)
    [11] => SELECT user_favpics FROM cpg1411_favpics WHERE user_id = 1 (0.003s)
    [12] => SELECT count(*) FROM  cpg1411_pms WHERE owner=1 (0.005s)
    [13] => SELECT count(*) FROM  cpg1411_pms WHERE owner=1 AND showed='0' (0.003s)
    [14] => SELECT count(*) FROM  cpg1411_buddy WHERE user_id=1 (0.004s)
    [15] => SELECT count(*) FROM  cpg1411_buddy_req WHERE buddy_to=1 (0.005s)
    [16] => DELETE FROM cpg1411_banned WHERE expiry < '2007-08-09 15:08:16' (0.001s)
    [17] => SELECT * FROM cpg1411_banned WHERE (ip_addr='82.41.6.107' OR ip_addr='82.41.6.107' OR user_id=1) AND brute_force=0 (0.001s)
    [18] => SELECT cid, name, description, thumb FROM cpg1411_categories WHERE parent = ''  ORDER BY name (0.001s)
    [19] => SELECT aid FROM cpg1411_albums WHERE category = 6 (0.001s)
    [20] => SELECT count(*) FROM cpg1411_pictures as p, cpg1411_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 6 (0.003s)
    [21] => SELECT count(*) FROM cpg1411_albums as a WHERE category = '6' (0.003s)
    [22] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg1411_albums as a LEFT JOIN cpg1411_pictures as p ON a.thumb=p.pid WHERE category=6 ORDER BY a.pos LIMIT 0,3 (0.001s)
    [23] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg1411_albums AS a  LEFT JOIN cpg1411_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (8, 9, 10)GROUP BY a.aid (0.001s)
    [24] => SELECT cid, name, description, thumb FROM cpg1411_categories WHERE parent = '6'  ORDER BY name (0.003s)
    [25] => SELECT aid FROM cpg1411_albums WHERE category = 5 (0.003s)
    [26] => SELECT count(*) FROM cpg1411_pictures as p, cpg1411_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 5 (0.001s)
    [27] => SELECT count(*) FROM cpg1411_albums as a WHERE category = '5' (0.004s)
    [28] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg1411_albums as a LEFT JOIN cpg1411_pictures as p ON a.thumb=p.pid WHERE category=5 ORDER BY a.pos LIMIT 0,3 (0.003s)
    [29] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg1411_albums AS a  LEFT JOIN cpg1411_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (5, 6, 7)GROUP BY a.aid (0.003s)
    [30] => SELECT cid, name, description, thumb FROM cpg1411_categories WHERE parent = '5'  ORDER BY name (0.003s)
    [31] => SELECT aid FROM cpg1411_albums as a WHERE category>=10000 (0.003s)
    [32] => SELECT count(*) FROM cpg1411_pictures as p, cpg1411_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0.003s)
    [33] => SELECT cid, name, description, thumb FROM cpg1411_categories WHERE parent = '1'  ORDER BY name (0.003s)
    [34] => SELECT aid FROM cpg1411_albums as a WHERE category = '0' (0.003s)
    [35] => SELECT count(*) FROM cpg1411_albums as a WHERE 1 (0.024s)
    [36] => SELECT count(*) FROM cpg1411_categories WHERE 1 (0.002s)
    [37] => SELECT count(*) FROM cpg1411_pictures as p LEFT JOIN cpg1411_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0.003s)
    [38] => SELECT sum(hits) FROM cpg1411_pictures as p LEFT JOIN cpg1411_albums as a ON p.aid=a.aid WHERE 1 (0.003s)
    [39] => SELECT count(*) FROM cpg1411_comments as c LEFT JOIN cpg1411_pictures as p ON c.pid=p.pid LEFT JOIN cpg1411_albums as a ON a.aid=p.aid WHERE 1 (0.004s)
    [40] => SELECT COUNT(*) FROM cpg1411_pictures WHERE approved = 'NO' (0.003s)
    [41] => SELECT count(*) FROM cpg1411_albums as a WHERE category = '0' (0.003s)
    [42] => SELECT COUNT(*) from cpg1411_pictures WHERE approved = 'YES'  (0.003s)
    [43] => SELECT * FROM cpg1411_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8 (0.004s)
    [44] => SELECT COUNT(*) from cpg1411_pictures WHERE approved = 'YES'  (0.003s)
    [45] => SELECT * FROM cpg1411_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,8 (0.003s)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version: 5.2.3 - OK
------------------
mySQL version: 5.0.27
------------------
Coppermine version: 1.4.12 modpack v2(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.34 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 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 -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
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 | shell_exec,exec,system,passthru,popen,proc_open,pass_thru,pcntl_exec,proc_close,proc_get_status,proc_nice,proc_terminate,dl,pclose,pfsockopen,posix_kill,posix_mkfifo | shell_exec,exec,system,passthru,popen,proc_open,pass_thru,pcntl_exec,proc_close,proc_get_status,proc_nice,proc_terminate,dl,pclose,pfsockopen,posix_kill,posix_mkfifo
file_uploads | On | On
include_path | .:/usr/share/pear/ | .:/usr/share/pear/
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 | 60 | 60
upload_max_filesize | 20M | 20M
post_max_size | 8M | 8M
==========================
Page generated in 0.334 seconds - 46 queries in 0.184 seconds - Album set : ; Meta set: ;

I edited the upload .php today when trying th youtube mod, i think i may have changed something so i overwrote upload.php with thhe original file.

Help,

thanks,
« Last Edit: August 10, 2007, 01:55:09 pm by Sami »
Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Uploading dosent work here is the debug.
« Reply #1 on: August 09, 2007, 05:15:15 pm »

also here is the notices:/include/themes.inc.php
Notice line 219: Undefined variable: USER_ID
/include/functions.inc.php
Notice line 88: Undefined variable: cpg_show_private_album
 

Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Uploading dosent work here is the debug.
« Reply #2 on: August 09, 2007, 05:24:21 pm »

Nobody has asked for the debug output nor the notices. In your thread ".bmp dont upload." I already told you to RTFM:
For details, post details: the upload trouble shooting section of the docs is a must-read when asking for support on upload issues. Not doing as suggested there means: no support.
Do exactly as suggested there. It clearly says not to post debug_output. It tells you what to post instead. For your ease of use, here's the upload troubleshooting section of the docs, with the stuff highlighted that you blatantly ignored to read / respect although I already have told you otherwise:
Quote
Upload troubleshooting

If you are experiencing issues with coppermine's upload process, temporarily change your coppermine settings as suggested below to get more detailed error messages:

    * Go to your coppermine page and log in as admin
    * Go to the config screen
    * Scroll to the bottom of the page
    * Expand the "Maintenance settings" section by clicking on it
    * Enable debug mode for everyone
    * Leave display of notices switched off
    * Save the new settings by clicking on "Save new configuration"
    * Go to the "groups" panel
    * Set the upload form configuration for all groups to "Single file uploads only" (set File upload boxes to "1", URI upload boxes to "0" and No. of boxes to "fixed")
    * Save your new settings

Then try to upload (using http uploads, even if you experienced troubles using another upload method) - you should get a more detailed error message that tells you what exactly goes wrong with your uploads. If the error message doesn't mean anything to you, search the support board for the error message you get.
When asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges, with the above mentioned settings in place - this way, supporters can see the error messages as well. Do not post debug_output unless requested.

When people have issues with uploading and decide to post their question on the Coppermine support board, they usually are told to read this upload troubleshooting section. Many of them fail to do so properly, which results in frustration both for users as well as supporters. To make this absolutely clear: the above mentioned steps are absolutely mandatory, no matter what skill level you have, no matter what upload method you have troubles with. Failing to do exactly as suggested will result in your request for help being ignored. Yes, this applies to you. We mean it!
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Uploading dosent work here is the debug.
« Reply #3 on: August 09, 2007, 05:39:56 pm »

Sorry,

I got this error: Selected album does not exist or you don't have permission to upload in this album,

here is a test user:

Location: http://mysimtractor.com/cpg1412/login.php
Username: Imrie
Pass: Test

And i followed the steps supplied.
Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Uploading dosent work here is the debug.
« Reply #4 on: August 09, 2007, 05:44:59 pm »

sorry this is the error:

No file was uploaded !

If you have really selected a file to upload, check that the server allows file uploads...

File: /home/fhlinux164/m/mysimtractor.com/user/htdocs/cpg1412/db_input.php - Line: 360
Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Nibbler

  • Guest
Re: Uploading dosent work here is the debug.
« Reply #5 on: August 09, 2007, 05:46:32 pm »

Actual password is 'test' and you have not enabled single file upload mode. Please do so.
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Uploading dosent work here is the debug.
« Reply #6 on: August 09, 2007, 05:49:38 pm »

Sorry i only did it for admin. Try again.
Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Nibbler

  • Guest
Re: Uploading dosent work here is the debug.
« Reply #7 on: August 09, 2007, 06:45:22 pm »

Now your link is broken. Why are you making this so difficult?
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Uploading dosent work here is the debug.
« Reply #8 on: August 09, 2007, 09:28:00 pm »

Sorry i was re-installing coppermine again.

i still get this error:No file was uploaded !

If you have really selected a file to upload, check that the server allows file uploads...

File: /home/fhlinux164/m/mysimtractor.com/user/htdocs/cpg1412/db_input.php - Line: 311

Here is the login details:

http://mysimtractor.com/cpg1412/
name: Imrie
Pass: test

It wont upload and the user doesent have access to an album (dont know why) , theres a useer gallery tho.

This was all working untill today, i have reinstalled it tho.
Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Uploading dosent work here is the debug.
« Reply #9 on: August 09, 2007, 11:59:52 pm »

I have thoughly read the upload document, my sever supports the requirments and i have followed the debug procedure. The galley worked before but now its not. I have re-installed it twice now.

The login details are above if you want to have a look.
Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Uploading dosent work here is the debug.
« Reply #10 on: August 10, 2007, 06:59:04 am »

Did you set permissions on the albums folder and everything within it as suggested in the docs?

Sorry i was re-installing coppermine again.
Stop un-installing and re-installing - coppermine is not just some desktop app that will be fixed performing such stunts.
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Uploading dosent work here is the debug.
« Reply #11 on: August 10, 2007, 09:00:41 am »

Yes, albums , albums/userpics ,albums/edit and include are all chmoded to 777.
Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Uploading dosent work here is the debug.
« Reply #12 on: August 10, 2007, 09:52:57 am »

Had a look inside the albums folder with my ftp, there is no folder inside for my album.

Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Uploading dosent work here is the debug.
« Reply #13 on: August 10, 2007, 10:17:29 am »

Yes, albums , albums/userpics ,albums/edit and include are all chmoded to 777.
Are you sure that 777 is the proper setting on your server setup? Check with your webhost.

Had a look inside the albums folder with my ftp, there is no folder inside for my album.
Is your server by chance running in safe-mode? Use phpinfo to find out. If yes, try enabling silly_safe_mode.
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Uploading dosent work here is the debug.
« Reply #14 on: August 10, 2007, 10:48:49 am »

I tried chmodding to 755 and got the error again, safe mode is off.
Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Uploading dosent work here is the debug.
« Reply #15 on: August 10, 2007, 12:08:52 pm »

Upload works fine for me
here is the result
http://mysimtractor.com/cpg1412/displayimage.php?pos=-2
Logged
‍I don't answer to PM with support question
Please post your issue to related board

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Uploading dosent work here is the debug.
« Reply #16 on: August 10, 2007, 01:17:34 pm »

Yeah i just fixed it.  ;D
Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Uploading dosent work here is the debug.
« Reply #17 on: August 10, 2007, 01:54:45 pm »

It would be better to describe your solution for others
Logged
‍I don't answer to PM with support question
Please post your issue to related board

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Uploading dosent work here is the debug.
« Reply #18 on: August 10, 2007, 02:23:14 pm »

Sure!

I changed the default accepted resolution and file size to higher numbers.

And it fixed.  :o

Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums
Pages: [1]   Go Up
 

Page created in 0.038 seconds with 21 queries.