Closed (duplicate)
Project:
Boost
Version:
6.x-1.0-beta1
Component:
PHP compatibility
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Jun 2009 at 23:25 UTC
Updated:
4 Jun 2009 at 08:19 UTC
Jump to comment: Most recent file
Comments
Comment #1
mikeytown2 commentedDo you have any errors or drupal messages that show up on your page?
#385924: Don't cache pages when there are PHP/MySQL errors
To test run this in a php code block
It should output messages:0 boost_is_cacheable():1 if its working correctly.
#478306: front page not cached
Comment #2
XerraX commentedThere were no errors in drupal log or in apache logs and the pages were displayed fine.
I will test the code-block later this day.
Comment #3
william haller commentederror_get_last() is reported as a PHP fatal error for undefined function for PHP 5.1 CentOS. Commenting out that bit of code in boost.module takes care of not serving pages here.
Comment #4
mikeytown2 commentedThanks for the heads up http://us3.php.net/error_get_last php 5.2 and up support it; I need to wrap it around a function_exists().
Comment #5
mikeytown2 commentedComment #6
mikeytown2 commentedlast one was bad forgot the () for the if statement.
Comment #7
XerraX commentedthe block says:
errors:2048 messages:0 boost_is_cacheable():1
I disabled the error_get_last stuff temporary, server is now serving the cached sites without problems.
where do i look for the error type?
Comment #8
mikeytown2 commented@XerraX
http://us3.php.net/manual/en/errorfunc.constants.php#errorfunc.constants...
PHP is nagging that somewhere in the code base your using some deprecated functions. I should probably make this (halt on error_get_last()) a setting on the performance page so pages can still be cached even if PHP is throwing dumb errors like this.
While you have that error would you mind running this PHP code block for me
It should give you nicer looking output.
Comment #9
mikeytown2 commentedMoving since this is the root issue
#385924: Don't cache pages when there are PHP/MySQL errors