can't upload + whole config menu dead can't upload + whole config menu dead
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

can't upload + whole config menu dead

Started by nomand, December 13, 2006, 09:55:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nomand

Hi
what happened - loged on as admin (i'm the only user of the gallery), went to upload, returned an error (never happened before) "Impossible to move".
what i did - went here, searched. read the manual especially that sais go to your config menu, i went, and shock! the whole confic page is blank, at first splitsecond while its loading, i can see the settings flick by, but then it turns blank, and i can't do anything.
tried - replacing admin.php, didn't fix. asked my host if any corruption occured or any outages or anything, all clear. tried a different browser (i use Maxthon, checked Opera) - same thing.

any clue what is going on, please..

Joachim Müller


nomand

the gallery sits at www.nomand.net/index.php  but the problem occurs only in the admin login. i tried creating another user, as registered as well as creating a new admin, problem is still there..

Joachim Müller

First of all, you should upgrade: you're running cpg1.4.9, while the most recent stable release curretnly is cpg1.4.10.

You might be running into timout issues or issues imposed by your webhost (hardening/security-mod patches). I suggest asking your webhost if they have changed anything like that on the server.

If you have issues uploading, do exactly as suggested in the upload troubleshooting section of the docs.

nomand

i could manage to get into my config panel through Firefox browser, to follow the documentation, now on trying to upload the file it sais:
"Critical error
Destination directory albums/userpics/10001/ is not writable by the script !

File: /home/nomandr/public_html/db_input.php - Line: 331 "
debug report:
USER:
------------------
Array
(
    [ID] => 41b8d5abd014f4e20b169d7e92eae614
    [am] => 1
    [lang] => english
)

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

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 0
    [can_send_ecards] => 0
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 1
    [num_URI_upload] => 0
    [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] => Administrators
    [upload_form_config] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg149_filetypes; (0.001s)
    [1] => select * from cpg149_plugins order by priority asc; (0.001s)
    [2] => delete from `nomandr_studioportgal`.cpg149_sessions where time<1165999437 and remember=0; (0.001s)
    [3] => delete from `nomandr_studioportgal`.cpg149_sessions where time<1164793437; (0s)
    [4] => select user_id from `nomandr_studioportgal`.cpg149_sessions where session_id=md5("1ac3b79340b58377286b40ab8b93d37ee17473ba1d3e94d72de6ab8bd4e74bd1"); (0s)
    [5] => select user_id as id, user_password as password from `nomandr_studioportgal`.cpg149_users where user_id=1 (0.001s)
    [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 `nomandr_studioportgal`.cpg149_users AS u INNER JOIN `nomandr_studioportgal`.cpg149_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
    [7] => SELECT user_group_list FROM `nomandr_studioportgal`.cpg149_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 cpg149_usergroups WHERE group_id in (1) (0.001s)
    [9] => SELECT group_name FROM  cpg149_usergroups WHERE group_id= 1 (0s)
    [10] => update `nomandr_studioportgal`.cpg149_sessions set time='1166003037' where session_id=md5('1ac3b79340b58377286b40ab8b93d37ee17473ba1d3e94d72de6ab8bd4e74bd1'); (0s)
    [11] => SELECT user_favpics FROM cpg149_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg149_banned WHERE expiry < '2006-12-13 09:43:57' (0.001s)
    [13] => SELECT * FROM cpg149_banned WHERE (ip_addr='203.97.77.146' OR ip_addr='203.97.77.146' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT category FROM cpg149_albums WHERE aid='17' (0.001s)
    [15] => SELECT COUNT(*) FROM cpg149_pictures WHERE approved = 'NO' (0.001s)
)

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

==========================
POST :
------------------
Array
(
    [album] => 17
    [MAX_FILE_SIZE] => 3072000
    [title] => Poster
    [caption] => A promo poster for the show.
    [keywords] =>
    [event] => picture
)

==========================
VERSION INFO :
------------------
PHP version: 5.1.6 - OK
------------------
mySQL version: 5.0.27-log
------------------
Coppermine version: 1.4.9(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support:
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.27
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/include/mysql
MYSQL_LIBS -L/usr/local/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.1
Linked Version 1.2.1
==========================
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/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 | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.144 seconds - 16 queries in 0.01 seconds - Album set : ; Meta set:

nomand

i upgraded to 1.4.10, still not working. updated my Maxthon browser, still not working. before this thing, i haven't accessed any ftp or never did any modifications, and it just appeared..   any more ideas what could it be?

nomand

Also just checked the same occurs on a different machine, absolutely with the same error of the config menu and also the Categories menu has buttons shifted out of their places (had that before the upgrade, so not a theme). checked all cmod, set to 755.  i still don't get how can the config menu screw up..
especially that i just upgraded with totally full new files..  went to my host's cpanel, checked the database, all clear.  plese help. i don't know what to do now, i need to fix this as soon as possible. i don't dare running a backup restore from my host, becuase i don't know when this problem has started as i havent tried to upload anything for about a month untill today..

Joachim Müller

Quote from: nomand on December 13, 2006, 10:48:28 AM
to follow the documentation
You have not followed the documentation. You're not suppossed to post debug_output. Please re-read the docs and do exactly as suggested if you want support.

Quote from: nomand on December 13, 2006, 10:48:28 AM
Critical error
Destination directory albums/userpics/10001/ is not writable by the script !
The error message should be quite obvious: the folder "albums" and everything within it needs to be writtable by the script. Set permissions as suggested in the permissions section of the docs. Don't check permissions, but set them. 755 may not be correct for you. Please read and try to understand how permissions work.

nomand

i appologise, i did not quite fully read the red script.  i have now completed the steps and also set up a test user, please have a look. www.nomand.net/index.php    log/pw = testuser/test
concerning the chmod, the gallery has worked perfectly since october on 755. i have now tried 777 and 775, none worked, but currently i have left it on 775. (not only the albums folder, but the ones inside as well)

Joachim Müller

Uploading worked fine for me - see http://www.nomand.ru/displayimage.php?pos=-146
That's probably because the test user has user id 6 and subsequently his uploads go to http://www.nomand.net/albums/userpics/10006/, while your issues are related to another sub-folder of the userpics directory. My suggestion still applies: re-read the permissions section of the docs extra carefully. Don't take things for granted. Make sure that you understand how permissions work. Checking permissions using the properties dialog of your FTP client might not be correct - you have to actually apply permissions. Make sure that permissions are set to propagate to sub-folders and not just apply for the actual parent folder you apply permissions to.

nomand

oh Joy! i haven't even considered the "edit" folder inside the albums folder. i have set the permittions to 775, although before, they were working on 755 for 2 months without any difficulties..  yes, the permissions solved, (why did this happen in the first place? like, i never changed or anything, i asked my host, they didn't change anything on the servers, so why did it have to go from 755 to 775?)
now for the second part of the crash, the confic menu is still not working properly on Maxthon (allways did before) now i have to use mozilla or firefox to access the settings, what could be wrong? (i've set my browser to defaults to check if it works, then upgraded it, doesn't fix that) its not the browser, i've been using it all the way..  its ok for now, should i put it into a new topic?

Joachim Müller

Quote from: nomand on December 14, 2006, 12:56:59 PM
should i put it into a new topic?
yes. Marking this thread as "solved". We have a "one question per thread" policy, that's why.