[Xerte] Re: White Screen Of Dead

Jose Diaz xt4mhz at yahoo.com
Tue Dec 6 13:04:06 GMT 2011


Hi David.

As I can see:

"index.php" (before switch.txt) in line #6 calls "config.php"

... then ...


"config.php" in line #59 calls "database.php" through "require_once("database.php");]" sentence

In "database.php" there is no "require" sentence.

I cant see whats going on :S

Thanks again.

José.

 
--
Lic. José Gregorio Díaz Unda.
Asesor de Tecnologías de Información y Comunicación.
Tel.: 58.0412.5518085
Skype: xt4mhz
Web: www.usb.ve - jgdu.blogspot.com


________________________________
 De: David Goodwin <david at palepurple.co.uk>
Para: Jose Diaz <xt4mhz at yahoo.com>; Xerte discussion list <xerte at lists.nottingham.ac.uk> 
CC: Xerte discussion list <xerte at lists.nottingham.ac.uk> 
Enviado: Lunes, 5 de diciembre, 2011 19:56:18
Asunto: Re: [Xerte] Re: White Screen Of Dead
 

The redeclared function one is a fatal error. Make sure database_functions.php (sp?) is loaded through require_once and NOT include or require. 


David. 

David Goodwin 
Pale Purple Ltd. 
http://www.palepurple.co.uk
0845 0046746
07792 380669

On 5 Dec 2011, at 23:33, Jose Diaz <xt4mhz at yahoo.com> wrote:


Hi David and thanks in advance.
>
>
>Now there are some errors:
>
>
>When I open the login page and try to sign in, a message says:
>
>
>Notice: Undefined variable: session_id in /var/www/xot/index.php on line 118 Fatal error: Cannot redeclare database_connect() (previously declared in /var/www/xot/website_code/php/database_library.php:28) in 
/var/www/xot/website_code/php/database_library.php on line 71 
>
>
>And in the Apache's error_logs says:
>
>
>[Mon Dec 05 18:56:52 2011] [error] [client 172.17.10.174] PHP Notice:  Undefined variable: form_string in /var/www/xot/index.php on line 30
>[Mon Dec 05 18:57:15 2011] [error] [client 172.17.10.174] PHP Notice:  Undefined variable: session_id in /var/www/xot/index.php on line 118, referer: http://172.17.10.174/xot/
>[Mon Dec 05 18:57:15 2011] [error] [client 172.17.10.174] PHP Fatal error:  Cannot redeclare database_connect() (previously declared in /var/www/xot/website_code/php/database_library.php:28) in /var/www/xot/website_code/php/database_library.php on line 71, referer: http://172.17.10.174/xot/
>
>
>
>debug.log stills shows:
>
>
>2011-12-05 18:56:52 /var/www/xot/website_code/php/database_library.php127Running : SELECT * FROM sitedetails
>2011-12-05 18:57:15 /var/www/xot/website_code/php/database_library.php127Running : SELECT * FROM sitedetails
>
>
>Does it make sense?
>
>
>José.
> 
>--
>Lic. José Gregorio Díaz Unda.
>Asesor de Tecnologías de Información y Comunicación.
>Tel.: 58.0412.5518085
>Skype: xt4mhz
>Web: www.usb.ve - jgdu.blogspot.com
>
>
>________________________________
> De: David Goodwin <david at palepurple.co.uk>
>Para: Jose Diaz <xt4mhz at yahoo.com>; Xerte discussion list <xerte at lists.nottingham.ac.uk> 
>Enviado: Lunes, 5 de diciembre, 2011 18:45:10
>Asunto: Re: [Xerte] White Screen Of Dead
> 
>
>Hi,
>
>
>Check /etc/php5/apache2/php.ini
>
>
>Ensure display_errors is turned on.
>
>
>Check /var/log/apache2/error_log 
>
>
>Failing that, specify an explicit error log for PHP in the php.ini file above, touch it, chmod 777 it, restart apache and then try again.
>
>
>
>
>David.
>
>
>
>
>On 5 Dec 2011, at 22:52, Jose Diaz wrote:
>
>Hi Pat.
>>
>>
>>In config.php I changed:
>>
>>
>>Line 24: From ... $development = false; ... to ... $development = true;
>>Line 28: From ... ini_set('error_reporting', 0); ... to ... ini_set("error_reporting",1);
>>
>>
>>The file "/tmp/debug.log" was created and shows:
>>
>>
>>2011-12-05 15:56:36 /var/www/xot/website_code/php/database_library.php127Running : SELECT * FROM sitedetails
>>
>>
>>
>>... every time I try to access with a declared user in "index.php".
>>
>>
>>Any idea?
>>
>>
>>Thanks in advance.
>>
>>
>>José Gregorio.
>>
>> 
>>--
>>Lic. José Gregorio Díaz Unda.
>>Asesor
 de Tecnologías de Información y Comunicación.
>>Tel.: 58.0412.5518085
>>Skype: xt4mhz
>>Web: www.usb.ve - jgdu.blogspot.com
>>
>>
>>________________________________
>> De: Pat Lockley <patrick.lockley at googlemail.com>
>>Para: Jose Diaz <xt4mhz at yahoo.com>; Xerte discussion list <xerte at lists.nottingham.ac.uk> 
>>Enviado: Lunes, 5 de diciembre, 2011 16:34:28
>>Asunto: Re: [Xerte] White Screen Of Dead
>> 
>>i'd edit switch.php then do an ini_set("error_reporting",1)
>>
>>I'd imagine the changes to database.php have broken switch
>>
>>On Mon, Dec 5, 2011
 at 8:44 PM, Jose Diaz <xt4mhz at yahoo.com> wrote:
>>> Hi people, I hope all of you be ok.
>>>
>>> I'm not sure if you covered this situation, sorry if you did.
>>>
>>> Recently I:
>>>
>>> 1. Downloaded http://www.nottingham.ac.uk/xerte/downloads/xertetoolkits.zip
>>> 2. Executed in my Ubuntu box:
>>>
>>> # mysql -p
>>>> create database xot default charset 'utf8';
>>>> grant all privileges on xot.* to xot@'localhost' identified by
>>>> 'MySecretPassword';
>>>> flush all privileges;
>>> # tar xvvf xertetoolkits.zip
>>> # chmod 0777 xot
>>> # chmod 0777 xot/setup/
>>> # chmod 0777 xot/USER-FILES/
>>> # chmod 0777 xot/error_logs/
>>> # chmod 0777
 xot/import/
>>> # chmod 0777
 xot/setup/database.txt
>>>
>>> ... followed the web setup wizard ...
>>>
>>> # mv index.php index.php.orig
>>> # mv switch.txt index.php
>>>
>>> When I try to sign in with any account declared in switch.txt (now
>>> index.php), it shows a very big white screen of dead.
>>>
>>> Any idea?
>>>
>>> Sorry if this has been covered already.
>>>
>>> Thanks again.
>>>
>>> José.
>>>
>>> --
>>> Lic. José Gregorio Díaz Unda.
>>> Asesor de Tecnologías de Información y Comunicación.
>>> Tel.: 58.0412.5518085
>>> Skype: xt4mhz
>>> Web: www.usb.ve - jgdu.blogspot.com
>>>
>>> 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 mailing list
>>> Xerte at lists.nottingham.ac.uk
>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>>
>>> 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.
>>>
>>>
>>
>>
>>
>>
>>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 mailing list
>>Xerte at lists.nottingham.ac.uk
>>http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>
>>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.
>>
>>
>
>Pale Purple Ltd.  (Company No: 5580814)
>'Business Web Application Development and Training in PHP'
>
>
>http://www.palepurple.co.uk   
>Office: 0845 0046746     Mobile: 07792380669 
>
>
>Follow us on Twitter: @PalePurpleLtd
>
>
>
>
>
>
>
>
>
_______________________________________________
>Xerte mailing list
>Xerte at lists.nottingham.ac.uk
>http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
>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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20111206/d59d81fc/attachment-0001.html>


More information about the Xerte mailing list