Development

#1552 (inconsistent cache state causes completely blank screen for user)

You must first sign up to be able to contribute.

Ticket #1552 (new defect)

Opened 3 years ago

Last modified 2 years ago

inconsistent cache state causes completely blank screen for user

Reported by: Tom.Cowin Assigned to: fabien
Priority: major Milestone:
Component: cache Version: 1.0.17
Keywords: Cc:
Qualification: Unreviewed

Description

In the event that the cache reaches a state where the actions and templates subdirectories of the cached modules are empty, like so:

prod/modules/autoSubdivision: total 32 drwxrwxrwx 4 daemon daemon 4096 Mar 2 13:18 . drwxrwxrwx 16 daemon daemon 4096 Mar 5 11:40 .. drwxrwxrwx 2 daemon daemon 4096 Mar 5 11:40 actions drwxrwxrwx 2 daemon daemon 4096 Mar 5 11:40 templates

This problem will go away if you clear the cache, but.....

prod/modules/autoSubdivision/actions: total 16 drwxrwxrwx 2 daemon daemon 4096 Mar 5 11:40 . drwxrwxrwx 4 daemon daemon 4096 Mar 2 13:18 ..

prod/modules/autoSubdivision/templates: total 16 drwxrwxrwx 2 daemon daemon 4096 Mar 5 11:40 . drwxrwxrwx 4 daemon daemon 4096 Mar 2 13:18 ..

and yet the relevant config files are present in the cache, the user just sees a white, blank screen. They actually receive the html response header:

HTTP/1.1 200 OK Date: Mon, 05 Mar 2007 20:09:02 GMT Server: Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.8e DAV/2 PHP/5.2.1 X-Powered-By: PHP/5.2.1 Set-Cookie: symfony=0e76c38dd92f61e5e26c872e8e817868; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Length: 0 Content-Type: text/html

Connection closed by foreign host.

-- and that's it.

the log shows:

Mar 05 11:55:03 symfony [info] {sfContext} initialization Mar 05 11:55:03 symfony [info] {sfController} initialization Mar 05 11:55:03 symfony [info] {sfRouting} match route [homepage] "/" Mar 05 11:55:03 symfony [info] {sfRequest} request parameters array ( 'module' => 'default', 'action' => 'index',) Mar 05 11:55:03 symfony [info] {sfController} dispatch request Mar 05 11:55:03 symfony [info] {sfFilter} executing filter "sfRenderingFilter" Mar 05 11:55:03 symfony [info] {sfFilter} executing filter "sfBasicSecurityFilter"

In this situation, if I turn on debug, I get the following error:

*Warning*: require_once(/usr/local/symfony/myapp/cache/backend/prod/modules/autoJob/actions/actions.class.php) [function.require-once <http://fedora6/index.php/job/function.require-once>]: failed to open stream: No such file or directory in */usr/local/symfony/myapp/cache/backend/prod/config/modules_job_config_generator.yml.php* on line *4*

*Fatal error*: require_once() [function.require <http://fedora6/index.php/job/function.require>]: Failed opening required '/usr/local/symfony/myapp/cache/backend/prod/modules/autoJob/actions/actions.class.php' (include_path='/usr/local/symfony/myapp/lib:/usr/local/symfony/myapp:/usr/local/symfony/myapp/apps/backend/lib:/usr/share/pear/symfony/vendor:.:/usr/share/pear') in */usr/local/symfony/myapp/cache/backend/prod/config/modules_job_config_generator.yml.php* on line *4

Change History

03/07/07 16:27:05 changed by Tom.Cowin

1553 is a duplicate - I was trying to edit my Description and did not realize I was in a 'Create' screen....

08/11/08 18:22:56 changed by gnat

  • version changed from 1.0.0 to 1.0.17.
  • qualification set to Unreviewed.

has anything happened with this?? I have the same problem but I'm wondering if any additional information has been gleaned? Cause or anything?

08/19/08 15:22:13 changed by patrickespake

I have the same problem in symfony 1.1.

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.