Closed (duplicate)
Project:
Page Title
Version:
7.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Dec 2010 at 11:30 UTC
Updated:
28 Mar 2011 at 19:25 UTC
Resulting in this error at the feed url:
Fatal error: Call to a member function get_option() on a non-object in /var/www/web/sites/all/modules/page_title/modules/views.page_title.inc on line 47
Using the latest dev of views and beta1 of page_title
Comments
Comment #1
geerlingguy commentedPossibly the same issue as: #895006: error in views.page_title.inc. However, I don't know if that patch was committed to the 7.x branch.
Comment #2
geerlingguy commentedAdding note about 403 pages - that's where I'm experiencing the issue with my D7 site.
Comment #3
nicholasthompsonI really need to focus on the views integration - the current system I went for really doesn't work very well. It's trying to inject itself into a system which doesn't like having stuff inject itself.
Comment #4
elachlan commentedBump, I got this error with Page Title 7.x-2.4-beta1 and Views 7.x-3.0-beta2.
Comment #5
elachlan commentedUpdate: Dev version of page title fixes this issue. Can a new release be rolled out?
Comment #6
GalainHH commentedSame here with Views 7.x-3.0-beta1 and 7.x-3.0-beta3
No single Views Site is displayed anymore
Is there a possibility to replace the views.page_title.inc with the one from the dev Version (as elachlan mentioned, that the dev Version fixes the issue) ?
Comment #7
ret5 commentedFyi ... Just migrated to the dev version and got the similar error when I pulled content from a views table:
Notice: Trying to get property of non-object in views_page_title_pattern_alter() (line 48 of public_html/yadayadayada/sites/all/modules/page_title/modules/views.page_title.inc).
Comment #8
GalainHH commentedWe "disabled" the error by replacing the line, that produced the error by STATIC TEXT. The Result is: The STATIC TEXT is shown as page titles for every Views Page.
This is a temporary workaround for us, as we have only a few view pages that contain only links to other content pages and WE don´t need individual page titles for them.
Note: We know little to nothing about php, but this solution works for us
File: /sites/all/modules/page_title/modules/views.page_title.inc
Replace:
$pattern = $view->display->handler->get_option('page_title_pattern');
with:
$pattern="whatever page title should be shown for all views pages";
Comment #9
TripX commentedSubscribe..
Same error here since the update to new views-3.0-beta...
Actually, we can't use the module.
Happens with both actual versions of page title!
Comment #10
TripX commentedOuh, this issue is duplicate.
Let's move forward with this issue: http://drupal.org/node/1099792