Jump to content

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


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
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.