Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

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

  • 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.

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

  • 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?

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

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.