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
Share on Google Plus

About Vittorio Pavesi

    Blogger Comment
    Facebook Comment

4 comments:

Anonymous said...

thanx..it help alot

Anonymous said...

thanx it very helpfull

Anonymous said...

it is very helpfull code

Anonymous said...

thanx it very usefull