Error when trying to Batch Add Files Error when trying to Batch Add Files
 

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]

Main Menu

Error when trying to Batch Add Files

Started by snowflakie06, December 01, 2008, 07:07:19 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

snowflakie06

I'm not sure if this is the right place to post this in but I hope it is...

I recently had to transfer my site to a new server and tonight I tried to batch add some files and was given an error. When I checked to see if it was doing it to all folders, I noticed it wasn't. It happens as soon as I press 'Ok' to have the files shown so I can actually add them into the gallery.

This is the debug info:

USER:
------------------
Array
(
    [ID] => 48978b756a26355e432cc2e87e5b8cf1
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 31131
            [1] => 29652
            [2] => 1828
            [3] => 1823
            [4] => 1826
        )

    [lap] => 1
)

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

    [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] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg14x_filetypes; (0s)
    [1] => select * from cpg14x_plugins order by priority asc; (0s)
    [2] => delete from `themedus_gallery`.cpg14x_sessions where time<1228107695 and remember=0; (0s)
    [3] => delete from `themedus_gallery`.cpg14x_sessions where time<1226901695; (0s)
    [4] => select user_id from `themedus_gallery`.cpg14x_sessions where session_id = 'd5e7c320dd723b6ea3a23ed96e0d0a56' (0s)
    [5] => select user_id as id, user_password as password from `themedus_gallery`.cpg14x_users where user_id=1 (0s)
    [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 `themedus_gallery`.cpg14x_users AS u INNER JOIN `themedus_gallery`.cpg14x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `themedus_gallery`.cpg14x_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 cpg14x_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg14x_usergroups WHERE group_id= 1 (0s)
    [10] => update `themedus_gallery`.cpg14x_sessions set time='1228111295' where session_id = 'd5e7c320dd723b6ea3a23ed96e0d0a56' (0s)
    [11] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 1 (0s)
    [12] => SELECT count(*) FROM  cpg14x_pms WHERE owner=1 (0s)
    [13] => SELECT count(*) FROM  cpg14x_pms WHERE owner=1 AND showed='0' (0s)
    [14] => SELECT count(*) FROM  cpg14x_buddy WHERE user_id=1 (0s)
    [15] => SELECT count(*) FROM  cpg14x_buddy_req WHERE buddy_to=1 (0s)
    [16] => DELETE FROM cpg14x_banned WHERE expiry < '2008-12-01 06:01:35' (0s)
    [17] => SELECT * FROM cpg14x_banned WHERE (ip_addr='141.153.230.207' OR ip_addr='141.153.230.207' OR user_id=1) AND brute_force=0 (0s)
    [18] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = ''  ORDER BY pos (0s)
    [19] => SELECT aid FROM cpg14x_albums as a WHERE category>=10000 (0.001s)
    [20] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
    [21] => SELECT aid FROM cpg14x_albums WHERE category = 2 (0s)
    [22] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 2 (0s)
    [23] => SELECT aid FROM cpg14x_albums WHERE category = 3 (0s)
    [24] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 3 (0s)
    [25] => SELECT aid FROM cpg14x_albums WHERE category = 4 (0s)
    [26] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 4 (0s)
    [27] => SELECT aid FROM cpg14x_albums WHERE category = 36 (0s)
    [28] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 36 (0s)
    [29] => SELECT aid FROM cpg14x_albums WHERE category = 15 (0s)
    [30] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 15 (0s)
    [31] => SELECT aid FROM cpg14x_albums WHERE category = 6 (0s)
    [32] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 6 (0s)
    [33] => SELECT aid FROM cpg14x_albums WHERE category = 7 (0s)
    [34] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 7 (0s)
    [35] => SELECT aid FROM cpg14x_albums as a WHERE category = '0' (0s)
    [36] => SELECT count(*) FROM cpg14x_albums as a WHERE 1 (0s)
    [37] => SELECT count(*) FROM cpg14x_categories WHERE 1 (0s)
    [38] => SELECT count(*) FROM cpg14x_pictures as p LEFT JOIN cpg14x_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0.047s)
    [39] => SELECT sum(hits) FROM cpg14x_pictures as p LEFT JOIN cpg14x_albums as a ON p.aid=a.aid WHERE 1 (0.113s)
    [40] => 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)
    [41] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' (0s)
    [42] => SELECT count(*) FROM cpg14x_albums as a WHERE category = '0' (0s)
    [43] => SELECT * FROM cpg14x_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 12 (1.153s)
    [44] => SELECT COUNT(*) from cpg14x_pictures WHERE approved = 'YES'  (0.12s)
    [45] => SELECT * FROM cpg14x_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,12 (0s)
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 5.2.6 - OK
------------------
mySQL version: 5.0.51a-community
------------------
Coppermine version: 1.4.18(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: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.51a
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib64 -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
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 | dl, exec, shell_exec, system, passthru, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, pfsockopen, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid | dl, exec, shell_exec, system, passthru, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, pfsockopen, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
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 | 60 | 60
upload_max_filesize | 50M | 50M
post_max_size | 8M | 8M
==========================
Page generated in 1.47 seconds - 46 queries in 1.434 seconds - Album set : ; Meta set: ;



This is the error received:

Quote500 Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@the-medusa-cascade.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
WebServerX Server at www.the-medusa-cascade.com Port 80

One of the folders I can't batch add from is: sja series 2 caps/207
One of the folders I can batch add from is: appearances/billie piper/south bank show awards 2006

Also it keeps saying it's version 1.4.18 when I know I've updated it to 1.4.19.

Any help would be greatly appreciated. Thanks so much!

Joachim Müller

*singing* read the docs - shalala - section "Asking for support on upload issues" - shoobeedoo - thanks *stops singing*

snowflakie06

Quote from: Joachim Müller on December 01, 2008, 07:36:48 AM
*singing* read the docs - shalala - section "Asking for support on upload issues" - shoobeedoo - thanks *stops singing*

Thanks for telling me to do that, I was just so flustered last night I wasn't thinking properly  :-[

The gallery is at the-medusa-cascade.com/gallery

The test user is test with the password test

phill104

Upgrade to the latest release first. It might even fix your problem.
It is a mistake to think you can solve any major problems just with potatoes.

Joachim Müller

http uploads work as expected (see http://the-medusa-cascade.com/gallery/displayimage.php?pos=-110696).
Quote from: snowflakie06 on December 01, 2008, 07:07:19 AM
One of the folders I can't batch add from is: sja series 2 caps/207
Avoid spaces and special chars in folder names!

snowflakie06

Quote from: Joachim Müller on December 01, 2008, 07:46:21 PM
http uploads work as expected (see http://the-medusa-cascade.com/gallery/displayimage.php?pos=-110696).Avoid spaces and special chars in folder names!

I have other folders that have spaces on this website and others that work perfectly though  ???

Quote from: Phill Luckhurst on December 01, 2008, 07:11:01 PM
Upgrade to the latest release first. It might even fix your problem.

I've tried but for some reason it doesn't register it. I will keep trying though, maybe I did something wrong last night.

Joachim Müller

Quote from: snowflakie06 on December 01, 2008, 08:57:40 PM
I've tried but for some reason it doesn't register it.
What do you mean that "it doesn't register"? Did you follow the advice from the upgrade section of the docs to a tee. Make sure that you're not looking at a cached copy of your page.

snowflakie06

Quote from: Joachim Müller on December 01, 2008, 09:18:28 PM
What do you mean that "it doesn't register"? Did you follow the advice from the upgrade section of the docs to a tee. Make sure that you're not looking at a cached copy of your page.

I upload all the files, go to update.php and it says 'ok' next to a few files and 'already done' to the rest so it looks like everything's fine but when I go to version check, it says:  You have currently installed: 1.4.18

snowflakie06

Quote from: snowflakie06 on December 01, 2008, 09:51:37 PM
I upload all the files, go to update.php and it says 'ok' next to a few files and 'already done' to the rest so it looks like everything's fine but when I go to version check, it says:  You have currently installed: 1.4.18

I just tested it in a different folder and it looks like when I try to install the latest Stramm Modpack it switches it back to 1.4.18 from 1.4.19

snowflakie06

Thanks so much to everyone who has tried to help me figure this out but I think I'm just going to reinstall coppermine and start from scratch.

phill104

I've just looked at your gallery and it looks like you are running 1.4.19 now. Probably you cache showing the wrong version but it does sound like a couple of files have not uploaded properly. What ftp app did you use to upgrade?

Re-installing compared to upgrading will make only a minor difference in the files you replace (2 system files and your albums folder) so it probably will not improve the situation. Better to try an work out what is going on rather than undo all the work you have already done (I like the header by the way).

Did it work on your old server? Are there any differences between this server and your old one?
It is a mistake to think you can solve any major problems just with potatoes.

snowflakie06

Quote from: Phill Luckhurst on December 02, 2008, 12:05:32 AM
I've just looked at your gallery and it looks like you are running 1.4.19 now. Probably you cache showing the wrong version but it does sound like a couple of files have not uploaded properly. What ftp app did you use to upgrade?

Re-installing compared to upgrading will make only a minor difference in the files you replace (2 system files and your albums folder) so it probably will not improve the situation. Better to try an work out what is going on rather than undo all the work you have already done (I like the header by the way).

Did it work on your old server? Are there any differences between this server and your old one?


I used SmartFTP first and then tried FileZilla but then I went back to SmartFTP and just put it back to 1.4.18 because that's what the Stramm modpack kept putting it back to when I updated that.

It's weird though because it's working perfectly in the new folder I'm using to reinstall it, I can upload from every file just like I could on the old server.

I'm not sure about any differences between the servers because I had to transfer my site when my old host (fan-sites.org) decided it could no longer host it due to space issues and bought hosting with surpasshosting.com

Fabricio Ferrero

Are you installing the modpack v1 for CPG 1.4.19? or an older version? Please, go to:
Download modpack v1 for CPG 1.4.19 and download a fresh copy of it. Just 2 month ago have been modified some files of the modpack.
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

snowflakie06

Quote from: Fabricio Ferrero on December 02, 2008, 03:02:22 AM
Are you installing the modpack v1 for CPG 1.4.19? or an older version? Please, go to:
Download modpack v1 for CPG 1.4.19 and download a fresh copy of it. Just 2 month ago have been modified some files of the modpack.

Thanks, I didn't have the fix for the modpack, that's why the version wasn't updating. :)

Fabricio Ferrero

Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

snowflakie06

I'm still unable to batch add files. Please help

Fabricio Ferrero

So do as suggested:

Quote from: Joachim Müller on December 01, 2008, 07:36:48 AM
*singing* read the docs - shalala - section "Asking for support on upload issues" - shoobeedoo - thanks *stops singing*
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

phill104

Have you checked the ownership and permissions for the folders you cannot upload to?

Did you create the folders you can upload to after you installed coppermine and the ones you cannot were copied accross from your old install (or vice versa).

As you can upload to some folders and not others it does sound like permissions or ownership. It may be that some of the folders are somehow associated with a different user hence the errors.
It is a mistake to think you can solve any major problems just with potatoes.

snowflakie06

Quote from: Phill Luckhurst on December 04, 2008, 03:22:25 PM
Have you checked the ownership and permissions for the folders you cannot upload to?

Did you create the folders you can upload to after you installed coppermine and the ones you cannot were copied accross from your old install (or vice versa).

As you can upload to some folders and not others it does sound like permissions or ownership. It may be that some of the folders are somehow associated with a different user hence the errors.

The ones that I could and the ones that I couldn't upload were both uploaded prior to moving the site.

Joachim Müller

Then do as Phill Suggested: permissions and ownership! If you can't figure this out on your own, ask your webhost for support.