[Xerte-dev] Re: reminder of what 1 means?

Smith, John J.J.Smith at gcu.ac.uk
Fri Mar 22 12:34:32 GMT 2013


Php true equates to 1 also (whereas false equates to '' - without the quotes - so effectively a blank string) so it could be echo true; or print($var); or anything...

If no header has been sent though then it must be at the top of index.php (or in one of the includes config, display_lib, auth, etc) before the <html> tag...

If you have access to the server then you could try putting an:

echo basename(__FILE__);

at the top of each included file (after <?php) and it will display the name of the include file... then you can see where the 1 is falling in the order that they are included...

Regards,

John Smith
Learning Technologist
School of Health & Life Sciences
Glasgow Caledonian University

-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: Friday, March 22, 2013 11:18 AM
To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: reminder of what 1 means?

Hi John
thanks for your response - yes viewing source also just shows 1

I know this has cropped up before on the list but just like searching the code base etc searching for just 1 brings up too many results. Fortunately this isn't urgent right now as it was just a test move to be repeated next week. I didn't do the move but I'll be keen to identify the cause/solution and will make a proper note of what this usually/typically means!

I'm sure Pat can tell us once the message reaches the cave?

Cheers
Ron

-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John
Sent: 22 March 2013 09:24
To: xerte-dev at lists.nottingham.ac.uk
Subject: [Xerte-dev] Re: reminder of what 1 means?

If you view the source then is there any html in there or does the page just consist of a single char?

Had a look in svn but it could be a legacy  echo statement that was in for debug purposes somewhere...

Regards

John Smith
Learning Technologist
School of Health and Life Sciences

Sent from Samsung Galaxy SII



Ron Mitchell <ronm at mitchellmedia.co.uk> wrote:


Hi all
very quick question - what does 1 typically mean when visiting an xot install? e.g. visiting the URL and get a blank page with only the digit 1 showing.
This is an installation that someone has moved from one server to another and I know I've seen this before but can't recall the primary cause.
Cheers
Ron




Glasgow Caledonian University is a registered Scottish charity, number
SC021474

Winner: Times Higher Education's Widening Participation Initiative of the Year 2009 and Herald Society's Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en
.html

Winner: Times Higher Education's Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,e
n.html

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in
error, please send it back to me, and immediately delete it.   Please do not
use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.


_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.

Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education’s Widening Participation Initiative of the Year 2009 and Herald Society’s Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Winner: Times Higher Education’s Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html


More information about the Xerte-dev mailing list