I keep receiving the error message 'It is required that you upload an image for your image advertisement.' when I try to create an image ad. I am logged in as user 1, modules are enabled (ad, file cache, image ad, report), upload is also enabled, all permissions have been set.

When I fill out the form for creating an image ad and preview (or submit), it shows the image uploaded but I still get the error and cannot make the image ad.

I have tried working on this for a few hours and cannot figure out anything except there might be a bug. I didn't have this problem until I updated from 5.x-1.4-1.

Comments

mkinnan’s picture

Title: Cannot create an image ad. » AD module not compatible with IMAGE module

After playing around some more, I think I found the problem. The Ad module does not appear to be compatible with the Image module. I was trying to attach the image through the ATTACHED IMAGES and then selecting an EXISTING IMAGE on the server.

It appears that images must be uploaded through FILE ATTACHMENTS.

Can anyone verify the compatibility issue??

Mark

jeremy’s picture

Status: Active » Closed (works as designed)

You are correct, that ad_image module uses the upload module for managing images. Please see documentation/README.txt for more information.

maitrat’s picture

Hi,
I'm using the latest version of Drupal and am getting this issue when I try to create an Image Ad:
"It is required that you upload an image for your image advertisement."

Can anyone verify if this is still a compatibility issue?

Thanks!!

mattbaya’s picture

Version: 5.x-1.5-rc2 » 6.x-2.x-dev

I'm encountering this same problem using the latest ad module and Drupal 6.12 and it persists even after turning off the image module, so I don't think that's the issue. I cant create an image ad since it never seems to recognize that I am attaching a file. I can create html ads fine since they dont require uploads. If it gave an error saying it couldn't upload then at least I'd have something to go on but instead I just get "It is required that you upload an image for your image advertisement.". Is there perhaps a log file I can inspect to get more information on where this problem is occurring?

Thanks

-Matt
Svaha LLC

thesubtledoctor’s picture

In the image upload fieldset you have to browse to the image you want to upload and select it, then hit the "Attach" button right below it to upload to the temporary folder - only then it will be possible to save the ad.

freatida’s picture

I have the same problem as #4.

#5 - I try attaching immediately and it tells me my image exceeds the 1MB file size limit. I know it doesn't though.
If I don't attach, and just save the node, I get the "It is required that you upload an image for your image advertisement." message, but the image appears as uploaded.
If I hit save again, I get the same error message and the image has disappeared.

freatida’s picture

An update: if I create a new role, with just the ad and upload module permissions, but nothing else, it works.