Closed (fixed)
Project:
SEO Compliance Checker
Version:
6.x-1.x-dev
Component:
Basic SEO Rules (Code)
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
12 Aug 2009 at 16:28 UTC
Updated:
28 Sep 2009 at 10:40 UTC
Invalid argument supplied for foreach() in ../sites/all/modules/seo_checker/basic_seo_rules/basic_seo_rules.module on line 53.
Comments
Comment #1
miruoss commentedI 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
Comment #2
Starminder commentedNot 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?
Comment #3
miruoss commentedOh 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...
Comment #4
miruoss commentedOkay, 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.
Comment #5
miruoss commentedSeems to be okay...