I have some errors related to contextual links with Nodequeue 7.x-2.3 php 7.2 and 7.3:

Notice: Undefined index: name in nodequeue_contextual_links_view_alter() (line 509 of /home/kwbirds/public_html/sites/all/modules/nodequeue/nodequeue.module).
Notice: Trying to get property 'relationship' of non-object in nodequeue_contextual_links_view_alter() (line 509 of /home/kwbirds/public_html/sites/all/modules/nodequeue/nodequeue.module).

Obviously the error occurs when $elview->display_handler->handlers['argument']['name']->relationship is empty.

Comments

arx-e created an issue. See original summary.

arx-e’s picture

I made this patch to define $relationship and check whether it is empty.
I don't know whether it is sound code but it works without errors in my site.

arx-e’s picture

Status: Active » Needs review
arx-e’s picture

StatusFileSize
new767 bytes

The first patch is not working as it was done on a windows pc and there are issues with line endings etc

  • jenlampton committed 15dae33 on 7.x-2.x authored by arx-e
    Issue #3166454 by arx-e: Errors in nodequeue_contextual_links_view_alter...
jenlampton’s picture

Status: Needs review » Fixed

Thanks @arx-e. I still had some trouble applying the second patch, but the intent was clear. I have committed the fix and given you credit.

Status: Fixed » Closed (fixed)

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

yookoala’s picture

Hi. The merged commit 15dae333 seems perfectly fix my problem with the latest nodequeue. But it seems to have sit in the repository without publishing. So I have to manually do the patch to fix the annoying warning messages.

Is there any schedule to official release the fix? Thanks.

hargobind’s picture

Priority: Normal » Major

I just upgraded my sites with this module and my error logs are filling up with errors. I'm glad the issue has been fixed, and I'm using the dev branch for now to mitigate the errors. Can we please get a new release soon? Recommended release versions should not be producing errors.

damienmckenna’s picture

jenlampton’s picture

This fix was included in today's release.