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

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

Recommended Posts

  • Newbies
Posted

I'm having a problem where the result of the find commands I execute using the PHP API returns just one record over and over again. This has happened both in the tutorial questionnaire and in my own custom web application. For example, the questionnaire asks "On a scale from 1 to 5, how much did you learn from this tutorial?" The page provides 5 radio buttons to choose from, but they are all labeled 5. Similarly, when I query use my web application to query a database of publications by title, the result returned is the information for the same publication repeatedly.

Here's a block of code:

$find_command = $fm->newFindCommand('Info for website');

$find_command->addFindCriterion('Title', "Listening Effectively");

$result = $find_command->execute();

var_dump($result)

The var_dump gives a birds nest of output, which I've pasted part of below in case it's more illuminating to you than it has been to me, but as you'll see it repeatedly prints info on the German version of the book even though I believe the query should find the book in each of the five languages in which it is published. Is there bug here, or is it something I don't understand? Any help would be appreciated.

Thanks,

Jesse

object(FileMaker_Result)[11]

public '_impl' =>

object(FileMaker_Result_Implementation)[12]

public '_fm' => &

object(FileMaker_Implementation)[3]

public 'V73ee434e' =>

array (size=9)

'charset' => string 'UTF-8' (length=5)

'locale' => string 'en' (length=2)

'logLevel' => int 3

'hostspec' => string 'http://localhost' (length=16)

'recordClass' => string 'FileMaker_Record' (length=16)

'prevalidate' => boolean false

'database' => string '******' (length=5)

'username' => string '******' (length=4)

'password' => string '******' (length=9)

public 'Vea4b3413' => null

public 'V9a3dcbce' => null

public '_layout' => &

object(FileMaker_Layout)[13]

public '_impl' =>

object(FileMaker_Layout_Implementation)[14]

public '_fm' => &

object(FileMaker_Implementation)[3]

public 'V73ee434e' =>

array (size=9)

'charset' => string 'UTF-8' (length=5)

'locale' => string 'en' (length=2)

'logLevel' => int 3

'hostspec' => string 'http://localhost' (length=16)

'recordClass' => string 'FileMaker_Record' (length=16)

'prevalidate' => boolean false

'database' => string '******' (length=5)

'username' => string '******' (length=4)

'password' => string '******' (length=9)

public 'Vea4b3413' => null

public 'V9a3dcbce' => null

public '_name' => string 'Info for website' (length=16)

public '_fields' =>

array (size=10)

'Lang' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

'Weight' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

'Price' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

'Title' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

'Type' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

'Author' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

'Description' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

'WebFlags' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

'FirstYearPrinted' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

'Media' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

public '_relatedSets' =>

array (size=0)

empty

public '_valueLists' =>

array (size=0)

empty

public 'Vab234ad8' =>

array (size=0)

empty

public '_database' => string '******' (length=5)

public '_extended' => boolean false

public '_records' =>

array (size=5)

0 => &

object(FileMaker_Record)[15]

public '_impl' =>

object(FileMaker_Record_Implementation)[16]

public '_fields' =>

array (size=10)

'Lang' =>

array (size=1)

0 => string 'German' (length=6)

'Weight' =>

array (size=4)

0 => string '.4060' (length=5)

1 => string '' (length=0)

2 => string '' (length=0)

3 => string '' (length=0)

'Price' =>

array (size=4)

0 => string '7.00' (length=4)

1 => string '' (length=0)

2 => string '' (length=0)

3 => string '' (length=0)

'Title' =>

array (size=1)

0 => string 'Listening Effectively to Children' (length=33)

'Type' =>

array (size=1)

0 => string 'Other Lang' (length=10)

'Author' =>

array (size=1)

0 => string 'Patty Wipfler' (length=13)

'Description' =>

array (size=1)

0 => string 'A compilation of articles written for parents and anyone interested in caring well for children. The articles explain in down-to-earth terms what children want and need from the people who love them, why children show their feelings so fully, and how to help them with their difficulties. You'll learn how listening to your child allows the two of you to work together to relieve your child's fears, frustrations, and anger. The articles may also be ordered as separate pamphlets (Special Time, Playlistening, Crying, Tantrums and Indignation, Healing Children's Fears, and Reaching For Your Angry Child) or as a set of pamphlets (see Parenting Pamphlets). Translations in print: Chinese, Dutch, French, Spanish' (length=712)

'WebFlags' =>

array (size=1)

0 => string 'Family Work

Families & Young People' (length=35)

'FirstYearPrinted' =>

array (size=1)

0 => string '1999' (length=4)

'Media' =>

array (size=1)

0 => string 'Paper' (length=5)

public 'V5e7ec2d5' =>

array (size=0)

empty

public '_recordId' => string '7837' (length=4)

public '_modificationId' => string '2086' (length=4)

public '_layout' => &

object(FileMaker_Layout)[13]

public '_impl' =>

object(FileMaker_Layout_Implementation)[14]

public '_fm' => &

object(FileMaker_Implementation)[3]

public 'V73ee434e' =>

array (size=9)

'charset' => string 'UTF-8' (length=5)

'locale' => string 'en' (length=2)

'logLevel' => int 3

'hostspec' => string 'http://localhost' (length=16)

'recordClass' => string 'FileMaker_Record' (length=16)

'prevalidate' => boolean false

'database' => string '******' (length=5)

'username' => string '******' (length=4)

'password' => string '******' (length=9)

public 'Vea4b3413' => null

public 'V9a3dcbce' => null

...

public '_name' => string 'Info for website' (length=16)

public '_fields' =>

array (size=10)

'Lang' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

'Weight' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

'Price' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

'Title' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

'Type' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

'Author' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

'Description' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

'WebFlags' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

'FirstYearPrinted' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

'Media' => &

object(FileMaker_Field)[17]

public '_impl' =>

object(FileMaker_Field_Implementation)[18]

public '_layout' => &

&object(FileMaker_Layout)[13]

public '_name' => string 'Media' (length=5)

public '_autoEntered' => boolean false

public '_global' => boolean false

public '_maxRepeat' => int 1

public '_validationMask' => int 0

public '_validationRules' =>

array (size=0)

empty

public '_result' => string 'text' (length=4)

public '_type' => string 'normal' (length=6)

public '_valueList' => null

public '_styleType' => null

public '_maxCharacters' => int 0

public '_relatedSets' =>

array (size=0)

empty

public '_valueLists' =>

array (size=0)

empty

public 'Vab234ad8' =>

array (size=0)

empty

public '_database' => string '******' (length=5)

public '_extended' => boolean false

public '_fm' => &

object(FileMaker_Implementation)[3]

public 'V73ee434e' =>

array (size=9)

'charset' => string 'UTF-8' (length=5)

'locale' => string 'en' (length=2)

'logLevel' => int 3

'hostspec' => string 'http://localhost' (length=16)

'recordClass' => string 'FileMaker_Record' (length=16)

'prevalidate' => boolean false

'database' => string '******' (length=5)

'username' => string '******' (length=4)

'password' => string '******' (length=9)

public 'Vea4b3413' => null

public 'V9a3dcbce' => null

public '_relatedSets' =>

array (size=0)

empty

public '_parent' => null

public '_tableCount' => string '949' (length=3)

public '_foundSetCount' => string '5' (length=1)

public '_fetchCount' => string '5' (length=1)

PS. In order to fit within length limits, I deleted most of the var_dump output, so it doesn't illustrate the repeated finding of 1 record as clearly anymore, but I hope it's enough information to give a sense of what's going on.

  • 10 months later...
  • 2 months later...
  • Newbies
Posted

[bump]

having the same problem as well. issuing the same search from a ruby gem seems to return what i'm expecting ... through the php api, i get the same record over and over for as many times as there are expected results. going to take a look at the api code...

This topic is 4509 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.