Issue report by Cody
Product
FileMaker ServerVersion
13Operating system version
Mac OSX YosemiteDescription of the issue
Following authentication using the FileMaker API through PHP, we are able to return the field values for the found record, but we are unable to return the field values for the related records. The correct number of rows in the related set array are returned, but each row contains the same record value, which is the last in the set. We are using the foreach () method to display the related records. The PHP files and webserver are hosted in the cloud and the FileMaker database is on a private server.Steps to reproduce the problem
Host the db1.fmp12 file on a FileMaker server accessible to the web.Host the db1...php files on a webserver other than the FileMaker server. Zip of PHP and database files is available at https://www.charitypilot.org/FMS/db1.zip
Login using Admin/asdfasdfasdf and view the results and debug information provided.
or
View https://www.charitypilot.org/FMS/db1index.php using the above credentials.
Expected result
Parent1 recordChild1 record
Child2 record
i.e.
George Jetson
Elroy Jetson
Judy Jetson
Expected results can also be seen via WebDirect at https://fms.charitypilot.org:2443/fmi/webd?#db1
Login using Admin/asdfasdfasdf to confirm one parent and two different child records.
Actual result
Parent1 recordChild2 record
Child2 record
i.e.
George Jetson
Judy Jetson
Judy Jetson
Exact text of any error message(s) that appear
PHP TestThis is parentID: 1
This is the parentFirst: George
This is the parentLast: Jetson
Here are the children:
childFirst: Judy childLast: Jetson
childFirst: Judy childLast: Jetson
Here is the debug information:
FileMaker_Record Object
(
[_impl] => FileMaker_Record_Implementation Object
(
[_fields] => Array
(
[children::childID] => Array
(
[0] => 2
)
[children::childFirst] => Array
(
[0] => Judy
)
[children::childLast] => Array
(
[0] => Jetson
)
)
[V5e7ec2d5] => Array
(
)
[_recordId] => 2
[_modificationId] => 0
[_layout] => FileMaker_RelatedSet Object
(
[_impl] => FileMaker_RelatedSet_Implementation Object
(
[_layout] => FileMaker_Layout Object
(
[_impl] => FileMaker_Layout_Implementation Object
(
[_fm] => FileMaker_Implementation Object
(
[V73ee434e] => Array
(
[charset] => UTF-8
[locale] => en
[logLevel] => 3
[hostspec] => https://fms.charitypilot.org
[recordClass] => FileMaker_Record
[prevalidate] =>
[database] => db1
[username] => Admin
[password] => asdfasdfasdf
)
[Vea4b3413] =>
[V9a3dcbce] =>
)
[_name] => parents
[_fields] => Array
(
[parentID] => FileMaker_Field Object
(
[_impl] => FileMaker_Field_Implementation Object
(
[_layout] => FileMaker_RelatedSet Object
*RECURSION*
[_name] => children::childLast
[_autoEntered] =>
[_global] =>
[_maxRepeat] => 1
[_validationMask] => 0
[_validationRules] => Array
(
)
[_result] => text
[_type] => normal
[_valueList] =>
[_styleType] =>
[_maxCharacters] => 0
)
)
[parentFirst] => FileMaker_Field Object
(
[_impl] => FileMaker_Field_Implementation Object
(
[_layout] => FileMaker_RelatedSet Object
*RECURSION*
[_name] => children::childLast
[_autoEntered] =>
[_global] =>
[_maxRepeat] => 1
[_validationMask] => 0
[_validationRules] => Array
(
)
[_result] => text
[_type] => normal
[_valueList] =>
[_styleType] =>
[_maxCharacters] => 0
)
)
[parentLast] => FileMaker_Field Object
(
[_impl] => FileMaker_Field_Implementation Object
(
[_layout] => FileMaker_RelatedSet Object
*RECURSION*
[_name] => children::childLast
[_autoEntered] =>
[_global] =>
[_maxRepeat] => 1
[_validationMask] => 0
[_validationRules] => Array
(
)
[_result] => text
[_type] => normal
[_valueList] =>
[_styleType] =>
[_maxCharacters] => 0
)
)
)
[_relatedSets] => Array
(
[children] => FileMaker_RelatedSet Object
*RECURSION*
)
[_valueLists] => Array
(
)
[Vab234ad8] => Array
(
)
[_database] => db1
[_extended] =>
)
)
[_fm] => FileMaker_Implementation Object
(
[V73ee434e] => Array
(
[charset] => UTF-8
[locale] => en
[logLevel] => 3
[hostspec] => https://fms.charitypilot.org
[recordClass] => FileMaker_Record
[prevalidate] =>
[database] => db1
[username] => Admin
[password] => asdfasdfasdf
)
[Vea4b3413] =>
[V9a3dcbce] =>
)
[_name] => children
[_fields] => Array
(
[children::childID] => FileMaker_Field Object
(
[_impl] => FileMaker_Field_Implementation Object
(
[_layout] => FileMaker_RelatedSet Object
*RECURSION*
[_name] => children::childLast
[_autoEntered] =>
[_global] =>
[_maxRepeat] => 1
[_validationMask] => 0
[_validationRules] => Array
(
)
[_result] => text
[_type] => normal
[_valueList] =>
[_styleType] =>
[_maxCharacters] => 0
)
)
[children::childFirst] => FileMaker_Field Object
(
[_impl] => FileMaker_Field_Implementation Object
(
[_layout] => FileMaker_RelatedSet Object
*RECURSION*
[_name] => children::childLast
[_autoEntered] =>
[_global] =>
[_maxRepeat] => 1
[_validationMask] => 0
[_validationRules] => Array
(
)
[_result] => text
[_type] => normal
[_valueList] =>
[_styleType] =>
[_maxCharacters] => 0
)
)
[children::childLast] => FileMaker_Field Object
(
[_impl] => FileMaker_Field_Implementation Object
(
[_layout] => FileMaker_RelatedSet Object
*RECURSION*
[_name] => children::childLast
[_autoEntered] =>
[_global] =>
[_maxRepeat] => 1
[_validationMask] => 0
[_validationRules] => Array
(
)
[_result] => text
[_type] => normal
[_valueList] =>
[_styleType] =>
[_maxCharacters] => 0
)
)
)
)
)
[_fm] => FileMaker_Implementation Object
(
[V73ee434e] => Array
(
[charset] => UTF-8
[locale] => en
[logLevel] => 3
[hostspec] => https://fms.charitypilot.org
[recordClass] => FileMaker_Record
[prevalidate] =>
[database] => db1
[username] => Admin
[password] => asdfasdfasdf
)
[Vea4b3413] =>
[V9a3dcbce] =>
)
[_relatedSets] => Array
(
)
[_parent] => FileMaker_Record Object
(
[_impl] => FileMaker_Record_Implementation Object
(
[_fields] => Array
(
[parentID] => Array
(
[0] => 1
)
[parentFirst] => Array
(
[0] => George
)
[parentLast] => Array
(
[0] => Jetson
)
)
[V5e7ec2d5] => Array
(
)
[_recordId] => 1
[_modificationId] => 0
[_layout] => FileMaker_Layout Object
(
[_impl] => FileMaker_Layout_Implementation Object
(
[_fm] => FileMaker_Implementation Object
(
[V73ee434e] => Array
(
[charset] => UTF-8
[locale] => en
[logLevel] => 3
[hostspec] => https://fms.charitypilot.org
[recordClass] => FileMaker_Record
[prevalidate] =>
[database] => db1
[username] => Admin
[password] => asdfasdfasdf
)
[Vea4b3413] =>
[V9a3dcbce] =>
)
[_name] => parents
[_fields] => Array
(
[parentID] => FileMaker_Field Object
(
[_impl] => FileMaker_Field_Implementation Object
(
[_layout] => FileMaker_RelatedSet Object
(
[_impl] => FileMaker_RelatedSet_Implementation Object
(
[_layout] => FileMaker_Layout Object
*RECURSION*
[_fm] => FileMaker_Implementation Object
(
[V73ee434e] => Array
(
[charset] => UTF-8
[locale] => en
[logLevel] => 3
[hostspec] => https://fms.charitypilot.org
[recordClass] => FileMaker_Record
[prevalidate] =>
[database] => db1
[username] => Admin
[password] => asdfasdfasdf
)
[Vea4b3413] =>
[V9a3dcbce] =>
)
[_name] => children
[_fields] => Array
(
[children::childID] => FileMaker_Field Object
*RECURSION*
[children::childFirst] => FileMaker_Field Object
*RECURSION*
[children::childLast] => FileMaker_Field Object
*RECURSION*
)
)
)
[_name] => children::childLast
[_autoEntered] =>
[_global] =>
[_maxRepeat] => 1
[_validationMask] => 0
[_validationRules] => Array
(
)
[_result] => text
[_type] => normal
[_valueList] =>
[_styleType] =>
[_maxCharacters] => 0
)
)
[parentFirst] => FileMaker_Field Object
(
[_impl] => FileMaker_Field_Implementation Object
(
[_layout] => FileMaker_RelatedSet Object
(
[_impl] => FileMaker_RelatedSet_Implementation Object
(
[_layout] => FileMaker_Layout Object
*RECURSION*
[_fm] => FileMaker_Implementation Object
(
[V73ee434e] => Array
(
[charset] => UTF-8
[locale] => en
[logLevel] => 3
[hostspec] => https://fms.charitypilot.org
[recordClass] => FileMaker_Record
[prevalidate] =>
[database] => db1
[username] => Admin
[password] => asdfasdfasdf
)
[Vea4b3413] =>
[V9a3dcbce] =>
)
[_name] => children
[_fields] => Array
(
[children::childID] => FileMaker_Field Object
*RECURSION*
[children::childFirst] => FileMaker_Field Object
*RECURSION*
[children::childLast] => FileMaker_Field Object
*RECURSION*
)
)
)
[_name] => children::childLast
[_autoEntered] =>
[_global] =>
[_maxRepeat] => 1
[_validationMask] => 0
[_validationRules] => Array
(
)
[_result] => text
[_type] => normal
[_valueList] =>
[_styleType] =>
[_maxCharacters] => 0
)
)
[parentLast] => FileMaker_Field Object
(
[_impl] => FileMaker_Field_Implementation Object
(
[_layout] => FileMaker_RelatedSet Object
(
[_impl] => FileMaker_RelatedSet_Implementation Object
(
[_layout] => FileMaker_Layout Object
*RECURSION*
[_fm] => FileMaker_Implementation Object
(
[V73ee434e] => Array
(
[charset] => UTF-8
[locale] => en
[logLevel] => 3
[hostspec] => https://fms.charitypilot.org
[recordClass] => FileMaker_Record
[prevalidate] =>
[database] => db1
[username] => Admin
[password] => asdfasdfasdf
)
[Vea4b3413] =>
[V9a3dcbce] =>
)
[_name] => children
[_fields] => Array
(
[children::childID] => FileMaker_Field Object
*RECURSION*
[children::childFirst] => FileMaker_Field Object
*RECURSION*
[children::childLast] => FileMaker_Field Object
*RECURSION*
)
)
)
[_name] => children::childLast
[_autoEntered] =>
[_global] =>
[_maxRepeat] => 1
[_validationMask] => 0
[_validationRules] => Array
(
)
[_result] => text
[_type] => normal
[_valueList] =>
[_styleType] =>
[_maxCharacters] => 0
)
)
)
[_relatedSets] => Array
(
[children] => FileMaker_RelatedSet Object
(
[_impl] => FileMaker_RelatedSet_Implementation Object
(
[_layout] => FileMaker_Layout Object
*RECURSION*
[_fm] => FileMaker_Implementation Object
(
[V73ee434e] => Array
(
[charset] => UTF-8
[locale] => en
[logLevel] => 3
[hostspec] => https://fms.charitypilot.org
[recordClass] => FileMaker_Record
[prevalidate] =>
[database] => db1
[username] => Admin
[password] => asdfasdfasdf
)
[Vea4b3413] =>
[V9a3dcbce] =>
)
[_name] => children
[_fields] => Array
(
[children::childID] => FileMaker_Field Object
(
[_impl] => FileMaker_Field_Implementation Object
(
[_layout] => FileMaker_RelatedSet Object
*RECURSION*
[_name] => children::childLast
[_autoEntered] =>
[_global] =>
[_maxRepeat] => 1
[_validationMask] => 0
[_validationRules] => Array
(
)
[_result] => text
[_type] => normal
[_valueList] =>
[_styleType] =>
[_maxCharacters] => 0
)
)
[children::childFirst] => FileMaker_Field Object
(
[_impl] => FileMaker_Field_Implementation Object
(
[_layout] => FileMaker_RelatedSet Object
*RECURSION*
[_name] => children::childLast
[_autoEntered] =>
[_global] =>
[_maxRepeat] => 1
[_validationMask] => 0
[_validationRules] => Array
(
)
[_result] => text
[_type] => normal
[_valueList] =>
[_styleType] =>
[_maxCharacters] => 0
)
)
[children::childLast] => FileMaker_Field Object
(
[_impl] => FileMaker_Field_Implementation Object
(
[_layout] => FileMaker_RelatedSet Object
*RECURSION*
[_name] => children::childLast
[_autoEntered] =>
[_global] =>
[_maxRepeat] => 1
[_validationMask] => 0
[_validationRules] => Array
(
)
[_result] => text
[_type] => normal
[_valueList] =>
[_styleType] =>
[_maxCharacters] => 0
)
)
)
)
)
)
[_valueLists] => Array
(
)
[Vab234ad8] => Array
(
)
[_database] => db1
[_extended] =>
)
)
[_fm] => FileMaker_Implementation Object
(
[V73ee434e] => Array
(
[charset] => UTF-8
[locale] => en
[logLevel] => 3
[hostspec] => https://fms.charitypilot.org
[recordClass] => FileMaker_Record
[prevalidate] =>
[database] => db1
[username] => Admin
[password] => asdfasdfasdf
)
[Vea4b3413] =>
[V9a3dcbce] =>
)
[_relatedSets] => Array
(
[children] => Array
(
[0] => FileMaker_Record Object
*RECURSION*
[1] => FileMaker_Record Object
*RECURSION*
)
)
[_parent] =>
)
)
)
)
FileMaker_Record Object
(
[_impl] => FileMaker_Record_Implementation Object
(
[_fields] => Array
(
[children::childID] => Array
(
[0] => 2
)
[children::childFirst] => Array
(
[0] => Judy
)
[children::childLast] => Array
(
[0] => Jetson
)
)
[V5e7ec2d5] => Array
(
)
[_recordId] => 2
[_modificationId] => 0
[_layout] => FileMaker_RelatedSet Object
(
[_impl] => FileMaker_RelatedSet_Implementation Object
(
[_layout] => FileMaker_Layout Object
(
[_impl] => FileMaker_Layout_Implementation Object
(
[_fm] => FileMaker_Implementation Object
(
[V73ee434e] => Array
(
[charset] => UTF-8
[locale] => en
[logLevel] => 3
[hostspec] => https://fms.charitypilot.org
[recordClass] => FileMaker_Record
[prevalidate] =>
[database] => db1
[username] => Admin
[password] => asdfasdfasdf
)
[Vea4b3413] =>
[V9a3dcbce] =>
)
[_name] => parents
[_fields] => Array
(
[parentID] => FileMaker_Field Object
(
[_impl] => FileMaker_Field_Implementation Object
(
[_layout] => FileMaker_RelatedSet Object
*RECURSION*
[_name] => children::childLast
[_autoEntered] =>
[_global] =>
[_maxRepeat] => 1
[_validationMask] => 0
[_validationRules] => Array
(
)
[_result] => text
[_type] => normal
[_valueList] =>
[_styleType] =>
[_maxCharacters] => 0
)
)
[parentFirst] => FileMaker_Field Object
(
[_impl] => FileMaker_Field_Implementation Object
(
[_layout] => FileMaker_RelatedSet Object
*RECURSION*
[_name] => children::childLast
[_autoEntered] =>
[_global] =>
[_maxRepeat] => 1
[_validationMask] => 0
[_validationRules] => Array
(
)
[_result] => text
[_type] => normal
[_valueList] =>
[_styleType] =>
[_maxCharacters] => 0
)
)
[parentLast] => FileMaker_Field Object
(
[_impl] => FileMaker_Field_Implementation Object
(
[_layout] => FileMaker_RelatedSet Object
*RECURSION*
[_name] => children::childLast
[_autoEntered] =>
[_global] =>
[_maxRepeat] => 1
[_validationMask] => 0
[_validationRules] => Array
(
)
[_result] => text
[_type] => normal
[_valueList] =>
[_styleType] =>
[_maxCharacters] => 0
)
)
)
[_relatedSets] => Array
(
[children] => FileMaker_RelatedSet Object
*RECURSION*
)
[_valueLists] => Array
(
)
[Vab234ad8] => Array
(
)
[_database] => db1
[_extended] =>
)
)
[_fm] => FileMaker_Implementation Object
(
[V73ee434e] => Array
(
[charset] => UTF-8
[locale] => en
[logLevel] => 3
[hostspec] => https://fms.charitypilot.org
[recordClass] => FileMaker_Record
[prevalidate] =>
[database] => db1
[username] => Admin
[password] => asdfasdfasdf
)
[Vea4b3413] =>
[V9a3dcbce] =>
)
[_name] => children
[_fields] => Array
(
[children::childID] => FileMaker_Field Object
(
[_impl] => FileMaker_Field_Implementation Object
(
[_layout] => FileMaker_RelatedSet Object
*RECURSION*
[_name] => children::childLast
[_autoEntered] =>
[_global] =>
[_maxRepeat] => 1
[_validationMask] => 0
[_validationRules] => Array
(
)
[_result] => text
[_type] => normal
[_valueList] =>
[_styleType] =>
[_maxCharacters] => 0
)
)
[children::childFirst] => FileMaker_Field Object
(
[_impl] => FileMaker_Field_Implementation Object
(
[_layout] => FileMaker_RelatedSet Object
*RECURSION*
[_name] => children::childLast
[_autoEntered] =>
[_global] =>
[_maxRepeat] => 1
[_validationMask] => 0
[_validationRules] => Array
(
)
[_result] => text
[_type] => normal
[_valueList] =>
[_styleType] =>
[_maxCharacters] => 0
)
)
[children::childLast] => FileMaker_Field Object
(
[_impl] => FileMaker_Field_Implementation Object
(
[_layout] => FileMaker_RelatedSet Object
*RECURSION*
[_name] => children::childLast
[_autoEntered] =>
[_global] =>
[_maxRepeat] => 1
[_validationMask] => 0
[_validationRules] => Array
(
)
[_result] => text
[_type] => normal
[_valueList] =>
[_styleType] =>
[_maxCharacters] => 0
)
)
)
)
)
[_fm] => FileMaker_Implementation Object
(
[V73ee434e] => Array
(
[charset] => UTF-8
[locale] => en
[logLevel] => 3
[hostspec] => https://fms.charitypilot.org
[recordClass] => FileMaker_Record
[prevalidate] =>
[database] => db1
[username] => Admin
[password] => asdfasdfasdf
)
[Vea4b3413] =>
[V9a3dcbce] =>
)
[_relatedSets] => Array
(
)
[_parent] => FileMaker_Record Object
(
[_impl] => FileMaker_Record_Implementation Object
(
[_fields] => Array
(
[parentID] => Array
(
[0] => 1
)
[parentFirst] => Array
(
[0] => George
)
[parentLast] => Array
(
[0] => Jetson
)
)
[V5e7ec2d5] => Array
(
)
[_recordId] => 1
[_modificationId] => 0
[_layout] => FileMaker_Layout Object
(
[_impl] => FileMaker_Layout_Implementation Object
(
[_fm] => FileMaker_Implementation Object
(
[V73ee434e] => Array
(
[charset] => UTF-8
[locale] => en
[logLevel] => 3
[hostspec] => https://fms.charitypilot.org
[recordClass] => FileMaker_Record
[prevalidate] =>
[database] => db1
[username] => Admin
[password] => asdfasdfasdf
)
[Vea4b3413] =>
[V9a3dcbce] =>
)
[_name] => parents
[_fields] => Array
(
[parentID] => FileMaker_Field Object
(
[_impl] => FileMaker_Field_Implementation Object
(
[_layout] => FileMaker_RelatedSet Object
(
[_impl] => FileMaker_RelatedSet_Implementation Object
(
[_layout] => FileMaker_Layout Object
*RECURSION*
[_fm] => FileMaker_Implementation Object
(
[V73ee434e] => Array
(
[charset] => UTF-8
[locale] => en
[logLevel] => 3
[hostspec] => https://fms.charitypilot.org
[recordClass] => FileMaker_Record
[prevalidate] =>
[database] => db1
[username] => Admin
[password] => asdfasdfasdf
)
[Vea4b3413] =>
[V9a3dcbce] =>
)
[_name] => children