Posted by zamzmith on October 26, 2009 at 3:54pm
Home › Administer › Site configuration › SWF Tools > CCK formatters:
warning: Invalid argument supplied for foreach() in /Users/zam/2-Services/WEB/PETALUMATROLLEY/TROLLEY-CMS-094025/cms.petalumatrolley.loc/sites/all/modules/swftools/swftools.admin.inc on line 480.
CCK is all working fine and the rest of SWF tools works fine. I've tried turning everything on and off.
Thanks for any help
Comments
=-=
specific/exact version of swftools in use?
SWFtools version 6.x-2.5
thanks
=-=
what version of cck ?
In my testing with the latest roll of 3.x-dev I can't recreate the issue.
Have you tried with the lastest release of 2.x-dev since you are using 2.5?
Error Message:Invalid argument supplied for each()...on line 480
I observed the following report entry after installing CCK 6.x-2.4 and CCK 6.x-2.5:
"Invalid argument supplied for foreach() in .../sites/all/modules/swftools/swftools.admin.inc on line 480."
1. I uninstalled CCK 6.x-2.5 after receiving that error message.
2. I installed CCK 6.x-2.4 and received the same error message.
3. I uninstalled CCK 6.x-2.4
4. I downloaded and reinstalled CCK 6.x-2.5 with the same result.
This is how to invoke the error:
Navigate to Administer>Site Configuration> SWF Tools and
click on CCK formatters for the following result:
warning: Invalid argument supplied for foreach() in (omitted path)/sites/all/modules/swftools/swftools.admin.inc on line 480.
Note: I installed SWF Tools 6.x-2.5 before I installed CCK 6.x-2.5. Does that make a difference?
Should I uninstall both and try installing CCK 6.x-2.5 before I install SWF Tools 6.x-2.5?
=-=
Navigate to Administer>Site Configuration> SWF Tools and
click on CCK formatters
The above does not produce the error for me. However, I am testing CCK 3.x-dev and am not in a position to roll back to CCK 2.x
Yes, I would certainly uninstall both modules first, then renable CCK then SWF tools.
And as previously mentioned, I'd test th 2.x-dev version to ensure it isn't a bug that has already been fixed and is awaiting feedback or another release.
Same error with CCK 6.x-3.x-dev and SWFtools 6.x-2.5
I tried installing and uninstalling both modules 10 different ways.
So the question is why doesn't VeryMisunderstood get the error?
I have no other user modules installed.
Same error with SWF Tools 6.x-3.x-dev and CCK 6.x-2.5
I'm using Drupal Core 6.14 and I get the same error with SWF Tools 6.x-3.x-dev and CCK 6.x-2.5.
Maybe I should try SWF Tools 6.x-3.x-dev and CCK 6.x-3.x-dev.
Here is the way to solve the problem
look here:
http://drupal.org/node/550238
greetz B.