warning: Invalid argument supplied for foreach() in /home/var/www/modules/nodereferrer/nodereferrer.module on line 75.

This happens everytime I hit submit on a node.

txcrew

Comments

beginner’s picture

confirmed.
A check must be added to see if the variable is an array (of referrers) or not.

dopry’s picture

is this still an issue? I cannot reproduce.

Anonymous’s picture

I haven't seen this in a long while so I would say it has been fixed.

Christefano-oldaccount’s picture

Just starting using nodereferrer and it's exactly what I was looking for. Unfortunately, there's something not so good happening when CCK tries to display the nodereferrer field in newly submitted nodes. I'm getting the same error txcrew reports, although I see it only on node creation.

    * warning: Invalid argument supplied for foreach() in /home/drupal/public_html/sites/all/modules/cck/content.module on line 586.

This is with CCK 5.x-1.6-1.

Anonymous’s picture

+1

I am now receiving the above error when submitting/editing node types that contain the NodeReferrer field.

    * warning: Invalid argument supplied for foreach() in /home/threeone/public_html/sites/all/modules/cck/content.module on line 586.
    * warning: Invalid argument supplied for foreach() in /home/threeone/public_html/sites/all/modules/cck/content.module on line 976.

-txcrew

dopry’s picture

Version: » 5.x-1.x-dev
Status: Active » Fixed

This should be resolved in the latest version. Can you verify. I'm going a head and setting to fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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