Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Queries return FX_Error Object

Featured Replies

I'm new to FX.php, and everything was working great but now if I run a query on a layout that contains fields from a related table I run into trouble. Instead of returning a handy array that is easy to work with an object gets returned that conatins layer on top of layer of other objects and arrays.

I don't know why it was working normally before and now I am having this problem. This is what the beginning of the returned object looks like (it's too long to print the whole thing). Help please!

FX_Error Object

(

[error_message_prefix] =>

[mode] => 1

[level] => 1024

 => 100

[message] => FX: ExecuteQuery XML error: Invalid document end at line 2

[userinfo] =>

[backtrace] => Array

(

[0] => Array

(

[file] => C:InetpubwwwrootFXFX.php

[line] => 1362

[function] => FX_Error

[class] => FX_Error

[object] => FX_Error Object

*RECURSION*

[type] => ->

[args] => Array

(

[0] => ExecuteQuery XML error: Invalid document end at line 2

)

One quick question.

Are the fields from the related table directly on the layout or are they in a portal?

  • Author

They are not in a portal.

Moe,

Try placing them in a portal. There can be issues if the related fields are placed directly on the layout, especially if one of the records does not have any related data (was fixed in a recent v rev for FileMaker Server 8 Advanced)

This was more of a problem for people hosting on windows rather than Macs.

  • Author

That's working! Thanks!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.