i have set the "Default total file size per user: " to 100 mb (admin/settings/uploads)
then a user creates the gallery - everything works
when this user wants to add images i get an error:
"your disk quota of 0 kb was achieved"
currently my gallery content type is under modration (even if it is not under moderation i get the same error)
regards
gerhard buschka

Comments

Road Kill’s picture

Yip same problem here.

jcmc’s picture

Status:Active» Needs review
StatusFileSize
new1.44 KB

Thanks,
please patch and give feedback.

sidibaba’s picture

Hi,

I had the same issue and after applying the patch ... the issue was resolved.

Thank you :)

jcmc’s picture

Status:Needs review» Fixed

thanks

Michael Ware’s picture

Status:Fixed» Needs work

Hello,
Downloaded Gallery Assist 11-09-10 and recommended modules. Installed and created first gallery. when I try to add photos, I get
"Your disk quota of 10485760000 KB was achieved."
I've applied the patch but it didn't solve the problem.
Any ideas what could be causing this?
thanks.

jcmc’s picture

Hello people,

@Michael Ware yes, I applied the patch and obtain the same result. Why? the comparison order is inverted.

here in the patch with the right order.

please give feedback

Thanks in advance
Juan Carlos

jcmc’s picture

Status:Needs work» Needs review
Michael Ware’s picture

Status:Needs review» Fixed

applied the revised patch and it Worked. Tears of joy are streaming down my cheeks. Thanks so much for the help Juan Carlos.

aiphes’s picture

Status:Fixed» Active

same issue for me..not fixed by the patch..

Your disk quota of 52428800 KB was achieved.

Happened after setting up the assignments node limit for upload..by content type..

axa-xa-xa’s picture

Change the line 1018 in file /modules/gallery_assist/gallery_assist.module to

if ($node->gallconf[$node->type]['user_size'] <= $used_space) {

aiphes’s picture

with keeping the patch or on the original code ?

EDIT: seem to be fixed in 1.18 by replacement of the line 1018..message desappear, upload form right in place but i cant add images with contrib account..go to see permissions..strange

axa-xa-xa’s picture

with keeping the patch or on the original code ? - original code

In the original code ...]['user_size'] >= $used_space)...
Need to change the >= to <=

aiphes’s picture

Version:6.x-1.16» 6.x-1.8

i've a tsrange thing :

<?php
 
if ($node->gallconf[$node->type]['user_size'] <= $used_space) {
   
$used_space = file_space_used($node->uid);
    if (
$node->gallconf[$node->type]['user_size'] >= $used_space) {
     
$display_field = FALSE;
     
$limit_message = t('<div id="ga-amount-achaived" class="message warning">'. t('Your disk quota of @quota KB was achieved.', array('@quota' => $node->gallconf[$node->type]['user_size'])) .'</div>');
    }
?>

which is right ?

axa-xa-xa’s picture

So right

<?php
 
if ($node->gallconf[$node->type]['user_size'] > 0) {
   
$used_space = file_space_used($node->uid);
    if (
$node->gallconf[$node->type]['user_size'] <= $used_space) {
     
$display_field = FALSE;
     
$limit_message = t('<div id="ga-amount-achaived" class="message warning">'. t('Your disk quota of @quota KB was achieved.', array('@quota' => $node->gallconf[$node->type]['user_size'])) .'</div>');
    }
  }
?>
aiphes’s picture

ok patch applied, but issue #11 still there...

jcmc’s picture

Ufff, I found the causes. One of the validators by GA was wrong. I corrected the code and tested some times with positive results. Please apply and test the fix.
Here a link to the patch.

Regards and thanks
Juan Carlos

jcmc’s picture

Status:Active» Needs review
nolmt60243’s picture

Title:disk quota of 0 kb reached» disk quota of 10485760 kb reached

I believe I put in the necessary patches correctly, but am still getting the disk quota error.

Here is line 1017

    if ($node->gallconf[$node->type]['user_size'] > 0) {
    $used_space = file_space_used($node->uid);
    if ($node->gallconf[$node->type]['user_size'] <= $used_space) {
      $display_field = FALSE;
      $limit_message = t('<div id="ga-amount-achaived" class="message warning">'. t('Your disk quota of @quota KB was achieved.', array('@quota' => $node->gallconf[$node->type]['user_size'])) .'</div>');
}
  }

Here is line 2552

            $arch_validators = array(
              'file_validate_extensions' => array('zip'),
              'file_validate_size' => array($node->gallconf[$node->type]['file_size'], $node->gallconf[$node->type]['user_size']),
            );

I am at a loss with how to get this to work.

aiphes’s picture

StatusFileSize
new198.91 KB

here my patched file which work good

poli’s picture

Version:6.x-1.8» 6.x-1.18
Priority:Normal» Major

hello,
good work.
I also tested after the patch bar "disk quota of kb 10485760" is still present in the node edit form gallery.
Unable to download photos.
nolmt60243 have you found a solution since?
Someone to help please.
thank you in advance

poli’s picture

jcmc’s picture

Hello poli,

Read http://drupal.org/node/1008632 and http://drupal.org/node/958224.

There you will find two posts with the same or similar issue as here and there they are categorized as fixed.
Please check and give me feedback.

A happy new year, regards and thanks in advance
Juan Carlos

konrad1811’s picture

I think basic functionality is not working...

Galley Assist works only for admin

as I created another user he cant create gallery after editing post (however it works for admin)

when admin edit that user post he sees "Your disk quota of 8388608 KB was achieved."

checked permissions and still regular user cant create gallery :/

can someone please give some summary to this problem how to solve it?

I've got lost in this answears...

deanflory’s picture

Status:Needs review» Needs work

I'm experiencing it here as User-1 admin as well where I get the error when editing an event page:

Gallery Assist (GA): Add and edit items (0)
Click Update to upload a new file or to save your changes in this section.
Your disk quota of 2097152000 KB was achieved.

I've only just begun uploading a few test files and there's no way I'm even close to that limit, even with ImageCache mutiple variation files generated.

I checked the other 2 articles Juan linked to and ultimately neither of those seemed to fix everyone's issues so I haven't yet tried any of those patches.

This is a pretty major bug in my opinion. Sorry I don't have the coder skills to help with the issue, but until fixed it makes this module useless to me.

Subscribing.

My "Assignments Settings Overview" if it helps:

Thumbnail upload size: 62
Preview upload sizev: 336
Items per row: 7
Thumbnails per row for the teaser: 3
Rows per page: 10
Thumbnail size: 62
Thumbnail size plus: 0
Preview size: 92
Item margin: 12
Item padding: 6
Item border: 1
Item border color: #56a1d5
Show backlink: 1
Show toggle: 1
Show title: 1
Gallery container align setting in the teaser view: left
Gallery container align setting in the page view: center
Gallery container float setting in the teaser view: left
Gallery container float setting in the page view: right
Show in block: 1
Position toggle: 0
Title substr: 16
Pager symbol: 1
Pager layout: default
Pager position: bottom
Pager visibles: 7
Force image height:
Show download link: 1
comments:
use_mbImgNav:
use_galleria:
Hide Gallery container in the teaser view: 0
Item effect:
Maximal items per gallery: 280
Maximal Items in the form: 10
Allowed maximale file size: 1258291200
Allowed maximale memory size from the user: 2097152000
Resolution restriction: 1920x1920
Allowed file extensions: jpg jpeg gif png
Public status: 0
Admin public status:
Pager thumbnail height: 92
Pager thumbnail height active: 100
Pager preset id: 4
Allow users to overwrite the layout settings: 1
Allow users to overwrite the common settings: 1
Allow users to overwrite the hide teaser setting: 1
Allow users to overwrite the display download link setting: 1
Allow users to overwrite the container format setting: 1
Allow users to overwrite the gallery container weight setting: 1
Allow users to overwrite the show_in_homepage_block setting: 1
Allow users to overwrite the gallery_public_status setting: 1
Allow users to overwrite the show_titles setting: 1
Allow users to overwrite the show_in_userprofile setting: 1
Allow users to overwrite the gallery_items_shadow setting: 1
Disable the margin-top css format:
Show gallery in the user profile view: 1
Show layout: grid
Gallery container weight: -50
DB-Order field: a.weight
Use graphic links: 1
Pager format: 0
Gallery call type: 1
Item titles type: 2
pager_align: center
Pager preset name: Preview
build_aliases: 1

adpo’s picture

For the Allowed maximale memory size from the user type 0. It's under Gallery Assist - Assignments - Default total file size per user: . This should remove this limit.