Closed (fixed)
Project:
Brilliant Gallery
Version:
5.x-4.1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2008 at 00:13 UTC
Updated:
21 Jan 2009 at 17:20 UTC
Seeing only a dark area instead of the thumbails and pictures. The Apache log is showing the following error:
PHP Notice: Trying to get property of non-object in {/my/site/root}/sites/all/modules/brilliant_gallery/image.php on line 82, referer: http://mysite/en/content/album1
Will look at the code to see what the problem is.
Platform Info:
- Drupal 5.10 (same problem with 5.6, 5.9)
- Linux: Suse Linux 10.1
- Apache 2.2
- PHP 5.1
Comments
Comment #1
prodosh commentedCommenting out line 82:
$userId = $user->uid;fixes the problem.(If you are not familiar with php, insert a # before the line of code)
Does this line of code serve a necessary function or should it not to be there?
Vacillando, could you please fix it in your next release - that will help an awful lot of folks like me who use Brilliant Gallery a lot, because it simply is brilliant and easy to use.
Comment #2
vacilando commentedThanks, pban02 -- indeed, that line was not needed anymore and I've commented it out now. See the upcoming dev release.