Welcome Guest, Not a member yet? Register   Sign In
Session Redirect Issue (maybe)
#1

[eluser]christeso[/eluser]
Hello,

All of a sudden my app stopped working. I get a white screen 500 error and no error log is produced.

To isolate the issue I created a simple test controller and view. I am able to call this view without error after clearing cookies. If I then refresh the page I get the 500 error again.

I am autoloading the following:
$autoload['libraries'] = array('database', 'session', 'cart');
$autoload['helper'] = array('image_helper','url','string_helper');

image_helper contains the following:

Code:
function image_thumb($image_path, $image_name, $height, $width)
{
    // Get the CodeIgniter super object
    $CI =& get_instance();

    // Path to image thumbnail
    $image_thumb = dirname($image_path) . '/' . $image_name . '_' . $height . '_' . $width . '.jpg';

    if( ! file_exists($image_thumb))
    {
        // LOAD LIBRARY
        $CI->load->library('image_lib');

        // CONFIGURE IMAGE LIBRARY
        $config['image_library']    = 'gd2';
        $config['source_image']     = $image_path;
        $config['new_image']        = $image_thumb;
        $config['maintain_ratio']   = TRUE;
        $config['height']           = $height;
        $config['width']            = $width;
        $CI->image_lib->initialize($config);
        $CI->image_lib->resize();
        $CI->image_lib->clear();
    }

    return '<img src="' . dirname($_SERVER['SCRIPT_NAME']) . $image_path . '" />';
}

If I remove the session autoload I can refresh to my hearts content.

I am locally testing using MAMP pro.

Any thoughts?

Thanks,
Chris


Messages In This Thread
Session Redirect Issue (maybe) - by El Forum - 01-05-2011, 06:25 PM
Session Redirect Issue (maybe) - by El Forum - 01-05-2011, 06:44 PM
Session Redirect Issue (maybe) - by El Forum - 01-05-2011, 06:47 PM
Session Redirect Issue (maybe) - by El Forum - 01-05-2011, 11:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB