Permissions Issues Permissions Issues
 

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

Permissions Issues

Started by usafirepixx, November 26, 2006, 02:44:33 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

usafirepixx

All of a sudden I am getting this after going into the Batch Add Files option..

Warning: the script can't write in this directory, you need to change its mode to 755 or 777 before trying to add the files !

I went and confirmed with all the albums that need to have the permissions set like this (/include and all the ones in /albums that need it) that the permissions are set that way.

Just to make sure I went ahead and changed em to 755 and then back to 777 with the same result..

I even went into the Config option and reset them to the "factory defaults" with the same result..

Any thoughts/suggestions short of a total re-install?

lamama

the only folders that need 777 during batch add are the albums folder.
You have to set them all to 777 (only on some servers 755 will work).

did you take a look at who owns the album folder you're having trouble with?
when you're on your own server and you have created an folder as root (for example), it won't work. you'll have to 'chown' it.

usafirepixx

Quote from: lamama on November 26, 2006, 03:31:22 AM
did you take a look at who owns the album folder you're having trouble with?
when you're on your own server and you have created an folder as root (for example), it won't work. you'll have to 'chown' it.

I'm afraid you have lost me with this reference to who owns this folder im having trouble with.. It does not even let me get that far before this statement appears..and it occurs with every folder..

I go through all three of the directory selection screens, and then when the screen comes up to select a album it is along the top..

Once I try to go the album and where it displays the results it says "click for details or reload".. Once I click on it I get another screen with this result and I cant find any reference anywhere to this "Error executing ImageMagick - Return value: 1"

lamama

ImageMagic did work before? Or did you accidently switched to it from GD2?

usafirepixx

Quote from: lamama on November 26, 2006, 04:08:41 AM
ImageMagic did work before? Or did you accidently switched to it from GD2?

Everything was working perfectly until like 3 days ago    :'(

lamama

You know about ImageMagic and GD2?

usafirepixx

Quote from: lamama on November 26, 2006, 04:12:18 AM
You know about ImageMagic and GD2?

No, I wish I did so I could solve this on my own LoL

lamama

Im just asking because your (second) error message looks like it's related to imagemagic. If you never installed imagemagic, i guess you had GD2 before (it comes with php).

So just try the following:
1) Config page
2) search for "Files and thumbnails advanced settings"
3) search for "Method for resizing images"
4) set it to "GD version 2.x"
5) Save settings.

Try batch add and hopefully be happy.

this is kind of wild guessing, I don't know if the chmod error you experienced could be a side effect of those kind of misconfiguration.

usafirepixx

#8
Quote from: lamama on November 26, 2006, 04:22:44 AM
Im just asking because your (second) error message looks like it's related to imagemagic. If you never installed imagemagic, i guess you had GD2 before (it comes with php).

So just try the following:
1) Config page
2) search for "Files and thumbnails advanced settings"
3) search for "Method for resizing images"
4) set it to "GD version 2.x"
5) Save settings.

Try batch add and hopefully be happy.

I tried selecting both 2.x and 1.x with the same result as soon as you mentioned the possibility of having switched from GD with the same result..

lamama

Quoteas soon as you mentioned the possibility of having switched from GD
you should have said it before  :)

Ok, so maybe another one may come up with better ideas.
Anyway: a link to your gallery may be helpful and perhaps a test account too.

usafirepixx

Yeah I guess a link to it would help huh LoL..

http://usafirepix.net

I setup a account on the site using test and test...

Really appreciate you trying to helpme figure this out..

Sami

user/pass didn't work for me !
Please do exactly as suggested under Upload troubleshooting documentation
‍I don't answer to PM with support question
Please post your issue to related board

usafirepixx

Quote from: Sami on November 26, 2006, 06:55:49 AM
user/pass didn't work for me !
Please do exactly as suggested under Upload troubleshooting documentation

Not sure why the user/pass didnt work its still there lol.. Using that documentation (and like most I didnt read all of it lol) heres the return I got..

Error executing ImageMagick - Return value: 1

Cmd line :
convert -quality 80 -antialias -geometry 100x75 'albums/upload/usfs/SantaFeHotshots.jpg' 'albums/upload/usfs/thumb_SantaFeHotshots.jpg'


The convert program said:
convert: unable to open image `albums/upload/usfs/thumb_SantaFeHotshots.jpg': Permission denied.

usafirepixx

And here is the debug info:

USER:
------------------
Array
(
    [ID] => bcc76d9587df0d1ade42d4c79b86884a
    [am] => 1
    [lang] => english
    [lap] => 5
    [liv] => Array
        (
           
  • => 134
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_name] => kf6yvd
        [groups] => Array
            (
               
  • => 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] => 1
        [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] => 1
        [group_name] => Administrators
        [upload_form_config] => 3
        [group_quota] => 0
        [can_see_all_albums] => 1
        [group_id] => 1
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg146_filetypes; (0s)
        [1] => select * from cpg146_plugins order by priority asc; (0s)
        [2] => delete from `***`.cpg146_sessions where time<1164548288 and remember=0; (0s)
        [3] => delete from `***`.cpg146_sessions where time<1163342288; (0s)
        [4] => select user_id from `***`.cpg146_sessions where session_id=md5("76fb946d3d1e04801231b21fba27c4a25cd13bfbb19e34528dcbd4ffc18ee5ee"); (0s)
        [5] => select user_id as id, user_password as password from `***`.cpg146_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 `***`.cpg146_users AS u INNER JOIN `***`.cpg146_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `***`.cpg146_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 cpg146_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg146_usergroups WHERE group_id= 1 (0s)
        [10] => update `***`.cpg146_sessions set time='1164551888' where session_id=md5('76fb946d3d1e04801231b21fba27c4a25cd13bfbb19e34528dcbd4ffc18ee5ee'); (0s)
        [11] => SELECT user_favpics FROM cpg146_favpics WHERE user_id = 1 (0s)
        [12] => DELETE FROM cpg146_banned WHERE expiry < '2006-11-26 14:38:08' (0s)
        [13] => SELECT * FROM cpg146_banned WHERE (ip_addr='69.254.145.55' OR ip_addr='69.254.145.55' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT aid, title FROM cpg146_albums WHERE 1 (0.001s)
        [15] => SELECT COUNT(*) FROM cpg146_pictures WHERE approved = 'NO' (0.001s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [insert] => 1
    )

    ==========================
    POST :
    ------------------
    Array
    (
        [d0000] => 175
        [pics] => Array
            (
               
  • => i0000
            )

        [album_lb_id_i0000] => d0000
        [picfile_i0000] => dXBsb2FkL3VzZnMvU2FudGFGZUhvdHNob3RzLmpwZw==
        [insert] => Insert selected files
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.4.4 - OK
    ------------------
    mySQL version: 4.1.21-standard
    ------------------
    Coppermine version: 1.4.6(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.21
    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.2.1.2
    Linked Version 1.2.1.2
    ==========================
    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 | /home/usafirep:/usr/lib/php:/usr/local/lib/php:/tmp | 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 0.066 seconds - 16 queries in 0.002 seconds - Album set : ; Meta set: ;

Sami

Use GD instead of imagemagick
‍I don't answer to PM with support question
Please post your issue to related board

usafirepixx

Quote from: Sami on November 26, 2006, 05:04:29 PM
Use GD instead of imagemagick

OK I switched to GD and left the other settings in place you mentioned earlier and here was the error I recieved that time..

Unable to create thumbnail or reduced size image.

Sami

‍I don't answer to PM with support question
Please post your issue to related board

usafirepixx

Quote from: Sami on November 26, 2006, 08:33:05 PM
upload process working fine ...
here is a test :
http://usafirepix.net/displayimage.php?pos=-1584

And that was done with the batch add utility? That is where the issue is coming in at..

Sami

No it was http upload , but usually batch add should works when http is working
Can you post a deep link to files that you trying to batch add?
‍I don't answer to PM with support question
Please post your issue to related board

usafirepixx

Sure well use this one as an example..

http://www.usafirepix.net/albums/upload/usfs/SantaFeHotshots.jpg

I have already HTTP uploaded them cuz I needed to get these files up for some departments. I had thought that when HTTP was working Batch should too so when I first had the Batch issue I tried HTTP just to see if it was still functioning.