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

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

Recommended Posts

  • Newbies
Posted

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!

Posted

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.

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