Right, I am at a loss here.

I have installed Upload (and checked it, it works), Image Cache and Node Gallery.

I then created a gallery.

Visiting the created Gallery I get the message:

"There are no photos in this gallery currently. Upload Some!"

Fine, so I click on Upload, then I select an image and click on Upload.

Immediately I am redirected to the original Gallery page reading:

"There are no photos in this gallery currently. Upload Some!"

So I've checked the /siteroute/files directory and there are no sign of the uploaded images, not even in the imagecache sub-directories.

Let me assure you, I have also checked that all the appropriate permissions are set.

Am I doing something wrong here?

Comments

dbeall’s picture

Category: bug » support
Priority: Critical » Normal

well, lets see, first question.. do you have "clean URLs" enabled?
Image cache requires it.
Is this a live site or a local machine or wamp/xamp

EDIT: the upload module is not required.

dbeall’s picture

also, is ImageAPI installed

Manamarak’s picture

Well, this is on a local machine, running XAMPP.

I do have clean URLs enabled.

I do have ImageAPI installed.

PS. I know the upload module is not required, but I figured that if I can upload using this module, then perhaps that would give me a clue that my server and upload folders were correctly configured.

dbeall’s picture

trying to figure out what might be wrong...

Since you set permissions for:
view imagecache node-gallery-cover
view imagecache node-gallery-display
view imagecache node-gallery-thumbnail
create node_gallery_gallery content
create node_gallery_image content
Did you try rebuilding permissions.

from the trouble shooting handbook page.. I know this is not the same trouble, but might be worth a try entering some value for the directory.
http://drupal.org/node/584170 ;Issue: Only administrator can upload images
5. For Gallery Directory, I entered 'gallery/%gid'

BTW, I love your web site! I'm into photography a little myself.

Tally’s picture

If I turn off javascript in my browser, I can reproduce your problem. As soon as I click submit from the window where I enter the pictures to upload, I am taken back to the gallery screen. When I turn javascript on, it works.

Do you have javascript turn off on your browser? If so, turn it on and try uploading.

Manamarak’s picture

Thank you dbeall, both for the help and the complement.

I have just checked that all permissions are as you said above.

I have also rebuilt permissions.

I then went through the troubleshooting page and set gallery settings as suggested, then rebuilt permissions again (for good measure) then tested again, but still no change. I still get redirected to the same gallery page that reads "There are no photos in this gallery currently. Upload Some!"

What I find strange is that no error message is displayed, no upload progress bar, nothing, just an immediate redirect.

I'm baffled.

PS. If we get this sorted, maybe you can upload a few of your photos to my *NEW*IMPROVED* version of Illustrated Photography. I really don't want to use Gallery2 (or Gallery3) on the new site, I'd much rather use a Drupal native solution like Node Gallery.

Manamarak’s picture

Thanks Tally,

My Javascript is turned on, so that doesn't seem to be the answer, though it might be a clue.

I have also tried it across three different browsers (IE FF and GC). All deliver the same effect.

Manamarak’s picture

Tally - YOU GENIUS.

It's got something to do with my theme.

When I switch to Minelli, it works.

Now to figure out why...

Manamarak’s picture

I have this in my header:

<script type="text/javascript"><?php /* Needed to avoid Flash of Unstyled Content in IE */ ?> </script>
  
  
  <!-- ACCORDIAN MENU -->

  
<script type="text/javascript" src="/sites/all/themes/ip/jquery-1.2.6.pack.js"></script>

<script type="text/javascript" src="/sites/all/themes/ip/ddaccordion.js">

/***********************************************
* Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

</script>

Is my error here.

Is it because I call jquery-1.2.6.pack.js?

Manamarak’s picture

Yep, removing the call to jquery-1.2.6.pack.js solves it.

Tally, I could kiss you.

And you, dbeall, if you'd let me.

:-D

Manamarak’s picture

Status: Active » Fixed

Done, it was because I had a call to an old version of jquery in my page.tpl.php.

Thanks again.

Tally’s picture

*blush*

Glad you got it fixed!

dbeall’s picture

Component: Code » Miscellaneous

glad it's fixed, you had me worried something was really wrong. I don't think this will be a common issue, or I would add it to the troubleshooting page.

Manamarak’s picture

Agreed, I can't see a lot of people running into this one, also I'm sure they'll be able to find it in a good old google search if they do run into it.

I'll keep you posted on when the site is completed.

Thanks again.

Manamarak’s picture

Just a thought though, but maybe you can add "If all else fails, attempt switching to a core theme" to the troubleshooting page.

dbeall’s picture

well, maybe, thing is.. I have never used a core theme,lol. My first things on every new Drupal site is admin_menu, globalredirect, change theme, pathauto, token, and a handful of other favorites. I have played with node gallery in my localtoast wamp, just for working on css and views..

You guys are just doing advanced stuff with your sites.

I work on project boost the same way, but that one is a little different.. or should I say, complicated.
I watch the issues real close for the reason of providing some documentation. If it comes up more than once, it's in there. Keep no secrets, take no prisoners...lol

Generally I go back through all the fixed and closed issues every so often any see if anything is looking important.. lol
anyway, I am waiting for the new release to hit the fan and see what pieces get thrown back, if you know what I mean. Probably going to have some rewrite to do.

Speaking of advanced stuff and nice sites, I think your site should be on the Websites Using Node Gallery page.

Tally’s picture

Depending on which core theme you are using, there may be other problems because some core themes (e.g., Marvin and Chameleon) do not use the phptemplate theme engine, which breaks some modules.

A lot of issues just require good troubleshooting skills. Switching themes is one trick that is useful. It is also one trick that I rarely think of. Good thing Manamarak thought of it. :)

As for documentation, Node Gallery's documentation sets a high standard for other modules. Thanks, dbeall. Maybe a solution would be to include a link to basic Drupal troubleshooting: How to troubleshoot (read this first)

dbeall’s picture

Excelent ! advice well received, consider it done...
this is why these forums are so good. a collective mind set is always better than one mind or even 2 or 3.
You goto love this place.. Drupal Rocks.

Manamarak’s picture

Tally,

May I just say, yours is the strangest site I have ever visited. Bar none.

And also, I would never have spotted that changing themes would fix the problem if you didn't hand me the javascript clue. How did you think of turning javascript off? That was genius.

dbeall,

do you never sleep? Whenever I post, a reply comes minutes later.

Anyway, I know what you mean about the first thing you do on a new site is theme, I do that too, it sort of gives me a feel for what I am trying to do.

But after this little serendipitous fiasco, I have decided that I am now going to create the core functionality of my sites before I start theming.

Thanks for the vote of confidence by suggesting my site could make your wall of fame, but let's just see if I get it done first. The albums aspect is now completed, but there are still many other problems to sort out.

May I just take a moment to congratulate you on a great module though, I have been looking for a solid gallery module for ages, but this is the first real contender.

It does everything a Drupal community site needs and has been lacking in a gallery module. When I started my research for the redesign of the site, I kept finding threads that said things like: "a gallery module is so hard to build, because everybody wants something different."

No they don't.

For a powerful community gallery module, all you need is:

1) Per user album
2) Images as Nodes
3) Multiple upload
4) Quota

And you've nailed it all.

I would be privileged to add my site to the Websites Using Node Gallery page.

dbeall’s picture

@Manamarak, I'm around all the time because I work at home making custom boat covers and web sites.

You have to thank Wilson98 and Kmonty for the module and the insight to build it.. But yes, I agree, it is a great module and it's in Alpha! I have sorted through the gallery solutions too.. some are pretty good depending on what you need, but this one has me hooked..

Tally is a pro! I have learned lots of cool stuff from him. He has a way of figuring things out that I never think of.
dddave has been a huge help, he sees things that need to be done before anyone. And he is a trouble shooter too.
If it were not for people submitting issues and patches, the module would not be where it is today, everyone wins in the end.. When this next release is done, I'm going to turn the users on my sites loose to have their own galleries.

The handbook has been updated.. next task.

Tally’s picture

@Manamarak "Tally, May I just say, yours is the strangest site I have ever visited. Bar none."

Thanks, that made me laugh out loud. I admit that my site covers a topic that is far from being mainstream. :)

I agree that Node Gallery makes for a great gallery module. kmonty and wilson98 have done a great job and we have a good community supporting the module. A winning combination all the way around.

@dbeall Thanks for the compliment.

Manamarak’s picture

It had YOU laughing out loud? It had me in stitches.

...

Hang on, maybe stitches is not an appropriate word given the subject matter.

Anyway, you may see a small traffic spike, I've sent a link to all my mates.

Who knows, it might even go viral. (again, inappropriate?)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.