8 Replies Latest reply on Aug 22, 2016 10:05 PM by user19752

    FMS 13/CWP/PHP - PHP Strict Standards errors

    fmdataweb

      I've just upgraded a server to FMS v13 and did a quick test to make sure the PHP sites still work. I noticed a number of entries in the Apache error log like this:

       

      [Thu Jan 23 23:10:57 2014] [error] [client ::1] PHP Strict Standards: Non-static method FileMaker::isError() should not be called statically, assuming $this from incompatible context in /Library/FileMaker Server/Web Publishing/publishing-engine/php/mavericks/lib/php/FileMaker/Implementation/FileMakerImpl.php on line 259,

       

      There's dozens of these and they all refer to a method I've used for many years to check for errors, e.g.:

       

      if(FileMaker::isError($layouts)) {

        // FileMaker PHP API Error -- Alert User.

      $error = 'Authentication Error: '. $layouts->getMessage(). ' (' . $layouts->code . ')</p>';

      } else {

      $error = '';

       

      It's referencing the first line in the error log: if(FileMaker::isError($layouts)) {.

       

      It's not a fatal error and the site still works but I would like to avoid cluttering my apache log - anyone know what is wrong with my syntax and what change I need to make?

       

      thanks,

      Steve