Welcome Guest, Not a member yet? Register   Sign In
gd2 problem?
#1

[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

Severity: Warning

Message: Unknown: 1 result set(s) not freed. Use mysql_free_result to free result sets which were requested using mysql_query()

Filename: Unknown

Line Number: 0

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
#2

[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.
#3

[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);
$this->load->library('Multi_upload');
            
$files = $this->multi_upload->go_upload ('letters');

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.
#4

[eluser]Ben Edmunds[/eluser]
I have an upload library. Maybe you should re-download CI.
#5

[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




Theme © iAndrew 2016 - Forum software by © MyBB