Drupal 6.14
FCKeditor 2.6.4.1
File system Writable public
GD Library bundled (2.0.34 compatible)
Image Toolkit GD toolkit installed
MySQL database 5.0.77
PHP 5.2.9
PHP memory limit 100M
IBrowser Chrome/IE/Firefox
----
Ubercart 6.x-2.0-rc6
CCK 6.x-3.x.-dev (2009-sep-21)
FileField 6.x-3.1 (2009-Jul-03)
Image 6.x-1.0beta3
ImageAPI 6.x-1.6
ImageCache 6.x-2.0-beta10
ImageField 6.x-3.1
Transliteration 6.x-2.1
-----

I have problems to upload a thumbnail in the Ubercart product, neve find a patch that works. I udate Drupal core and all the modules.

I try a patch post in:
http://drupal.org/node/297035
filefield297035.patch

Dosent work for me, even when I clear the drupal cache, flush the imagecache and all files of my browser.

I downgrade the FileField to 6.x-3.0-alpha2 and it works, it put the thumbnail of the product but diplay other bunch of errors.

Then I upgrade all, run cron, run update, clear chaches, and the... same problem...

{ "status": true, "data": "\x3cdiv id=\"edit-field-image-cache-0-ahah-wrapper\"\x3e\x3cdiv class=\"form-item\" id=\"edit-field-image-cache-0-wrapper\"\x3e\n \x3cdiv class=\"filefield-element clear-block\"\x3e\x3cdiv class=\"widget-preview\"\x3e\x3cdiv class=\"imagefield-preview\"\x3e\x3cimg src=\"http://futosa.com.mx/portal/sites/default/files/imagefield_thumbs/alumin...\" title=\"aluminium-base.jpg\" /\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class=\"widget-edit\"\x3e\x3cdiv class=\"form-item\" id=\"edit-field-image-cache-0--remove-wrapper\"\x3e\n \x3cinput type=\"checkbox\" name=\"field_image_cache[0][_remove]\" id=\"edit-field-image-cache-0--remove\" value=\"1\" class=\"form-checkbox content-multiple-remove-checkbox\" /\x3e\n\x3c/div\x3e\n\x3cinput type=\"hidden\" name=\"field_image_cache[0][fid]\" id=\"edit-field-image-cache-0-fid\" value=\"282\" /\x3e\n\x3cdiv class=\"form-item\" id=\"edit-field-image-cache-0-data-alt-wrapper\"\x3e\n \x3clabel for=\"edit-field-image-cache-0-data-alt\"\x3eAlternate Text: \x3c/label\x3e\n \x3cinput type=\"text\" maxlength=\"80\" name=\"field_image_cache[0][data][alt]\" id=\"edit-field-image-cache-0-data-alt\" size=\"60\" value=\"\" class=\"form-text imagefield-text\" /\x3e\n \x3cdiv class=\"description\"\x3eThis text will be used by screen readers, search engines, or when the image cannot be loaded.\x3c/div\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-field-image-cache-0-data-title-wrapper\"\x3e\n \x3clabel for=\"edit-field-image-cache-0-data-title\"\x3eTitle: \x3c/label\x3e\n \x3cinput type=\"text\" maxlength=\"500\" name=\"field_image_cache[0][data][title]\" id=\"edit-field-image-cache-0-data-title\" size=\"60\" value=\"\" class=\"form-text imagefield-text\" /\x3e\n \x3cdiv class=\"description\"\x3eThe title is used as a tool tip when the user hovers the mouse over the image.\x3c/div\x3e\n\x3c/div\x3e\n\x3cinput type=\"hidden\" name=\"field_image_cache[0][list]\" id=\"edit-field-image-cache-0-list\" value=\"1\" /\x3e\n\x3cinput type=\"submit\" name=\"field_image_cache_0_filefield_remove\" id=\"edit-field-image-cache-0-filefield-remove\" value=\"Remove\" class=\"form-submit\" /\x3e\n\x3c/div\x3e\x3c/div\x3e\n\x3c/div\x3e\n\x3c/div\x3e\x3cscript type=\"text/javascript\"\x3ejQuery.extend(Drupal.settings.ahah, { \"edit-field-image-cache-0-filefield-upload\": { \"url\": \"/portal/filefield/ahah/product/field_image_cache/0\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-image-cache-0-ahah-wrapper\", \"selector\": \"#edit-field-image-cache-0-filefield-upload\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"op\": \"Upload\" } }, \"edit-field-image-cache-0-filefield-remove\": { \"url\": \"/portal/filefield/ahah/product/field_image_cache/0\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-image-cache-0-ahah-wrapper\", \"selector\": \"#edit-field-image-cache-0-filefield-remove\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"field_image_cache_0_filefield_remove\": \"Remove\" } } });\x3c/script\x3e" }

In fact, the file was upload to the server, but diplay this error and dont display the thumb in the catalog of ubercart.

Thank all for the support.

Comments

ferrangil’s picture

Subscribing. Very similar problem...

mnkylord’s picture

Yeah, bizarre, this just started happening to me today, too. I've been able to upload PDF files to the site I'm building without a problem up until this point. Now I'm getting a dump of text. Could this have something to do with a recent update of some kind?

ferrangil’s picture

For sure, I updated FileField and a few other modules last week, but it would be normal to find too many issues if there's a big real bug.
I've been able to upload an image while creating a node, but I didn't change anything...

mnkylord’s picture

The PDF file I'm uploading is appearing in the folder where it belongs, but the content form doesn't seem to believe a file as been uploaded (it is a required field, so the form complains) The wall of text above appears below the FileField control.

This is driving me bonkers. :| I've been fiddling with it all day to see if another module is causing the conflict, and with no success.

psychoman’s picture

Priority: Normal » Critical

have the same bug.
it appeared just today )))))) before it worked fine ))) maybe there is something with servers os, some new patches?

what kind of mystery is it?

mnkylord’s picture

I can tell you what kind of mystery it is... but I'm pretty sure it would involve some fairly vulgar language. ;)

My work is currently at a stand-still, as my client's requirements include an easy way to upload PDF newsletters to their website. Without this functionality, I'm dead in the water. And so far, I've spent 2 days trying to figure out what's going on. I've even gone so far as to try a completely fresh installation of Drupal, but to no avail.

Current Setup:
- Drupal 6.14
- MySQL 5.0.67
- PHP 5.2.9
- PHP memory limit 32M
- Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
-------------------------
- CCK 6.x-2.5
- FileField 6.x-3.1
- Views 6.x-2.6
- Transliteration 6.x-2.1

So far, the different files sizes I've tried range from 800k to 1.2 MB

I'm still at a bit of a loss as to why it was working fine 2 days ago, and all of a sudden, it stopped. I didn't add any/enable any new modules, nor make any changes to drupal itself. Almost all the work I was doing up until that point involved editing the style sheet, and adding content.

EDIT:
tried upping php memory to 64M and php file limit size to 10M, no change.

mnkylord’s picture

UPDATE:

I finally found the culprit (in my particular case, anyway). And it's quite bizarre:

Turns out, in my site's theme, I had accidentally closed my php block in my template.php file, AND had an extra empty line after the block. Interestingly, this isn't even the theme being used for my administration pages (using Garland for the Admin area, and for content creation).


<? php
template code...
?>
<----[Empty Line Here]

This extra space/carriage return was, somehow, someway, borking the FileField. It's absolutely reproduceable: I remove the extra lines from template.php, and bam, it suddenly works exactly like it's supposed to. I go back and re-add them, and it's broken again. Anyway, I just removed the closing "?>" end of the php tag, as recommended in the drupal documentation here under template.php: http://drupal.org/node/171194 . I'm not sure how it sneaked in there in the first place, honestly... Maybe my IDE decided I didn't know what I was doing, and thought it would "help" me out. ;P

Anyway, this has been the source of my woes... and a 3 day time-sink. :P Hopefully, this will be helpful to the other folks experiencing this problem.

psychoman’s picture

Status: Active » Fixed

lol

I have read about empty spaces causing problems in drupal, but who expected it would be so tricky )))

thank you!

scottsawyer’s picture

Status: Fixed » Active

Same problem here. Changed Admin Theme to Garland, changed upload type to file. Image uploads, but Drupal chokes.

psychoman’s picture

Found another solutions for bug :)
If use firefox instead opera 10 it works fine.

after reading this:
http://www.ubercart.org/forum/module_support/8500/image_upload_problems

quicksketch’s picture

I've found that Opera 10.01 corrects the upload problem for me. Seems like an Opera 10.0 (bleeding edge, initial release) problem.

quicksketch’s picture

Category: bug » support
Priority: Critical » Normal
Status: Active » Closed (fixed)

Closing after lack of activity. It sounds like this was a theming problem for several users. See #612754: JS upload broken in Opera 10.1x for Opera problems.

manjeet’s picture

Thanks,

This is a space issue.