Hi. I really love this module and i can't get it to upload images on Drupal 5.1. I browse for a file, click the upload button, it runs the uploading pattern briefly and then returns to the same page. The image does not appear in the specified folder. I am using PHP version 5.2.1

I tried the node_images on a 4.7 installation and it worked fine which is how it know it is what i need.
Any suggestions on how to get the upload working? Thanks!

Comments

gork’s picture

Sorry, nevermind. This appears to be an issue with the upload module as i can't upload with that either. I'll go check that out now.

johanster’s picture

Just wanted to post a caveat that I encountered, which also made it impossible for me to upload images.

I have a custom theme using PHPTemplate which was developed for Drupal 4.x. When upgrading to version 5.0 the theme seemed to work fine so I just left it as it was. However since the version 5.x a new variable ($scripts) is used to generate the script tags which my theme was missing, which meant that node_images.js was not loaded. Adding the new variable solved all my problems.

It took me a while to figure this out, so hopefully this will save someone a few hours debugging. Thanks Stefano for a great module!

stefano73’s picture

Status: Active » Fixed

node_images.js is loaded only in the node gallery, it has nothing to do with images upload. If $script was missing, I guess upload.js and progress.js were not loaded.

agn507’s picture

Status: Fixed » Active

I am currently having this exact same problem on both my local install and on my server. It doesnt seem to be a problem with the upload module because flashvideo works fine and so do file attachments. I have the latest version of drupal and node_images but i still cant upload an image! I click browse, select the file and hit upload. It appears to go do some work briefly then the upload file box clears out and im at the same page without any notifications of what happend. I check to see if the file has actually been uploaded and if there is an entry in the database but there is nothing there.

Any input would be great!

agn507’s picture

Status: Active » Fixed

Ok i verified this was a theme issue. I haven't yet figured out what exactly is causing the problem but i'll report back when i figure it out. I switched back to the default garland theme and it worked perfectly!

kalashari’s picture

This is a theme issue.... I just fixed it... Make sure that in page.tpl.php you do print $scripts inside your .... section.

kalashari’s picture

at the top, inside the HEAD section.

Anonymous’s picture

Status: Fixed » Closed (fixed)