Jump to content

GD Library problems . . . ARG! Please help! (integration with dadabik)


elihorn

Recommended Posts

Hi I'm trying to set up a website that can be added to and edited by my client. So far I am using Dadabik as the major updating process . . . the client can us it to insert content, images etc.

Now I am trying to integrate PHP GD Library extensions into the business_logic.php (backbone of the Databik program) to automatically generate thumbnails each time an image is uploaded.

Alone, the thumbnail generating php script works fine. I tested it on my home server (localhost/in4mation/) but as soon as the code was moved to the business_logic.php file in localhost/in4mation/dadabik/includes' (which is where it needs to be) or even if I moved the full working test file into the dadabik folder it stopped working giving me the following error:

[quote][color=maroon][size=8pt]Warning: imagesx(): supplied argument is not a valid Image resource in C:\wamp\www\in4mation\dadabik\include\business_logic.php on line 1924

Warning: imagesy(): supplied argument is not a valid Image resource in C:\wamp\www\in4mation\dadabik\include\business_logic.php on line 1925

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in C:\wamp\www\in4mation\dadabik\include\business_logic.php on line 1942

Warning: imagedestroy(): supplied argument is not a valid Image resource in C:\wamp\www\in4mation\dadabik\include\business_logic.php on line 1950[/size][/color][/quote]

I would have posted this on the dadabik forum, but a similair post is up and the answers are useless.
Any ideas anyone??! For some reason it has to do with what folder it's in, and it has nothing to do with the permissions . . .  ???

Thanks in advance :)
well i'm confused. you said it works fine at home but not on the server. both path examples you used are *nix path formats. but your warnings show windows path format.

i would tell you that you are not using the right path, but that extra *nix/win thing kinda seems odd...
In both cases I'm reffering to my home testing server http//:localhost/..., also C:\wamp\www\, they are the same thing, one is the http address, the other is the local root. I have double checked the paths a million time . . .  >:( . . . I don't get it! I think I could get it to generate the thumbs when the actual website is called up, but it would be nicer to do it when they are uploaded

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.