I am working on a Laravel 4 application that is configured to use the file
$_SESSION
driver, which appears to be causing some problems for me. The problem arises randomly, and does not happen very often, and tends to happen when I try and click on an <a href="...">
quickly before the entire page is done loading (there is a large amount of information loaded on each page so page loads can be a bit slow). The error will also appear at times after waiting for the page to load completely.
Here is the error message I'm getting:
From what I understand, it looks like whenever my application decides it wants to load a (cached?) view from app/storage/views
, it is not is not grabbing one or more of the objects that is passed to the view from my controller, and that is why I am getting a non-object error message.
I have tried experimenting by deleting the specific storage view in both the controller before the view is loaded and in the actual view itself (in app/views
) with the following:
<?php
$badFile1 = storage_path() . '/views/d84ddef7152ff1956fc7aa87ddf29ba0';
if(file_exists($badFile1))
{
$delete = unlink($badFile1);
}
?>
But even this will still throw the error (although without showing the line #) from the file in app/storage/views
, even though the file doesn't even exist:
Can anyone explain why this is happening and/or what I can do to fix this problem?