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.

Error messages with FM9 + PHP

Featured Replies

  • Newbies

Hello! I'm a tech assistant working on a thorny FileMaker API for PHP error. I'm gathering this information mostly for our head programmer and I'm all fairly new to both FM & PHP, so be patient with me, please :)

We're getting several different errors -- the first of which happens over a dozen times:

the use of ampersands in our variable declarations. . We've tested removing the ampersand and it seems to fix that issue, but I'm not sure this is truly the solution or just a quick fix. Any opinions on this? The other errors we're getting are...

Assigning the return value of new by reference is deprecated




From some searching, I've gathered that this error is probably being caused by  
Non-static method FileMaker::isError() should not be called statically, assuming $this from incompatible context





is_a(): Deprecated. Please use the instanceof operator





Non-static method PEAR::getStaticProperty() should not be called statically, assuming $this from incompatible context

These I'm less certain on, so any advice anyone could provide would be appreciated.

I understand that I'm probably not providing enough information, or the correct kind, so please let me know if that's the case and I'll do my best to give you what you need.

Any help at all would be greatly appreciated!

These are all PHP errors and you are likely trying to apply PHP 4 coding in PHP 5.

Additionally ensur eyou have the most recent version of the API installed.

Finally, if you're new to PHP / API and are unclear on the documentation go to www.fmwebschool.com and just buy the book - it shows the correct usage and implementation of the API.

To answer your first question - its implied on object creation in PHP 5, hence unnecessary and that's why its deprecated.

More Finally, if you actually want help then it might be useful if you posted the code snippets not just the errors.

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.