Jump 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.

Featured Replies

  • Newbies

HI

I'm new to FM PHP API and got stuck right after the first steps.

 

I can open a DB alright:

$fm = new FileMaker();
echo "Verion: ".$fm->getAPIVersion()."<br>n"; // -> 1.1

$fm->setProperty('database', 'Testfile'); 
$fm->setProperty('hostspec', 'http://192.168.0.2'); 
$fm->setProperty('username', 'xxx'); 
$fm->setProperty('password', 'xxx');

$databases = $fm->listDatabases();

 

But the next call fails, for instance:

$layouts = $fm->listLayouts();

 

Here is the error object:

FileMaker_Error Object
(
    [_fm] => FileMaker_Implementation Object
        (
            [V73ee434e] => Array
                (
                    [charset] => UTF-8
                    [locale] => en
                    [logLevel] => 3
                    [hostspec] => http://192.168.0.2
                    [recordClass] => FileMaker_Record
                    [prevalidate] => 
                    [database] => Testfile
                    [username] => xxx
                    [password] => xxx
                )

            [Vea4b3413] => 
            [V9a3dcbce] => 
        )

    [error_message_prefix] => 
    [mode] => 1
    [level] => 1024
    
 => 802
    [message] => 
    [userinfo] => 
    [backtrace] => Array
        (
            [0] => Array
                (
                    [file] => /Library/WebServer/Documents/fmx/FileMaker/Error.php
                    [line] => 50
                    [function] => PEAR_Error
                    [class] => PEAR_Error
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
                            [1] => 802
                        )

                )

            [1] => Array
...

Any hints what could be wrong and how I could solve the issue?

What's it all about this mysterious PEAR_Error?

And how can I figure out which file is not accessible (as the error msg 802 suggests)?

 

The environment:

OSX Server 10.6.8

FMS 11

 

BTW, I struggled with the installation of PEAR and PEAR-Date.

But now, I can run without problem:

require_once ('PEAR.php');
$now = new Date();

Or is this test inconclusive?

 

I'd very much appreciate any help!!!

I'm getting into serious trouble if I don't get off the ground soon:-(

 

Thanks,

Dieter

PEAR Error is a module that FileMaker has used in their PHP API to handle error objects, so every error thrown by FM's PHP API will reference it. The important part of the error message is: 802, pretty much everything else from that error object dump can be ignored.

 

The error message that goes with that code is: "Unable to open file", so I would make sure the file is open and hosted on the server and the user account allows access via php.

Create an account or sign in to comment

Important Information

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

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.