Author Topic: [MOD]-BETA Whole/part category download  (Read 77986 times)

0 Members and 1 Guest are viewing this topic.

Offline khan

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: [MOD]-BETA Whole/part category download
« Reply #60 on: October 17, 2010, 11:29:04 AM »
thnx @ x23piracy

Offline khan

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: [MOD]-BETA Whole/part category download
« Reply #61 on: October 26, 2010, 08:52:30 PM »
Hi,

MOD is working perfect but on few categories which has more images i get this error
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 11373269 bytes) in /home/xxx/public_html/includes/zip.php on line 85

Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
Re: [MOD]-BETA Whole/part category download
« Reply #62 on: October 26, 2010, 10:26:01 PM »
Hi,

MOD is working perfect but on few categories which has more images i get this error
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 11373269 bytes) in /home/xxx/public_html/includes/zip.php on line 85

Hi,

the server needs a big amount of memory if there are much images to build a archiv from.
About how much pictures with what size we are talking about?


Greetz X23

Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--

Offline khan

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: [MOD]-BETA Whole/part category download
« Reply #63 on: October 27, 2010, 12:57:02 AM »
Hi X23,

well the category i am facing this error has 83 pictures, 33+ MB of size.


Best Wishes

Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
Re: [MOD]-BETA Whole/part category download
« Reply #64 on: October 27, 2010, 01:13:17 AM »
Hi X23,

well the category i am facing this error has 83 pictures, 33+ MB of size.


Best Wishes

Hi,

try to increase your php memory limit to 48MB, 64MB or more.

Allowed memory size of 33554432 (bytes) / 1024000 (bytes = 1MB) = 32,768 MB
tried to allocate 11373269 / 1024000 = 11,107 MB needed additional memory in that case

You have to do this on your server, edit php.ini:
(XX for the number of MB 8,16,24,32,48,64...)

Code: [Select]
memory_limit = XXM
restart usually apache...

if your server is confixx based login as admin and goto:
settings > httpd special and set it up

if you have no root access ask your provider.


Do you have compression enabled? maybe it's just an idea, try to turn it off and see what happens.

If all that fails limitate the pictures per page and use this mod for downloading visible page images only.
(just a workaround, first case is to get more memory available)


Greetz X23


Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--

Offline henary

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: [MOD]-BETA Whole/part category download
« Reply #65 on: December 08, 2010, 11:32:24 AM »
Hallo,
habe diesen Mod geändert, so daß der "big"- bzw. Downloadordner verwendet wird, sofern die Datei vorhanden. Dazu ist zu ändern:

Code: [Select]
       $file_path = MEDIA_PATH."/".$image_row['cat_id']."/".$image_row['image_media_file'];
        $file_name = $image_row['image_media_file'];
zu ersetzen mit:
Code: [Select]
       $file_path = MEDIA_PATH."/".$image_row['cat_id']."/download/".$image_row['image_media_file'];
 if(!file_exists($file_path)){
   $file_path = MEDIA_PATH."/".$image_row['cat_id']."/".$image_row['image_media_file'];
    }
 $file_name = $image_row['image_media_file'];
wobei download mit dem verwendeten Ordner übereinstimmen muß (i.d.R. "big").

Ergänzung:
Wer den MOD zur Sortierung der Images je Kategorie (http://www.4homepages.de/forum/index.php?topic=5026.msg21254#msg21254) verwendet, muß

Code: [Select]
ORDER BY ".$cat_cache[$cat_id]['sort_field']." ".$cat_cache[$cat_id]['sort_order'].", i.image_id ".$config['image_sort']."Verwenden.

MOD funzt mit 1.7.9 unter Beachtung der Änderung
Code: [Select]
$file['file_data'] = $zipfile->send(time().".zip"); perfekt!

Viele Grüße,
Henry