Getting error in the last step 8 module dev series

3 replies [Last post]
amirtaiar
Offline
Last seen: 2 years 31 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?]

amirtaiar
Offline
Last seen: 2 years 31 weeks ago
Joined: 2011-09-30
One more thing - Is there any

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

f4o
Offline
Last seen: 4 years 46 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
Offline
Last seen: 3 weeks 6 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.

Cheers!
Chris

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:


Loading...
Contact us

Below are the supported keyboard shortcuts for our video player.

space
Start / stop video
shift
Go to next video
shift
Go to previous video
Increase or decrease player speed by 20%
Skip ahead or go back by 15 seconds
1...9
Jump to a percentage (2 is 20%, for example)
f
Toggle full screen
Videos Pricing More Search
BuildAModule Logo Icon BuildAModule Logo Icon
Become a member!
$29
1 month
$156
6 months
10% off
$276
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?
user
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.