I'm developing a Drupal 4.7 site on a shared Dreamhost account, fresh install. php5.0.4, MySQL 4.1.18.
All modules are enabled (for testing) except the legacy module. Everything seems to be working well.
Base Settings
- File System Path: a off-site directory accessed via /home/username/...) directory permissions 777
- Download Method = private
So far, the following add-on modules are working well together:
- TinyMCE
- Image and Image Gallery
- Image Assist
When i add the flexinode module cvs version, all existing images/thumbnail links submitted via either the image or image assist module in my posts are broken. The path remains the same, but the images don't work. This is before even testing the flexinode module. In the administration log, I get the following error listed for each image:
500.shtml not found.
If I disable the flexinode module, the images re-appear.
Any ideas as to what is causing the images to disappear?
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | flexinode.module_9.patch | 3.55 KB | sja1 |
Comments
Comment #1
laith commentedAs an update, i've tested the image field type in flexinode and it seems to work. The image gallery field type, however gives the following error:
warning: Invalid argument supplied for foreach() in /home/mdlibcom/public_html/dev/frn/modules/flexinode/flexinode.module on line 576.which referrs to the following line of code:
foreach($items as $key => $item) {within the function:
Comment #2
samc commentedI tried to reproduce this and wasn't able to. I'm on Win32 XAMPP (php5/mysql5).
Comment #3
laith commentedUpon further analysis, i have decided to switch to CCK. All is working well.
Comment #4
Bèr Kessels commentedgallery field is *intentionally* not released for 4.7.
Comment #5
sja1 commentedI had the same sympton occur when I upgraded a site from 4.6 to 4.7. The images uploaded with image.module stopped appearing. After investigating, I discovered the following:
It looks like a modification to flexinode would be the easiest way to fix this bug, but I'm no expert on flexinode. Can anyone else duplicate this bug?
Comment #6
Bèr Kessels commentedsubscribing.
Comment #7
sja1 commentedThe flexinode_file_download function was returning a value of false when called for files not uploaded by flexinode. From what I can tell, looking at other implementations of hook_file_download, it should return nothing at all if the file is unrelated to flexinode. I've modified the 4.7.3 flexinode_file_download function to do just that, and it has solved the problem with images uploaded by the image module not displaying correctly. The modified code follows:
Comment #8
Bèr Kessels commentedsha, sorry to be nagging after all the hard work you already did. But would it be possible to make a real patch from this? I cannot see what you changed, nor see what the impact is!
More on patches at http://drupal.org/diffandpatch
Comment #9
samc commentedFYI...
This issue appears to be the root cause to a problem I've experienced with the Disk Node module, as well. The related Disk Node issue is here:
http://drupal.org/node/68297
Apparently a lot of modules incorrectly return false, and that module's maintainer has filed an issue against core, since the problem could be fixed there by not creating an entry in the $headers array when a module returns false:
http://drupal.org/node/78721
Comment #10
sja1 commentedTurns out making a "real" patch isn't as hard as I feared... here it is.
Comment #11
samc commentedHi sja,
Thanks, and congrats on your first patch!
One thing I noticed off the bat is that it the code indentation no longer meets with Drupal's coding standards, which call for two spaces and no tabs (http://drupal.org/node/318).
Aside from readability, one reason this is important is because it will allow us to review your patch and identify which lines of code are truly different. Right now they all show up as different because the spacing is unnecessarily changed.
Can you fix this and re-roll your patch?