Forum Index > FlashYourWeb OS Support > MediaBlock New Topic Post Reply
 Undefined index: highlight /drupal/gallery2/mediaBlock.php on line 1057
 |  Printable Version
attilahooper
 January 23 2012 14:12 PM (Read 1320 times)  
Forum Newbie
Newbie

Status: offline

Registered: 11/02/09
Posts: 3

I have this on my frontpage
PHP 5.3.3-7 , Apache/2.2.16 (Debian), mediaBlock 2.1.3

http://james-horvath.com/gallery2/mediaBlock.php?g2_itemId=36mode=dynamic&g2_view=dynamicalbum.RandomAlbum&limit=1&shuffle=1&useThumb=1&column=1

It works but it also throws into my apache log:
Undefined index: highlight ....../drupal/gallery2/mediaBlock.php on line 1057

I tried uninstalling gallery2: New Items and Random Highlight plugins.

Any ideas ? Thx in advance.


 
Profile Email
Quote
suprsidr
 January 23 2012 15:43 PM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

that line should read:

PHP Formatted Code
} else if (isset($g2_itemId) && $item && isset($_REQUEST['highlight']) && $_REQUEST['highlight'] == 1) {


-s


There will always be...
 
Profile Email Website
Quote
attilahooper
 January 23 2012 15:47 PM  
Forum Newbie
Newbie

Status: offline

Registered: 11/02/09
Posts: 3

That's interesting, maybe you released a patch since I DL'ed medBlock (1-2 years ago)

mine is
} else if (isset($g2_itemId) && $item && $_REQUEST['highlight'] == 1) {

Sadly. I'm a tool. A syntax error fixed it with the original line 1057 I have (forgot the & after ItemId=36)

http://james-horvath.com/gallery2/mediaBlock.php?g2_itemId=36Oops!&Oops!mode=dynamic&g2_view=dynamicalbum.RandomAlbum&limit=1&shuffle=1&useThumb=1&column=

Thanks much. Love your work.

edit: is your updated line 1057 a showstopper ? I just checked the 2.1.3 download link and it's the same as mine.
edit2: made the edit. I think I know what yer trying to accomplish in the line.
thx


 
Profile Email
Quote
Content generated in: 0.57 seconds
New Topic Post Reply



 All times are PST. The time is now 11:30 PM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
HTML Allowed 
Censored Content