Closed (fixed)
Project:
Brilliant Gallery
Version:
5.x-3.1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
7 May 2008 at 22:50 UTC
Updated:
10 Apr 2010 at 10:10 UTC
Jump to comment: Most recent file
I follow all procedures and the images are displayed but on the is a warning like this:
warning: Missing argument 8 for render_brilliant_gallery(), called in C:\xampp\htdocs\drupal\sites\all\Modules\brilliant_gallery-5.x-3.1\brilliant_gallery\brilliant_gallery.module on line 59 and defined in C:\xampp\htdocs\drupal\sites\all\Modules\brilliant_gallery-5.x-3.1\brilliant_gallery\brilliant_gallery.module on line 219.
hope it will be solved quckly, thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | brilliant_gallery-5.x.3.1-render_brilliant_gallery-warning.patch | 935 bytes | meichr |
Comments
Comment #1
ziadrupal commentedthis happened on unix hosting too WOW
warning: Missing argument 8 for render_brilliant_gallery(), called in /home/sonicspe/public_html/site/sites/all/modules/brilliant_gallery/brilliant_gallery.module on line 59 and defined in /home/sonicspe/public_html/site/sites/all/modules/brilliant_gallery/brilliant_gallery.module on line 219.
Comment #2
meichr commentedHi ziadrupal,
I can confirm the warning you mentioned: it occurs when you call the standard menu of brilliant gallery, i.e. http://add_your_domain_here/brilliant_gallery/, in your browser. The reason for this warning is, that in the function render_brilliant_gallery all but the 8th parameter have a default value defined (line 219) and the function is called without any parameter (line 59). PHP then prints this warning. An easy solution would be to define a default value also for the 8th parameter on line 219, best default value I think would be yesnocaption = ''.
To help you with a quick correction, I have enclosed a patch by which you can correct the version 5.x-3.1 of the module. Download the the patch file into the directory brilliant_gallery and use the unix command "patch < brilliant_gallery-5.x-3.1-render_brilliant_gallery-warning.patch" to correct the module file. Please let me know here if you have problems with the patch.
I suggest to include this correction in the next version of the module.
This should help you for the time being,
regards,
Christian.
Comment #3
meichr commentedJust changing the status.
reg, Christian.
Comment #4
bluenightdk commentedHi Christian!
Seems like a nice solution.
What do I do if I'm working on a wamp server on localhost, and furthermore is a newbie???? :-)
Regards, Frank
Comment #5
meichr commentedThere is a utility allowing to patch on Windows systems. Please look at
http://gnuwin32.sourceforge.net/packages/patch.htm
Chris.
Comment #6
meichr commentedThis bug fix has been applied to the release 5.x-4.4 at the latest. Thanks a lot.