[Xerte] Re: White Screen Of Dead

Jose Diaz xt4mhz at yahoo.com
Tue Dec 6 14:54:16 GMT 2011


Hi David.

I did: root at pc06074-linux:/var/www/xot# grep -r database_library.php *

And the results:


config.php:    require_once(dirname(__FILE__) . '/website_code/php/database_library.php');
index.php:            include $xerte_toolkits_site->php_library_path . "database_library.php";
integration.txt:    include $xerte_toolkits_site->php_library_path . "database_library.php";
moodle_config.txt:    require_once(dirname(__FILE__) . '/website_code/php/database_library.php');
webctlink.txt:    include $xerte_toolkits_site->php_library_path . "database_library.php";

As I can see, the "index.php" file (before switch.txt) is including "database_library.php". So, I commented and now I can log in but with some visual glitches:

1.jpg : Log in page. There is some info missing under the "Sign In" button.
2.jpg and 3.jpg : After success login. the Projects and Templates are at the bottom of the page.
4.jpg : After log out. Again, there is some info missing under the "Sign In" button.
5.jpg : I tried to log in with any not existent user and the info under the "Sign In" button came up. No "notice" message at the upper left corner of the page.

Is this solution acceptable? ... I mean, commenting that line?

Why could be happening about visual mismatch of the page?

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> 
Enviado: Martes, 6 de diciembre, 2011 8:43:42
Asunto: Re: [Xerte] Re: White Screen Of Dead
 



On 6 Dec 2011, at 13:04, Jose Diaz wrote:

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

That's what I'd expect. The problem is that config.php is probably being loaded twice somehow.

The file you need to look for is called 'database_library.php'. Somewhere it's being loaded through a single 'require' call rather than 'require_once'.

David.

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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20111206/b5a366f7/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.jpg
Type: image/jpeg
Size: 36692 bytes
Desc: not available
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20111206/b5a366f7/attachment-0005.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4.jpg
Type: image/jpeg
Size: 36701 bytes
Desc: not available
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20111206/b5a366f7/attachment-0006.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3.jpg
Type: image/jpeg
Size: 32631 bytes
Desc: not available
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20111206/b5a366f7/attachment-0007.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.jpg
Type: image/jpeg
Size: 21211 bytes
Desc: not available
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20111206/b5a366f7/attachment-0008.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5.jpg
Type: image/jpeg
Size: 36309 bytes
Desc: not available
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20111206/b5a366f7/attachment-0009.jpg>


More information about the Xerte mailing list