Cannot add effect to image style without recoverable fatal error

No replies
Last seen: 6 years 8 weeks ago
Joined: 2015-10-22

As mentioned in the subject, I can't seem to add any effects to image styles without receiving a recoverable fatal error:

Recoverable fatal error: Argument 3 passed to l() must be of the type array, null given, called in ...\devdesktop\giftofgeek\includes\ on line 2613 and defined in l() (line 2480 of ...\Sites\devdesktop\giftofgeek\includes\

FYI, I am following the advanced drupal dev tutorial on 7.41. using a local Acquia 2 install. This functionality worked in previous steps on the tutorial. I've been backing up as instructed.

It looks like when I check my backups, this functionality is broken somewhere between backup #13 and backup #14.

Any ideas? This is the most related post I could find by googling and somebody supplied a patch. But, unfortunately the patch is for a module that I don't have installed, so I don't think this is going to be helpful for me.

Also after looking at the code myself, it looks like the function l() is expecting an array() as the third argument. But that argument appears to be optional (I think? I don't know much php), so this error is confusing to me.

l() definition from

function l($text, $path, array $options = array()) {
global $language_url;
static $use_theme = NULL;

// Merge in defaults.
$options += array(
'attributes' => array(),
'html' => FALSE,

// Append active class.
if (($path == $_GET['q'] || ($path == '' && drupal_is_front_page())) &&
(empty($options['language']) || $options['language']->language == $language_url->language)) {
$options['attributes']['class'][] = 'active';

offending code from
foreach ($active_trail as $parent) {
$breadcrumb[] = l($parent['title'], $parent['href'], $parent['localized_options']);

So, the problem appears to be with localized_options, if you ask me. I've tried searching for where this variable gets set, but it's in many many places and it's too overwhelming for me to track down, without even knowing how this button even connects to this file.

Maybe a similar problem with another module here?

I tried some of the proposed solutions with no luck.

I could really use some help, I've been troubleshooting this for multiple evenings now and I can't proceed in the tutorials without fixing this. :(

Add to playlist

Add to , or

Add to new playlist:

Add to playlist
This is a member-only feature
But, it's easy to become a member

Add to cart:

Contact us

Below are the supported keyboard shortcuts for our video player.

Start / stop video
Go to next video
Go to previous video
Increase or decrease player speed by 20%
Skip ahead or go back by 15 seconds
Jump to a percentage (2 is 20%, for example)
Toggle full screen
Videos Pricing More Search
BuildAModule Logo Icon BuildAModule Logo Icon
Become a member!
1 month
6 months
10% off
12 months
20% off
All memberships come with the following:
24 / 7 access to the entire 1800+ video library
An innovative video player with a rolling transcript
Extensive Drupal and cross-platform training
A thorough and thoughtful training style
Progress tracking
Take notes on specific video sections
Intuitive multi-user management
How many users?
Go solo with a single user, or give multiple team members access through one account and get discounts by bundling multiple users into a single membership.