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: [Closed]: Memory used  (Read 3900 times)

0 Members and 1 Guest are viewing this topic.

KillerZ

  • Guest
[Closed]: Memory used
« on: November 23, 2008, 11:10:36 am »

Hi I read through some of the docs and changed my php.ini to allow 20mb of memory usage and I still get the fatal error for exceding memory when trying to upload 1 pic. I am pretty sure that Image Magick is on my server but I can't figure out the right path yet until my host gets back to me. My question is will this even solve the problem or not? I don't want to have to resize the pics before because I wanted to be able to trade pictures with family so they could use them. Resizing them will only make them ugly to ever print out at normal size won't it? Let me know if the Image Magick will help or not. Thanks.


If there is something that I missed in the massive pile of docs then point me there and I will be happy to read. ;)
« Last Edit: November 25, 2008, 07:48:13 am by Joachim Müller »
Logged

KillerZ

  • Guest
Re: Memory used
« Reply #1 on: November 23, 2008, 11:23:22 am »

I figured out the path to ImageMagick but now when I click continue after uploading and go to the file name and description page the thumbnail doesn't show and after filling in info I get one line that says The previous file could not be placed. and another right below it that says.You have successfully placed all the files. Any info would be great. I know in the docs that it says something about asking for support with image magick but I really wanted to get this going and figure there isn't too many other places to go for help with this. Thanks.
Logged

KillerZ

  • Guest
Re: Memory used
« Reply #2 on: November 23, 2008, 11:32:03 am »

If someone that uses Image Magick would be so kind as to give me a copy of what you use for the command line options that would be great. I have been reading through image magicks site for a while and am more lost than before.
Logged

KillerZ

  • Guest
Re: Memory used
« Reply #3 on: November 23, 2008, 11:44:22 am »

I went to my other site which also uses smf but I use smf gallery lite there, which I believe uses gd also. I was able to upload the pics there full size with no problem. Both of these sites share a /home directory on the same server but are in different directories within the home one. If that makes a difference then let me know so I can straighten it out. Sorry to make so many replies but no edit function. :(
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Memory used
« Reply #4 on: November 23, 2008, 02:46:54 pm »

Logged

KillerZ

  • Guest
Re: Memory used
« Reply #5 on: November 24, 2008, 05:04:17 am »

Ok I switched back to GD and did everything from the link you posted. I still get this error when trying to upload. Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 11424 bytes) in /pathtofiles/forum/gallery/include/picmgmt.inc.php on line 262


Here is the info from the debug box. If one of the settings is just wrong feel free to let me know. Thanks. The size of the pics are 2856x2142 and are around 1mb each with some up to 2mb.

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

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

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [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] => Administrator
    [upload_form_config] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 101
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg14x_filetypes; (0s)
    [1] => select * from cpg14x_plugins order by priority asc; (0s)
    [2] => SELECT * FROM cpg14x_bridge (0s)
    [3] => 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 (101,104) (0.003s)
    [4] => SELECT group_name FROM  cpg14x_usergroups WHERE group_id= 101 (0s)
    [5] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 1 (0s)
    [6] => DELETE FROM cpg14x_banned WHERE expiry < '2008-11-23 21:56:25' (0.001s)
    [7] => SELECT * FROM cpg14x_banned WHERE (ip_addr='74.44.219.74' OR ip_addr='74.44.219.74' OR user_id=1) AND brute_force=0 (0s)
    [8] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = ''  ORDER BY pos (0s)
    [9] => SELECT aid FROM cpg14x_albums as a WHERE category>=10000 (0s)
    [10] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0.001s)
    [11] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = '1'  ORDER BY pos (0s)
    [12] => SELECT aid FROM cpg14x_albums as a WHERE category = '0' (0s)
    [13] => SELECT count(*) FROM cpg14x_albums as a WHERE 1 (0s)
    [14] => SELECT count(*) FROM cpg14x_pictures as p LEFT JOIN cpg14x_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
    [15] => 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 (0.001s)
    [16] => SELECT count(*) FROM cpg14x_categories WHERE 1 (0.002s)
    [17] => SELECT sum(hits) FROM cpg14x_pictures as p LEFT JOIN cpg14x_albums as a ON p.aid=a.aid WHERE 1 (0.001s)
    [18] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' (0.005s)
    [19] => SELECT count(*) FROM cpg14x_albums as a WHERE category = '0' (0s)
    [20] => SELECT * FROM cpg14x_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8 (0.001s)
    [21] => SELECT COUNT(*) from cpg14x_pictures WHERE approved = 'YES'  (0s)
    [22] => SELECT * FROM cpg14x_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,8 (0s)
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.4.7 - OK
------------------
mySQL version: 5.0.51a-log
------------------
Coppermine version: 1.4.19(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.11
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.2
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 | no value | no value
file_uploads | On | On
include_path | .:/usr/local/lib/php-4.4.7/lib/php | .:/usr/local/lib/php-4.4.7/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | wwwuser@cgi.yourhostingaccount.com | wwwuser@cgi.yourhostingaccount.com
sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
SMTP | mail.yourhostingaccount.com | mail.yourhostingaccount.com
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 | 10M | 10M
post_max_size | 11M | 11M
==========================
Page generated in 0.214 seconds - 23 queries in 0.015 seconds - Album set : ; Meta set: ;
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Memory used
« Reply #6 on: November 24, 2008, 06:31:15 pm »

Here is the info from the debug box.
Who asked for that? In fact you did quite the opposite of what I asked you to do. Do as I suggested: read up the documentation, particularly the section I refered to above and do exactly as suggested there. It's no coincidence that I have written the word "exactly" in bold. ::)
Logged

KillerZ

  • Guest
Re: Memory used
« Reply #7 on: November 25, 2008, 04:20:43 am »

Sorry that I didn't see the part that said not to post the debug info unless asked. I have some reservations about giving a test account out in a forum is the reason I didn't do that. I really don't need to come here and be treated this way at all. If you don't want to offer support to the public, and by public I mean people that don't understand or have the time to read through your massive list of docs.(which is nicely made and very complete) Then you shouldn't release this for public use. I made a test account and they saw nothing different when uploading than I did. So other than that and the debug info I did follow your instructions, not the exact opposite. Thank you for the support thus far but I think that this software isn't for me. I don't know much but I know when to say no, and when to make a change. Thanks again for the help.
Logged

KillerZ

  • Guest
Re: Memory used
« Reply #8 on: November 25, 2008, 04:22:27 am »

Please remove my account from this site. Thanks.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Memory used
« Reply #9 on: November 25, 2008, 07:48:00 am »

Did as you suggested: marked thread as "closed" and removed your account. I'm not going to argue with you about your perception of support...
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.