CodeIgniter Forums
whats worng with this little function - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: whats worng with this little function (/showthread.php?tid=25993)



whats worng with this little function - El Forum - 01-03-2010

[eluser]runrun[/eluser]
this is a function inside controller, when i comment it out, the page loads normally, when i remove comment, the page is white(blank)

Code:
function _cropThumbnail($thumbName)
    {    
        $config['image_library'] = 'gd2';
        $config['source_image'] = FCPATH.'news_img/' . $thumbName;    
        $config['quality'] = '100%';
        $config['x_axis'] = 88 ;
        $config['y_axis'] = 66 ;
        $this->image_lib->initialize($config);
        if(!this->image_lib->crop()){ echo $this->image_lib->display_errors();}
    }



whats worng with this little function - El Forum - 01-03-2010

[eluser]Tim Reynolds[/eluser]
Try having a look at your server logs.

If you are running MAMP like myself the logs are located at /Applications/MAMP/logs.

This should point you in the right direction.