Trails module error message

8 replies [Last post]
dogboy72
Offline
Last seen: 4 years 5 weeks ago
Joined: 2010-05-20

The error message I received:

* Notice: Undefined offset: 1 in trails_block_view() (line 165 of C:\xampp\htdocs\d7\sites\all\modules\trails\trails.module).
* Notice: Undefined variable: output in trails_block_view() (line 182 of C:\xampp\htdocs\d7\sites\all\modules\trails\trails.module).

The module appears to be working though.

Chris Shattuck
Offline
Last seen: 7 weeks 1 day ago
Joined: 2009-08-16
Thank you for pointing this

Thank you for pointing this out, I appreciate it. Would you mind telling me what step you were on when you got this error?

Thanks!

dogboy72
Offline
Last seen: 4 years 5 weeks ago
Joined: 2010-05-20
I was on step 8. The error

I was on step 8. The error occurs on both 8 and 9 in the hook_block_view.

dogboy72
Offline
Last seen: 4 years 5 weeks ago
Joined: 2010-05-20
Found code typo on line

Found code typo on line 182

$output .=

Should be

$output =

Chris Shattuck
Offline
Last seen: 7 weeks 1 day ago
Joined: 2009-08-16
Awesome, thanks, I'll get

Awesome, thanks, I'll get this updated.

crystal.zj.tang
Offline
Last seen: 7 years 36 weeks ago
Joined: 2011-03-03
trail error message

I meet same issue on step 8 & 9, I corrected code typo on line 182, but still have below error message how to solve it?

"Notice: Undefined offset: 1 in trails_block_view() (line 165 of /home/cww/www/cww.my.net/drupal-7.0/sites/all/modules/customer/trails/trails.module"

Maybe the source code for downloading need be updated too.

Thanks.

Chris Shattuck
Offline
Last seen: 7 weeks 1 day ago
Joined: 2009-08-16
Hi there, I just released a

Hi there,

I just released a new version of the resource pack which should fix this error. Please give it a try and let me know if you run into any issues.

Thanks!
Chris

crystal.zj.tang
Offline
Last seen: 7 years 36 weeks ago
Joined: 2011-03-03
Problem solved

Hi Chris

Problem was gone, thank you.

With Kind Regards
Crystal

web0
Offline
Last seen: 3 hours 3 min ago
Joined: 2014-09-24
Error

Hi Chris

I am doing the Dev course and I am facing the same issue.

Notice: Undefined offset: 8 in trails_block_view() (line 183 of /Users/amadtababa/Sites/drupal7/sites/all/modules/custom/trails/trails.module).

thanks.

Amad

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.