Trails module error message
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.
I was on step 8. The error occurs on both 8 and 9 in the hook_block_view.
Found code typo on line 182
$output .=
Should be
$output =
Awesome, thanks, I'll get this updated.
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.
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
Hi Chris
Problem was gone, thank you.
With Kind Regards
Crystal
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
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!