Comments

franravi’s picture

I subscribe.

I got this error message:

Fatal error: Call to a member function get_option() on a non-object in *******/sites/all/modules/page_title/modules/views.page_title.inc on line 47

'handler' property seems to not be an object when called for a 'views' module's view.

timtunbridge’s picture

Ditto - just upgraded to views 7.x-3.0-beta3 and I too get :

Fatal error: Call to a member function get_option() on a non-object in /var/www/vhosts/rosespeopleofthewinds.com/httpdocs/sites/all/modules/page_title/modules/views.page_title.inc on line 47

Turn off Page Titles and the view works OK.

But Page Titles was working on the version of Views prior (beta2?).

ggarcia’s picture

I've come across this problem too, I'm investigating it, but for now you can solve it by editing the file and changing the line 47 to look like this:

if($view->display !== null && $view->display->handler !== null) {
    $pattern = $view->display->handler->get_option('page_title_pattern');
} else {
    $pattern = '';
}

NOTE: Careful I have no idea what this causes to the modules or page title display, apparently this will make that patters will be disable for the views

TimeRaider’s picture

Subscribe

mstrelan’s picture

Subscribe

chris.slater’s picture

subscribe

grahamgilchrist’s picture

subscribe

jeffwidman’s picture

subscribe

Kaideane’s picture

@ggarcia Thanks for the temporary tweak, at least my views can render as intended with custom page titles for the meantime.

Subscribe.

houston_we_have_a_problem’s picture

subscribe

sutharsan’s picture

Version: 7.x-2.4-beta1 » 7.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new711 bytes

With the current dev release of Page Title the page view is displayed as it should. But due to the changes in the Views object structure, the Views page title code can not work correctly. The attached patch modifies the code to match the latest Views object structure, but is not tested.

davidbarbarisi@gmail.com’s picture

subscribe.

anthonyR’s picture

subscribe

sutharsan’s picture

dgautsch’s picture

subscribed

dawehner’s picture


+    elseif ($view->display_hander->display->display_plugin == 'page_with_page_title') {

This should be display_handler instead of display_hander

dawehner’s picture

Status: Needs review » Needs work

Update status.

krak’s picture

subscribe

kostajh’s picture

Status: Needs work » Needs review
StatusFileSize
new712 bytes

After editing the line that dereine pointed out in #16, the patch works fine.

Ravi.J’s picture

StatusFileSize
new890 bytes

cleaned up patch, the previous patches did not apply cleanly

WillHall’s picture

Fixed it for me. ty.

girishmuraly’s picture

Here is the same patch of #20 applied for users on 7.x-2.4-beta1 version only

pineiden’s picture

It works fine!

Thanks!

rkendall’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for the fix. Did the trick for me.

Anything stopping this being applied now?

kolier’s picture

working +1.

nicholasthompson’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.