Closed (fixed)
Project:
Exclude Node Title
Version:
7.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2015 at 13:36 UTC
Updated:
14 Jul 2015 at 00:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
drupal-son commentedSame error after updating to 7.x-1.8.
Comment #2
Drupal8 commentedsame here!
Comment #3
fizk commentedHere's a patch, please let me know if it works for you.
Comment #5
Phil.Levy commentedI see the same. Just ran the update.
Definitely a bug since $nid isn't defined in the function at all
$nid_list = array($nid => $nid);
Comment #6
fizk commentedI'm going to assume the patch works. This is fixed in dev, and will be available in 7.x-1.9.
Comment #7
kbrinnerPatch worked for me - no more errors and exclude node title works again.
Comment #8
fizk commented7.x-1.9 has been released.
@kbrinner Thanks for testing.
Comment #9
Phil.Levy commentedPatch worked for me also. No obvious problems.
Thanks!
Comment #10
Alan Oliveira commentedPatch worked for me too. But eventually i had to use // instead of - and + on the patch code
// $nid_list = array($nid => $nid);
$nid_list = array($node_info['nid'] => $node_info['nid']);
Comment #11
fizk commented@Alan Oliveira, the
-means remove the line, and+means add the line. You apply patches usingpatch -i name-of-patch-file.patch -p1on the command line.Comment #12
Alan Oliveira commentedthis is linux right? im using Windows Server 2012 R2, so i had to manually edit the file
Comment #13
modiphier commentedAlan, when you manually patch a file I review each line of the patch and I locate the function listed in the patch by the line number listed although sometimes the line numbers vary a bit and then where you see the - that is a line in the current LIVE file that you remove and then the + lines are the line to replace what you removed.
this is the same whether on a linux or windows server..
so for example
search the live file for this line
function _exclude_node_title($param, $view_mode = 'full'
then remove this line
- $nid_list = array($nid => $nid);
- means remove
then replace the line or lines with
+ $nid_list = array($node_info['nid'] => $node_info['nid']);
you must also remove the + from the beginning of the line.
Hope this helps.