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

geerlingguy’s picture

Version: 7.x-2.4-beta1 » 7.x-2.x-dev

Possibly 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.

geerlingguy’s picture

Title: Page title breaks views feed displays » Page title breaks views feed displays, 403 pages

Adding note about 403 pages - that's where I'm experiencing the issue with my D7 site.

nicholasthompson’s picture

I 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.

elachlan’s picture

Bump, I got this error with Page Title 7.x-2.4-beta1 and Views 7.x-3.0-beta2.

elachlan’s picture

Update: Dev version of page title fixes this issue. Can a new release be rolled out?

GalainHH’s picture

Version: 7.x-2.x-dev » 7.x-2.4-beta1
Priority: Normal » Critical

Same 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) ?

ret5’s picture

Version: 7.x-2.4-beta1 » 7.x-2.x-dev

Fyi ... 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).

GalainHH’s picture

We "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";

TripX’s picture

Subscribe..

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!

TripX’s picture

Status: Active » Closed (duplicate)

Ouh, this issue is duplicate.

Let's move forward with this issue: http://drupal.org/node/1099792