Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Notice: Undefined index: #original_link in sasson_menu_link() (line 482 of /sites/all/themes/sasson/template.php)
I've tried to debug and it seems to be an error on this part here:
$element['#attributes']['class'][] = 'mid-' .$element['#original_link']['mlid'];
The #original_link element of that array simply doesn't exist. And it's firing a couple warning messages.
Comments
Comment #1
tsi CreditAttribution: tsi commentedWe should check if it exists, and while we're there we might as well check if it's not empty.
Please see if replacing this line with this code helps :
Comment #2
caiobianchi CreditAttribution: caiobianchi commentedhas the fix been put into the dev version yet?
Comment #3
tsi CreditAttribution: tsi commentedNope, I was hoping you'll confirm the fix solved the issue, since I wasn't able to reproduce (all my menu items has
mlid
sP.S. this is only a notice and not an error, so changing title.
Comment #4
Morn CreditAttribution: Morn commentedI confirm this error, (line 503 I am using the 7.2 Version).
Its generated on the Pages where I display a Calendar Module month mini block.
The fix corrects the error
PS: its an error, it generates many warnings filling up the log
Comment #5
tsi CreditAttribution: tsi commentedThanks, committed to dev