Closed (fixed)
Project:
Node Gallery
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Sep 2009 at 22:44 UTC
Updated:
3 Jan 2011 at 14:30 UTC
Stepping through the code I noticed that the function file_validate_number gets called without a max_number parameter, therefore failing for any one but the administrator user.
Perhaps this is my configuration issue. However, I have updated the code quickly to:
if (isset($max_number) && $current_number >= $max_number) { // Updated *AM 22-SEP-2009 (Line 525)
Comments
Comment #1
kmontyComment #2
kmontyYour solution is a temporary work around but not a long-term problem solver. One thing I noticed:
The function is
function file_validate_number($file, $max_number) {yet the function is called as'file_validate_number' => array($limits['max_number']),. It seems that we are not passing the $file var. Additionally, the function itself never uses the $file var, so maybe we can just remove $file, and see if that solves the issue.function file_validate_number($max_number) {. Did you try switching line 547 to that?Comment #3
kmontyComment #4
kmontyComment #5
kmontyMarked #586986: Setting "Total file number per user" doesn't work as a duplicate
Comment #6
kmontyMarked a lengthy thread as a dup #488676: Only admin can upload images
Comment #7
kmontyIs anyone still having this issue? I maybe close this issue if no one can verify the problem continues to exist.
Comment #8
dddave commentedGuess this is fixed as nobody complained for months.
Comment #10
moosh101 commentedHi,
I have just downloaded the latest version 2 release (the stable beta) and I am also experiencing this issue, that is, only the admin can upload images. I have performed a permission rewrite and assigned the appropriate permissions for the authenticated user role, but still no go.
I am using the latest versions of all required and associated modules, Drupal 6.17 and PHP 5.3.1.
I sincerely appreciate any assistance you can provide.
Many thanks for your time,
Shane.
Comment #11
hexblot commentedHad the same problem, the following solved it for me (Drupal 6.17, PHP 5.1.6):
* Go to /admin/settings/node_gallery/list and edit your relationship
* you don't need to change anything on the first screen, so click next
* on the second screen, make gallery directory non-blank ( e.g. add gallery/%gid )
Clear cache, enjoy :)
Hope it helps some people.
Comment #12
dddave commentedNo more reports, fix in #11 and any new user should start with NG3 now anyways.