Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5523 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi All,

I get this warning after my php script runs:

Warning: Invalid argument supplied for foreach() in /Library/FileMaker Server/Web Publishing/publishing-engine/php/lib/php/FileMaker/Implementation/Command/AddImpl.php on line 9

Can someone help tell me whats going on?

In the php script I have several API commands that create records.(newAddCommand) Also these commands are in one php function? (is that the problem maybe?)

thanks

RB

Posted

foreach() takes two arguments the first has to be an array the second becomes the placeholder for each value in the array.

That error means that the first value supplied to the function is not an array. Without seeing the code its hard to say more

This topic is 5523 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.