Closed (fixed)
Project:
Related links
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2011 at 15:07 UTC
Updated:
3 Jan 2012 at 22:10 UTC
When accesing nodes without related links, an error appears:
Notice: Trying to get property of non-object en _relatedlinks_update_discovered_links() (línea 651 de E:\uniserver\www\comfacauca\sites\all\modules\relatedlinks\relatedlinks.module).
Comments
Comment #1
madri2 commentedi modified the line from:
$links = _relatedlinks_get_discovered_links($node, $tracker->keywords);
to
$links = _relatedlinks_get_discovered_links($node, $tracker?$tracker->keywords:null);
i don't know if it's correct but i don't have the error anymore
however, it didn't shows me any similar object
Comment #2
leyan commentedI had the same notice after installing kcfinder and inserting images in pages with wysiwyg & ckeditor.
'Trying to get property of non-object in locale_language_url_rewrite_url()'
I read elsewhere that this comes from the url() function that needs a language object.
To remove that notice, I changed the kcfinder_library_path_url() function as follows :
from
to
and the notice disappeared.
Comment #3
mesr01 commented@madri2, have you tried :
$links = _relatedlinks_get_discovered_links($node, isset($tracker->keywords) ? $tracker->keywords : null);?Comment #4
madri2 commentedi tried :
$links = _relatedlinks_get_discovered_links($node, $tracker?$tracker->keywords:null);
which is almost the same and it seems to work
Comment #5
Zen commentedThanks for the report. This has been fixed.
-K