Blank page served for anonymous user

toma - November 30, 2006 - 08:20
Project:Boost
Version:4.7.x-1.x-dev
Component:Code
Category:support request
Priority:critical
Assigned:Arto
Status:closed
Description

I set the module and the files on my server, when i log out to test, i receive only a blank page, only pages againts cache work, like my user page

Thanks for the module, i was waiting for since you write your article

good work

#1

Arto - November 30, 2006 - 09:31
Title:only blank page» Blank page served for anonymous user
Priority:normal» critical

It sounds like this could be a duplicate of #99834, but that was fixed several days ago. If you downloaded your copy of the module after 2006-11-28, you should already have the fixed version.

If the above isn't the problem, then please run through this troubleshooting checklist and report back the results:

1. Check the source of the blank page in the browser; is it truly empty, or does it at least contain the Boost one-line comment?

2. Check that the cache directory was created, and that it contains files. Check the file sizes and contents; are they zero bytes, or do they contain something?

3. Use the Boost settings to restrict caching to only cache one (non-important) page, and try to get that working first before trying to cache the whole site. (Don't use the site's front page for this test, as that is handled somewhat specially.)

#2

Arto - November 30, 2006 - 09:35
Assigned to:toma» Arto

#3

rizqi - November 30, 2006 - 10:11

i have been waiting this for so long time since i found drupal have problem with performance
here is my problem, the same as fili, my site is http://www.gck.co.id

1. i have check the source, its empty
2. yes, cache directory is created /gck.co.id/0/ but its empty
3. i've tried cache one page which is not important (not the front page) but it seems not working too

you can check the website, i have put the boost running even it still error since the website still in development

#4

Arto - November 30, 2006 - 11:00

Rizqi, thanks for your answers. After having looked at your site, I suspect this is a server configuration and/or mod_rewrite related issue. I came to this conclusion because URLs that should be passed through to Drupal unmodified (such as http://www.gck.co.id/index.php?q=node, or anything else with a query string) are still just giving a blank page instead.

(I'm assuming you have correctly replaced your .htaccess per the installation instructions?)

So, the very first thing you need to try and do is get the URLs with query strings working. They should be passed through to Drupal w/o any troubles, and it's surprising that this isn't working. I recommend to have a look at your Apache access and error logs to see if any output has been logged there. If you are in control of the server this is running on, you can try and enable mod_rewrite logging with the RewriteLog directive (this will not work in .htaccess, it must be put in the virtual host configuration itself).

Unfortunately, since I have not experienced this problem on any of the hosts I've run Boost on, there's only so much I can do to help. What might give some more clues is if you could create a phpinfo.php page, with the contents:

<?php
phpinfo
();
?>

...and either send me the output (to arto.bendiken@gmail.com), post it here as an attachment, or post the URL to it (depending on how public you want to make the information).

#5

rizqi - November 30, 2006 - 14:17

#3 lol, i mean the same problem as toma, not fili

arto, i have send the phpinfo link to your email
i have correctly set up the htaccess the same as the boost htaccess
i've tried it in www.eventku.com using drupal 4.7.4 the same as www.gck.co.id, but its not working too
since im using cpanel on shareng hosting, its not possible to enable the rewrite log

#6

Arto - November 30, 2006 - 14:36

I saw nothing immediately wrong in your PHP configuration.

Did you check the Apache error log for messages? Also, have a look at Drupal's watchdog log messages to see if there's anything fishy showing up there after trying to access e.g. http://www.gck.co.id/index.php?q=node.

Does the site start working again if you comment out everything between BOOST START and BOOST END in the .htaccess file?

#7

rizqi - December 2, 2006 - 07:35

Found it !!!!

the problem at boost.api.inc
file_put_contents available at PHP 5, its not working with me since im using PHP 4 :-)

here's my solution

if ( (!$handle = fopen($filename, 'a')) && fwrite($handle, $data) === FALSE) {
      watchdog('boost', t('Unable to write file: %file', array('%file' => $filename)), WATCHDOG_WARNING);
}

what do u think ?
its working now in www.gck.co.id

#8

rizqi - December 2, 2006 - 07:37

woops sorry, it should be

if (!$handle = fopen($filename, 'w')) {
           watchdog('boost', t('Unable to write file: %file', array('%file' => $filename)), WATCHDOG_WARNING);
} else {
  fwrite($handle, $data);
  fclose($handle);
}

i took it from the php manual handbook :-)

#9

Arto - December 2, 2006 - 16:36
Status:active» fixed

Thanks for tracking this down, Rizqi. I actually had a PHP4 implementation of file_put_contents() in a previous development version of Boost, but had left it out of the released version for some reason.

This has been fixed in the CVS commits #46934 and #46942.

#10

Anonymous - December 16, 2006 - 16:46
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.