Skip to content

Random error #34

@mrahmadt

Description

@mrahmadt

Hi

from time to time I'm getting this random error in my log (2-3 times a day with 500 users per day)

PHP Fatal error: Call to a member function flashes() on a non-object in /var/www/web/app/View/Layouts/default.ctp

I'm using the following code in default.ctp

try{
    echo $this->Session->flash();
    echo $this->TwitterBootstrap->flashes();
} catch (Exception $e) {}   

Also I have the helper defined in AppController.php
public $helpers = array('Time','Text','Session','Form','Html','Cache','TwitterBootstrap.TwitterBootstrap');

What do you think the problem is? can this be related to APC caching ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions