loadsys / loadsys/twitter-bootstrap-helper
Random error
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 168
- Forks
- 52
- PR merge metrics
- No merged PRs in 30d
Description
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 ?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with app/View/Layouts/default.ctp and the helper declarations in AppController.php. Investigate the intermittent flashes() call and compare the Session and TwitterBootstrap helper setup; use the reported error and request frequency as reproduction clues. Done means identifying the cause and documenting or verifying a reliable fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100