Closed (fixed)
Project:
Page Title
Version:
7.x-2.5
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2010 at 03:54 UTC
Updated:
4 Oct 2011 at 06:20 UTC
Jump to comment: Most recent file
Notice: Trying to get property of non-object in node_page_title_pattern_alter() (line 39 of /hsphere/local/home/magco/modelmag.co/sites/all/modules/page_title/modules/node.page_title.inc).
Core: 7.0-beta2
PHP: 5.2.14
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 961778-pagetitle-node-check-D7.patch | 1.54 KB | dave reid |
Comments
Comment #1
dave reidSimple patch that needs to check if $node = menu_get_object() actually returns anything.
Comment #2
nicholasthompsonInteresting.
How would you ever be on a "
node/[0-9]+" page and havemenu_get_item()return a non-object?Checking if it does return an object is a fix - but it could potentially hide something else.
Comment #3
dave reidIf you go to node/00, that doesn't exist. Or a node you don't have access to view.
Comment #4
nicholasthompsonOhhhhh good point!
Comment #5
das-peter commentedHad the same problem - Dave's patch fixed it nicely.
Thanks.
Comment #6
finex commentedI confirm it, the patch works well
Comment #7
duntuk commentedYeah, patched worked.
Comment #8
Blooniverse commentedThanks for the current 'Page Title 7.x-2.x-dev (2011-Jan-18)'! This works for me.
Shame only that the frontpage page titling doesn't work in my case - it is a VIEW with the path 'frontpage' and it is set correctly on '/admin/config/system/site-information'. Any good advice?
Comment #9
nicholasthompsonThe node patch was Committed and I'm working on views at the moment.
Comment #10
groovyart commentedIs there any way to fix it without patches? Because I have the same problem (it appears when I am using webform) and I feel uncomfortable with patches (mostly because I lack the knowledge to know anything about that kind of this... I go as far as CSS, but, that's it).
Comment #11
rocketraman commentedI still see a similar issue with the latest version 7.x-2.5 when using the Webforms plugin. The patch provided by Dave Reid no longer works though.