July 12, 20178 yr Just checking the Event Viewer for a PHP error and noticed many of the following entries: PHP Warning: Creating default object from empty value in C:\Program Files\FileMaker\FileMaker Server\Web Publishing\publishing-engine\php\FileMaker\Implementation\Parser\FMPXMLLAYOUT.php on line 53 I know these are only warnings but would like to eliminate them if possible - I'm running FileMaker Server v16.0.1 using FileMaker's version of PHP. Haven't been able to find anything so far - anyonke know how I can prevent these warnings from being logged in the first place? Looking to eliminate them not suppress them if possible. thanks
July 12, 20178 yr What is on line 53? The general idea is to set an empty value first that it will not complain about for example $tmp = ""; I do not know which variable is in question. Or you can change error level to error. Edited July 12, 20178 yr by ggt667
July 12, 20178 yr Author 7 minutes ago, ggt667 said: What is on line 53? The general idea is to set an empty value first that it will not complain about for example $tmp = ""; I do not know which variable is in question. Or you can change error level to error. Line 53 is: $V8fa14cdd->_impl->_styleType = $V77be71a4['styleType']; From memory the PHP API files are obfuscated so can't read too much into this particular line.
July 12, 20178 yr Looks like styleType does not have a corresponding value in the array. For the statement not to break associatively there will have to be an entry of styleType in $V77be71a4[] Philosophical question: How are you going to fix this if you have no access to edit the code? Edited July 12, 20178 yr by ggt667
July 12, 20178 yr Author Thanks for your reply - I'm a bit lost at this point as to how I might go about fixing this? Do you have any suggestions/examples here?
July 12, 20178 yr I have no experience using: FMPXMLLAYOUT.php; can you post the file in full? Are you supposed to use this file as a starting point to generate your own php file? I used to use FM CWP w/FX.php; amongst others, to write my own php scripts, these days I mainly use node w/express and/or nginx to achieve the same due to better support with postgres, elasticsearch, and now also FileMaker DATA API Edited July 12, 20178 yr by ggt667
Create an account or sign in to comment