Invalid argument supplied for foreach() in ../sites/all/modules/seo_checker/basic_seo_rules/basic_seo_rules.module on line 53.

Comments

miruoss’s picture

I tried with different settings but I cannot reproduce this bug. Can you please tell me the settings of your image cck-field of that content type? (is the alt-text enabled, is the field required, how many "Number of Values",...)

Thanks a lot,
Michael

Starminder’s picture

Not sure if this is what you want - i edited content type image and seo checking is not enabled. Am I looking in the wrong place?

miruoss’s picture

Oh you're using the image module then? OK, I'll try that. It's odd though that you get this error for a content type with SEO checking disabled...

miruoss’s picture

Assigned: Unassigned » miruoss
Status: Active » Needs review

Okay, I still couldn't find out why this can happen but obviously it can. So I inserted a check for the existence of the array. This should fix the bug.
Furthermore I added support for image_attached images.

miruoss’s picture

Status: Needs review » Fixed

Seems to be okay...

Status: Fixed » Closed (fixed)

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