Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: mesr01 commented@madri2, have you tried :
$links = _relatedlinks_get_discovered_links($node, isset($tracker->keywords) ? $tracker->keywords : null);
?Comment #4
madri2 CreditAttribution: 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 CreditAttribution: Zen commentedThanks for the report. This has been fixed.
-K