Solved

Error when going to Blog on Drupal Website

Posted on 2013-06-02
2
170 Views
Last Modified: 2013-06-24
When going to my blog on my site I get this error -



    warning: Invalid argument supplied for foreach() in /home/lougar1/kleanrestoration.com/sites/all/modules/cck/content.module on line 1284.
    warning: Invalid argument supplied for foreach() in /home/lougar1/kleanrestoration.com/sites/all/modules/cck/content.module on line 1284.
    warning: Invalid argument supplied for foreach() in /home/lougar1/kleanrestoration.com/sites/all/modules/cck/content.module on line 1284.

Any idea what is causing this? As you can see, the website is kleanrestoration.com.
0
Comment
Question by:tbawarehouse
2 Comments
 
LVL 12

Expert Comment

by:sivagnanam chandrakanth
ID: 39215356
Its looks like you are trying to pull some field / value which doesn't exist..

1) Check whether all the CCK fields exists
2) If you are using Term reference, check whether the term exists
3) Same for userid...
4) Finally clear content cache and check

Hope this helps
0
 
LVL 9

Accepted Solution

by:
scifikillr earned 500 total points
ID: 39216382
To check your content type fields:

1. Navigate to Structure > Content Types > [content type] > Manage fields
2. Note all of the field types that exist here.
3. For any non-standard fields (e.g., reference, video, etc) check the modules page to confirm whether or not the module is present.
4. Download module, put into codebase.

It looks like you're using the stock Blog module, but if you're using a view, you should be able to just edit the view. Any fields which cannot be displayed due to the missing module will show up in the View as 'broken field handler', which will easily identify the missing field type. Replacing the module will fix this error as well.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Redirect to www permanently? 8 130
Best Practice Workflow for Git and Drupal ? 3 514
Maintenance Offline Page Not Working 4 128
Restore Drupal Website from CPanel Full Backup 7 163
This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now