Error Registering Client - Windows Shared Hosting - Client found response content type of text/html but expected text/html

Asked by Jose M Gonzalez

  Hello Everyone,

  Thanks in advance for you assistance with this. It is much
  appreciated.

  I'm new to Xibo, but very impressed with the job you've done so far.
  Wow! I had no issues getting it working and registering clients in my
  testing environment running Windows Server 2003 & XAMPP aside from
  having to install the latest version of MySQL to get it to work.

  However, in a shared hosting environment it isn't going so smoothly.
  I'm able to login to xibo, create layouts, upload to the library,
  business as usual on the server. But when I try to register my first
  client to that server, it comes up with the following error:

  Client found response content type of 'text/html', but expected 'text/xml'.
  The request failed with the error message:
  --
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
  <title>500 - Internal server error.</title>
  <style type="text/css">
  <!--
  body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
  fieldset{padding:0 15px 10px 15px;}
  h1{font-size:2.4em;margin:0;color:#FFF;}
  h2{font-size:1.7em;margin:0;color:#CC0000;}
  h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
  #header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
  background-color:#555555;}
  #content{margin:0 0 0 2%;position:relative;}
  .content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
  -->
  </style>
  </head>
  <body>
  <div id="header"><h1>Server Error</h1></div>
  <div id="content">
   <div class="content-container"><fieldset>
    <h2>500 - Internal server error.</h2>
    <h3>There is a problem with the resource you are looking for, and it cannot be displayed.</h3>
   </fieldset></div>
  </div>
  </body>
  </html>

Question information

Language:
English Edit question
Status:
Answered
For:
Xibo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

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

What version of Xibo are you running?

Revision history for this message
Jose M Gonzalez (jose-pctechasap) said :
#2

Server 1.2.0 I'm currently uploading the 1.2.1 files to the server and will unzip them shortly... I saw your message to another user about the bug that causes the client to crash so I figured I get that out of the way...

I'll let you know when the upgrade is complete.

Thanks again Alex,

Jose

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

1.2.0 won't work on a Windows server without patching. I expect
upgrading to 1.2.1 will fix this outright.

Alex

Revision history for this message
Jose M Gonzalez (jose-pctechasap) said :
#4

Hi Alex,

I've completed the upgrade to 1.2.1 successfully. But still getting the error...

The client in use is 1.2.1

Thanks again

Revision history for this message
Jose M Gonzalez (jose-pctechasap) said :
#5

This is hosted in its own sub domain and not in a sub directory of a parent domain. So the url to reach the server is content.domainname.com and not domainname.com/xibo...

I'm not sure if that would make a difference. But I thought I would throw it out there.

Jose

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

Subdomains or subdirectories are fine. Xibo won't care.

We need to find out what the actual error is. If you look in the
Management Menu, under log, see if there are any errors logged. You'll
need to increase the time setting in there to see errors further in
the past.

If there aren't, put the server in to debug/audit/test modes
(Management -> Settings) and then run Register on the client again and
then check the log. Are there any errors now? Does the error displayed
in the client change?

Alex

Revision history for this message
Jose M Gonzalez (jose-pctechasap) said :
#7

Hi Alex,

This is the error that is reported.

<errormsg>Undefined index: REQUEST_URI</errormsg>
<errornum>8</errornum>
<errortype>Notice</errortype>
<scriptname>C:\HostingSpaces\pctech\content.PCTechDigitalAds.com\wwwroot\lib\app\kit.class.php</scriptname>
<scriptlinenum>448</scriptlinenum>

It does look like it is related to the other bug... I tried replacing the lib\app\kit.class.php file and still the error persists.

Thanks again Alex.

Jose

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

Line 448 makes no reference to REQUEST_URI?

http://bazaar.launchpad.net/~xibo-maintainers/xibo/biela/view/210/server/lib/app/kit.class.php#L448

Are you certain you've got 1.2.1 files up there? Is your hosting
company running some kind of PHP caching engine - AppCellerator for
example?

Alex

Revision history for this message
Jose M Gonzalez (jose-pctechasap) said :
#9

Hi Alex,

Yes I see, there is no reference ot REQUEST_URI at line 448...

I've downloaded the kit.class.php file from the hosted server and checked that one. It is identical to the one you have up on launchpad...

I'll ask them if they are using a PHP caching engine and get right back to you...

Thanks,

Jose

Revision history for this message
Jose M Gonzalez (jose-pctechasap) said :
#10

Hi Alex,

Yes I see, there is no reference ot REQUEST_URI at line 448...

I've downloaded the kit.class.php file from the hosted server and checked that one. It is identical to the one you have up on launchpad...

I'll ask them if they are using a PHP caching engine and get right back to you...

Thanks,

Jose

Revision history for this message
Jose M Gonzalez (jose-pctechasap) said :
#11

Hi Alex,

I've got them on chat now, they say that they don't use any PHP cacheing or AppCellerator

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

I don't see how that error message can be correct then. I expect they
do, they just don't know what they're talking about.

We can check easily enough. If you run the Report Fault wizard and get
a troubleshoot.txt file and mail it to me I can tell you.
<email address hidden>

Alex

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

The troubleshoot.txt file doesn't show any issues.

You'll have to start narrowing down which line is failing by adding
print statements or something to the code, as if the line numbers
aren't accurate then I've no idea what's going wrong.

http://bazaar.launchpad.net/~xibo-maintainers/xibo/biela/view/210/server/lib/app/kit.class.php#L426

Logically, the error is where REQUEST_URI is not set. But if you look
at the function, the first thing the code does is check if it's not
set and sets it to something.

We don't test with IIS and I certainly wouldn't run anything on it
myself. If you find what the issue is, let us know and we'll see if
there's some way we can patch it.

Alex

Revision history for this message
Jose M Gonzalez (jose-pctechasap) said :
#14

Okay, I'll look into it but in the meantime I'm on a deadline...

For now, I'm just going to have to switch to Linux hosting if it will take care of the isssue. Could you recommend a hosting company you know that plays well with Xibo? Perferably in the states...it's like 11PM over there. Thanks for looking at this and sacrificing sleep over it.

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

Hi Jose

I sent you my recommendation directly. Have a look at the Xibo Directory for companies offering hosting (http://directory.xibo.org.uk). Ideally you wouldn't run on shared hosting as they often cripple PHP which can complicate things.

Hope that helps.

Alex

Can you help with this problem?

Provide an answer of your own, or ask Jose M Gonzalez for more information if necessary.

To post a message you must log in.