Creating default object from empty value

Asked by Andrew

I've seen this error discussed before, but it doesn't seem quite the same. Client registers with the server but never changes from the default Xibo spash screen. It's green for licenced and logged in.

The server has the error message

<errormsg>Creating default object from empty value</errormsg>
<errornum>2048</errornum>
<errortype>Runtime Notice</errortype>
<scriptname>D:\Inetpub\wwwroot\xibo\3rdparty\nuSoap\nusoap.php</scriptname>
<scriptlinenum>75</scriptlinenum>

although further down shows a 'Display is active and ready to start.' message.

Did have the previous version of Xibo client and server running on same two machines, but removed them and installed 1.0.0.

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Andrew
Solved:
Last query:
Last reply:
Revision history for this message
Alex Harrington (alexharrington) said :
#1

Hi Andrew

That message is quite normal and nothing to be concerned about.

Firstly I'd suggest deleting the contents of your Xibo Library on the client and restarting it.
Next, put the server in to Test mode and turn debugging and auditing on. See if any new error messages are logged.

Cheers

Alex

Revision history for this message
Andrew (arose-hillcrest) said :
#2

There are no other messages with with Auditing, Logging and Test mode on.

I've just tried installing the client on another PC. In the logs I get down to the messages

xmds RegisterDisplay serverKey [XXXXX], hardwareKey [XXXXX], displayName [XXXXX]
xmds RegisterDisplay Display added and is awaiting licensing approval from an Administrator

Again the client just sits with the Xibo splash screen. No content ever seems to make it from server to client. The Library folder on the original machine was empty.

Revision history for this message
Alex Harrington (alexharrington) said :
#3

Correct!

You need to go in to Management -> Displays and authorise it for use on your system.

As soon as it's been authorised, it will pickup whatever you've set as the default layout next time it polls the server.

Cheers

Alex

Revision history for this message
Andrew (arose-hillcrest) said :
#4

Sorry, you thought you'd cracked it.

I am going to Management, Displays, Edit, selecting a template (tried default and one I've created) and the displays are then showing Green under Licencsed and Logged In.

Revision history for this message
Alex Harrington (alexharrington) said :
#5

Andrew

If it's showing the logged in light as green then the client has polled the server OK.

Can you work through the Report Fault wizard from the management menu please. Where it asks you to recreate the problem, open the client options, register the client, clear the library folder and restart the client. Leave it running for a few minutes and then proceed with the steps from with wizard.

If you can email the output to <email address hidden> we'll take a look.

Cheers

Alex

Revision history for this message
Alex Harrington (alexharrington) said :
#6

Also what have you got set as your polling interval? Try dropping from the default to 30 seconds or so just while we try to figure this out.

A

Revision history for this message
Alex Harrington (alexharrington) said :
#7

Just to rule out a client problem, you can also point a client at:

http://test.xibo.org.uk

The key is test.

If you let me know when it's polling that server, I'll authorise and send it some content.

Cheers

Alex

Revision history for this message
Andrew (arose-hillcrest) said :
#8

My client is connected to your test server. Awaiting licensing approval.

Revision history for this message
Alex Harrington (alexharrington) said :
#9

OK - licensed. Once it next polls, you should get the Xibo default layout sent.

Cheers

Alex

Revision history for this message
Andrew (arose-hillcrest) said :
#10

That works fine. So it must be server side my end.

Revision history for this message
Alex Harrington (alexharrington) said :
#11

Ok - I got your troubleshoot.txt OK

We'll take a look and get back to you.

Cheers

Alex

Revision history for this message
Dan Garner (dangarner) said :
#12

Andrew,

I think I may have found the problem with your installation (thanks for the troubleshoot.txt). Its the only bit of Alex's code in XMDS ;-)

Would you be able to edit the XMDS.php file in your installation and go to line 402.

Replace:

@file_get_contents($PHONE_HOME_URL);

With:

//@file_get_contents($PHONE_HOME_URL);

Save and see if you client works then. If so I will convert this question into a bug so we can do some corrective action on 1.0.2

Thanks for catching this one! Would have been hard to spot without your help

Regards,
Dan

Revision history for this message
Andrew (arose-hillcrest) said :
#13

When I open xmds.php, either in Notepad or Editplus. I notice that there are a lot of line feed rectangles showing in the source, resulting in a lot of code being marked as commented out. Is this only a problem for me reading it or would this cause problems in when read by the webserver?

I've commented out that line and a few seconds after the layout has loaded the client crashes. Does the same on both my clients.

Revision history for this message
Alex Harrington (alexharrington) said :
#14

How strange. I've just downloaded the zip archive of Xibo 1.0.0-final from Launchpad, extracted xmds.php and edited with notepad and it all looks fine to me.

If I do the same with the .tar.gz file, I do get Unix line-ends - but that's to be expected.

It sounds then like something has gone awry when you extracted the zip, or perhaps you're using the .tar.gz on Windows?

I'd download the zip again, extract xmds.php and see if it looks the same?

If it doesn't, then I'd replace the whole source to be sure:
Save your settings.php file and then delete the whole Xibo folder. Replace it with a freshly extracted version, replace your settings.php file and delete both upgrade.php and install.php (assuming you're replacing 1.0.0-final with 1.0.0-final not 1.0.1 which is now available).

Revision history for this message
Alex Harrington (alexharrington) said :
#15

Actually I found the bit you mean.

They're just Unix line ends - and just in those 20 or so lines where PHONE_HOME is hooked. They shouldn't be there, but PHP will ignore them anyhow. They won't cause the code to be commented.

Cheers

Alex

Revision history for this message
Alex Harrington (alexharrington) said :
#16

...but just to be 100% sure, I'd made up a new version of xmds.php for v1.0.0-final with those lines fixed.

It's in the bug I've attached to this question. Could you replace your xmds.php with that version and let me know.

Cheers

Alex

Revision history for this message
Andrew (arose-hillcrest) said :
#17

Replaced this file and still getting the client crash. Uninstalled the client and deleted all Xibo files/folders and reinstalled. Seems to be working now on both clients, even though both were crashing previously and I only reinstalled on one...

My problems seem to be solved for now, although there's still a few mysteries.

Thanks for all the help.

Revision history for this message
Alex Harrington (alexharrington) said :
#18

OK - great.

I'll make sure Dan and I address that for 1.0.2

Cheers

Alex