DRUPAL warning: Invalid argument on line 1284

I am getting the following error message:
warning: Invalid argument supplied for foreach() in /home/mysite/html/drupal/modules/cck/content.module on line 1284
I found the same error here: http://drupal.org/node/519390 but the solution didn't fix my problem but helped me find the problem.
The root cause is a Node linked to a user not present, to find this node just run the following query:
select * from node where uid not in (select uid from users )
And modify the UID field linking it to a valid user
Tags: , , ,

About author

Vittorio Pavesi


  1. Anonymous
    9:52 AM

    thanx..it help alot

  2. thanx it very helpfull

  3. it is very helpfull code

  4. thanx it very usefull

Post a Comment