Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
blog.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jul 2014 at 19:00 UTC
Updated:
13 Apr 2015 at 09:46 UTC
Jump to comment: Most recent
Comments
Comment #1
dcam commentedIs this a Views issue or an issue with Drupal core?
Comment #2
Lostboy22 commentedThe notice is from a line in core.....
Comment #3
dcam commentedYes. I saw that. It doesn't automatically mean that core is at fault. Also, it's not uncommon for people to post issues they know are caused by contrib modules in the core queue, not realizing they should post it in that module's queue. I had to ask.
I'll see what I can find out about the problem.
Comment #4
maxrys commentedI have this bug too when i override path "blog/%" with Views!
I analyze blog_menu_local_tasks_alter: $router_item['page_arguments'] == Array (VIEW_NAME, VIEW_PAGE_NAME, USER_ID);
Maybe it's bug of Views module.
Right code:
- elseif ($root_path == 'blog/%' && $router_item['page_arguments'][0] == $user->uid) {
+ elseif ($root_path == 'blog/%' && arg(1) == $user->uid) {
Comment #5
Lostboy22 commentedWhere did you make the change?
Comment #6
Juanpgs commentedHi, I am getting the same error "Notice: Trying to get property of non-object in blog_menu_local_tasks_alter() (line 155...blog.module)."
any solution?
Comment #7
Anonymous (not verified) commentedThis issue is present in 7.34 as well when using views and giving the path of the Page Display to blog/%.
I am using the Core blog module
Comment #8
dcam commentedComment #9
klokie commentedThis issue still persists, though the fix suggested in #1160926-3: Blog module conflicts with other URL routes beginning with "blog/" fixes it.