![]() |
gd2 problem? - 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: gd2 problem? (/showthread.php?tid=24615) |
gd2 problem? - El Forum - 11-14-2009 [eluser]stuffins[/eluser] Hey All, I just picked up a last minute freelance project and I am in serious trouble. The project was written in codeigniter and I have absolutely no experience with it. The app has a page that lets you upload an image and then the code makes a few queries and the resizes and crops the image a few times using GD2. When the code runs all I get is this: Code: A PHP Error was encountered if errors are turned off the page is just blank. phpinfo says php has been compiled with gd. my environment is os x 10.6, the base install of php with the os. anyone have any ideas? I have been dead in the water for the past 10 hours. -Chris gd2 problem? - El Forum - 11-14-2009 [eluser]Ben Edmunds[/eluser] Hey Chris, That is a MySQL error, not a php error with gd2. Post some of your code and we can help you out. gd2 problem? - El Forum - 11-14-2009 [eluser]stuffins[/eluser] I have been playing around with commenting stuff out, it seems this line makes everything go up in smoke, but doesnt report an error: Code: $this->load->library('upload', $config); The surrounding code looks like: Code: $this->load->library('upload', $config); there is no correlating library in the libraries folding for codeignitor. I'm pretty sure this must be a problem, but this is a code base I downloaded that was already up and working so I am confused as to why it wouldn't work for me. I double checked the ftp where I downloaded from, theres definitely not 'upload.php' in the lib directory. gd2 problem? - El Forum - 11-14-2009 [eluser]Ben Edmunds[/eluser] I have an upload library. Maybe you should re-download CI. gd2 problem? - El Forum - 11-14-2009 [eluser]stuffins[/eluser] Sorry for the hassle, I am a certified idiot. It was just the permissions on the directory the uploader was trying to move files to. All my google searches about os x and gd where about it not being installed properly so I assumed I was having the same problem. Oh well, thanks for the help. -Chris |