1 of 1 people found this helpful
It's not a FileMaker error. It's a PHP error, related to upgrading to PHP 5.4. (See related thread https://fmdev.filemaker.com/thread/73068.) You'll need to turn off error reporting in your PHP code to suppress it; the FileMaker API doesn't support PHP 5.4 yet.
Unless you want to go through and update the api files yourself, you can supress the errors (both displayed and logging) manually by adding the following at the top of your php script.
Hopefully they will update it soon (or someone will).
I suspected it was something like this.
I'm using the FMI supplied version of PHP BTW, which on Mac OS 10.9 is PHP 5.4.17 so it looks like we need to wait for FMI to update the API again (remember all those deprecated warnings that used to be generated . . .).
The API might not support 5.4 yet but they supply it!
Does calling the method from the instatiated object get rid of the error?
So if your FileMaker object is $fm, it would be:
In FileMaker.php some methods are commented as @static but not defined as static.
How about editing them ?
I just tried Michael's suggestions and I'm still getting the strict standard errors in the Apache error log unfortunately. Will need an update of the API files from FileMaker Inc to resolve this one.
This is simple. In the file
/library/FileMaker Server/Web Publishing/publishing-engine/php/mavericks/lib/php/FileMaker.php
add "static" keyword on 3 function definitions.
static function isError($variable)
static function getAPIVersion()
static function getMinServerVersion()
Now I see it is fixed in FM14v4 (or prior) on 2 functions. getAPIVersion() remains "not static".