Image does not upload?

derrickknight - September 21, 2007 - 16:22
Project:Advertisement
Version:5.x-1.5-rc1
Component:ad_image module
Category:support request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

I have enabled the upload module in my Drupal 5.2 installation (and is confirmed operational from the user profile image upload capability), however when I attempt to attach an image for an image_ad, it finds the file and states that it is being placed in the files directory, yet when submitted, it never actually uploads the file.
I verified the files directory is fully writeable and the image is a jpg that is only 24K in size.
Do I need to configure anything else to get the image file upload working in ad_image?
Thanks,
Derrick

#1

derrickknight - September 21, 2007 - 16:36

Just an additional note:
I confirmed that if I manually upload the file via ftp, it works. Preview also shows the filename in the file attachment container, but no file is actually uploaded.

#2

derrickknight - September 21, 2007 - 17:34

The fileid (fid) in the ad_image table does not appear to be updating with the new file info. Nor does the image appear to be loaded into the files table?

#3

derrickknight - September 21, 2007 - 18:07
Priority:critical» normal
Status:active» closed

Yeah... I found the issue. It was with upload tmp directory. I changed it to files/tmp and everything works.
Sorry to be a bother. Hopefully this will help someone else.

-Derrick

#4

Jeremy@kerneltr... - September 21, 2007 - 18:11

Thank you for updating the issue with how you ultimately fixed the problem. That is much appreciated, for as you say it may help other people having the same problem.

#5

beerman - April 2, 2008 - 14:59
Component:ad_image.module» ad_image module

step-by-step for dummies please :)

#6

shawnpetriw - April 19, 2008 - 19:48
Status:closed» active

I'm having this issue too, but the tmp file is just fine.

Amazingly, at my test site, using the exact same database and code base, file attach works as expected. On my production site it does not. It tries to upload the image, and then it craps out.

Both are hosted by the same company, on the save server. I have no idea where to look to resolve this.

Thankfully, the newest version of the ads module allows for HTML ads, so I can do what I need manually.

for beerman, I think freerangeminds was talking about the file system settings, found at /admin/settings/file-system

#7

Jeremy@kerneltr... - April 19, 2008 - 19:54
Status:active» active (needs more info)

"And then it craps out" isn't especially useful. Please provide more information.

#8

Jeremy@kerneltr... - April 19, 2008 - 19:57

Also, are you really using "5.x-1.3-2"?

#9

shawnpetriw - April 19, 2008 - 20:17
Status:active (needs more info)» active

Unfortunately, the html ad does not appear to count the clicks, only how many times it is displayed. I guess this was to be expected.

Any ideas what I might have to add to my HTML in that ad type to make it count clicks? A script I can pull out from the module itself?

#10

shawnpetriw - April 19, 2008 - 20:33

Alternatively, is there a way I could override the need to use upload module to upload the image ad, and do this manually?

The real issue is to get the upload module working correctly - it's so elegant with the ad module when it works as it should.

#11

Jeremy@kerneltr... - April 19, 2008 - 20:50
Status:active» active (needs more info)

Please answer my questions, and let's keep this topic about issues with the ad_image module. If you'd like to discuss the ad_html module, please open a new issue.

#12

shawnpetriw - April 19, 2008 - 21:40

Sorry, I've upgraded to the release candidate you posted today.

My real issue appears to be the core upload module somehow, or some other site configuration that I don't get.

#13

Jeremy@kerneltr... - April 20, 2008 - 00:31
Version:5.x-1.3-2» 5.x-1.5-rc1

Can you please provide a little more information about what symptoms you're experiencing?

#14

shawnpetriw - April 20, 2008 - 18:47

Jeremy - this is a great module, I appreciate your looking into this.

I have attached a picture of various screen shots.

Firstly, I am experiencing the problem with the latest dev release and the newer rc release. I tried both and am currently running the latest rc.

History: I had to fix something else regarding taxonomy and ads, so I uploaded a backup of my site to another site, blew out the old taxonomy, and re-installed the ad module. Worked great.

So I proceeded to make the same changes, using the same procedure, on my production site. Everything looked great until I tried to upload an image ad - the ad wouldn't upload (it doesn't attach and it doesn't get transferred to the files directory).

After looking everywhere I could look, and after re-installing the upload module (5.7) I finally decided to blow out my production site and copy everything from the backup site - file structure and database.

Imagine my surprise when I still have the same issue. Both these sites are hosted by the same host, on the same server, with the same setups (as far as I can tell).

I've attached a graphic:

1 - the expected behaviour experienced on my backup site.
2 - the "before" shot after I've selected a graphic to upload, but have not yet clicked attached.
3 - the "after" shot after clicking attach - no file attached.

AttachmentSize
ad_upload_fubar.jpg225.67 KB

#15

Jeremy@kerneltr... - April 21, 2008 - 13:46
Status:active (needs more info)» won't fix

Sorry, this is outside of the scope of the ad module -- you need to focus on getting the core upload module properly configured. It is most likely a permissions issue. I'd visit the upload module's administrative configuration page and make sure there aren't any errors there. I'd also check the watchdog log after attempting to upload an image, and see if there are any errors there. Finally, I'd check the web server's error logs (ie, Apache's error_log) after a failed upload attempt, and see if there are any errors there. Odds are very good that working through those debugging steps you will track down the configuration issue. If not, you'll want to take this up with upload module developers.

 
 

Drupal is a registered trademark of Dries Buytaert.