Getting error in the last step 8 module dev series

3 replies [Last post]
Last seen: 1 year 6 weeks ago
Joined: 2011-09-30

I am getting this error:
Error message
Notice: Undefined offset: 1 in trails_block_view() (line 129 of /Users/amir/websites/newtikke/sites/all/modules/custom/trails/trails.module).

the module is working fine by the way.

This is the step video:
Displaying a block with hook_block_view() and checking permissions with user_access()

I have tried to understand and didnt succeed....

Grate videos!!!

[Why there is no option to subscribe to comments?]

Last seen: 1 year 6 weeks ago
Joined: 2011-09-30
One more thing - Is there any

One more thing - Is there any answers and explenations to the "Homeworks"?

Last seen: 8 years 7 weeks ago
Joined: 2011-12-15
I get the same error. File

I get the same error. File "trails.module.08.hook-block-view" has some wrong code.

You have to change line 129:
list($type, $id) = explode('-', $delta);

with this line:
$type = $delta;

Chris Shattuck
Last seen: 9 weeks 5 days ago
Joined: 2009-08-16
Thank you for mentioning

Thank you for mentioning this, I'll be sure to get it fixed in the next round of resource pack updates.


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.