Jump to content

PHP Warning: Creating default object from empty value . . .


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

Recommended Posts

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

Link to comment
Share on other sites

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 by ggt667
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by ggt667
Link to comment
Share on other sites

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 by ggt667
Link to comment
Share on other sites

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