I upgraded my site from D5 to D6 and things went well. On the old site I was using an old version of AF, pre-author pane days I think. On the new site, I have the latest version of AF, author pane and imagecache.

In my forum, the path to the user pictures is sites/default/files/imagecache/advf-author-pane/pictures/ but that path doesn't exist. My question is what do I need to do with imagecache in order for images to be at that location? The link to the picture in the author pane is correct, the images live at /sites/default/files/pictures/ I probably just need to create the imagecache preset, but need some guidance on what I should do there so all the paths are happy.

Comments

eloivaque’s picture

+ subscribe, the image cache don't work in author-pane.

michelle’s picture

Title: Not pointing to avatar images after upgrade » Imagecache integration broken for some people
michelle’s picture

I don't know why we're suddenly getting these issues in both AP 1.x and AP 2.x. Imagecache works fine with AP. My best guess is that the people with the issues have their path set up differently than I do. I saw one had Drupal set up in a subdomain so that could be it. I'll have to dig into the code and see how the path is getting set to see if I can figure out where it's going wrong for some people.

Michelle

michelle’s picture

Status: Active » Postponed (maintainer needs more info)

Given the discussion I just had on IRC I have a feeling this issue is the result of people not reading the project page or release notes and trying to use AP 2.x with AF 1.x. I'm not going to put any more into this until someone confirms that this problem exists when using the proper versions.

Michelle

kriskd’s picture

Michelle,

You are right, I was using AP 2.x with AF 1.x. Once I upgraded to AF 2.x everything worked. Thanks for pointing this out. :-)

Kris

vishalchavda’s picture

Hello,

I have the same problem. I am using the latest versions of both the Advanced Forums and Author Pane i.e. 6.X-2.0 (From scratch)
I cannot see the user image in the forums, it is pointing me to:
/default/files/imagecache/advf-author-pane/misc/chefM_avatar1.png which does not exist

My site is www.thatscookedby.com

Please advise on how to get this working.

Regards

Vishal

michelle’s picture

@vishalchavda: You definitely not using the latest version; you're using AF 1.x.

Michelle

garfaldo’s picture

I'm using AP 2 and AF 2, instead of the user pictures in Author Pane linking to their profile, they are linking to the images instead. Is there a workaround for this? Also using Imagecache....

Thanks

michelle’s picture

Status: Postponed (maintainer needs more info) » Active

Ok, we've got someone using the right versions with this issue so I'll set it back to active. Still have no clue, though.

Michelle

garfaldo’s picture

Michelle, is it supposed to link to the user's profile? If not, then I think the problem might be with imageprofile or imagecache due to the fact that my site is not at the root but rather in a subdirectory. The link that it produces fails to take the subdirectory into account.

If it is supposed to link to the profile tho... I still haven't found many clues.

michelle’s picture

No, it's not supposed to link to the user profile; it links to the full sized image. Maybe I misread your post. Is it actually showing the avatar for you or just the link?

Michelle

garfaldo’s picture

It's showing the avatar fine, it just mislinks the full sized image. Not a problem with AP or AF then I imagine? Thanks for looking into it Michelle

michelle’s picture

It's probably due to being in a subdirectory. I don't have any sites set up like that. I'll have to look at how the link is being created and see if I have the syntax wrong.

Michelle

nocean’s picture

Michelle, first off -- just a huge thanks for all the work you've put into AP/AF/APK. You truly are a Drupal superstar.

I'm also suffering from this issue -- but realized after reading this thread that I'm using AP2.0 with AF1.1 and so am about to go rectify that and hopefully solve this issue.

I just wanted to comment on the fact that the reason this issue is popping up may be because the recommended version of AP and the recommended version of AF are incompatible. It seems strange to have the recommended version of AP only be compatible for an alpha release of AF. I realize that these two modules don't have to be used together, but I'm sure that using them in conjunction is a more common than not scenario.

michelle’s picture

The dev version of AF 1.x is nearly compatible with AP 2.x. I simply haven't had the time to get it ready for a 1.2 release. I had someone offer to be a co-maintainer who has so far done nothing and no response to the new call for a co-maintainer I put out. It just got to a point where I couldn't keep holding back AP because of AF 1.x and so I put warnings up all over the place about the incompatibility. That's the best I can do for now. If I released AF 1.2 at this point, people would be screaming at me and I just don't have enough time for it right now.

Michelle

nocean’s picture

Totally understandable. And just to report back -- I upgraded to AF 2 and that solved the problem, as expected. Thanks again for all the work you've put into these modules, they're awesome.

michelle’s picture

Thanks. And if anyone wants to take a bit of time and work out the last kinks for getting the 1.x dev compatible with AP 2.x, then I could at least tell people to use the dev rather than the more drastic step of upgrading to 2.x. 2.x is much better but not everyone wants to use an alpha.

Michelle

soulston’s picture

For a temporary fix you can see this issue http://drupal.org/node/715910 which involves just creating an imagecache preset with the name "advf-author-pane".

michelle’s picture

Yeah, I suppose that would work because the changing of the parameter order means that the template name is being passed into the preset slot. Just make sure you change it back once this is fixed.

Michelle

sandino’s picture

The solution #18 worked for Advanced Forum but it does not work for Author Pane block neither for user profile (APK).
I'm using latest version of all modules (not dev).

michelle’s picture

Only AF 1.x would be affected by that problem because it is designed to use AP 1.x.

Michelle

michelle’s picture

Title: Imagecache integration broken for some people » Avatar path wrong when Drupal in a subdirectory
Version: 6.x-2.0 » 6.x-2.x-dev
Category: support » bug

I've had enough people report this that I'm pretty sure it's a bug. I don't have a test site in a subdirectory and don't know when I'll have time but wanted to change the title to make it findable. The rest of the problems on this issue seem to be people using AP 2.x with AF 1.1, which is documented to not work so switching over to just the known bug.

Michelle

sircurmudgeon’s picture

For sake of testing, I uploaded previous versions of both AF and AP and magically the avatars return. For the moment, this is a temporary fix (for me at least). Both older ver are 6x-1.1

Doesn't show up as security updates in my slightly out-dated test server's status page so perhaps recommended solution until you have time/help?

Thanks for these modules and the work involved. Makes forums infinitely better. If I knew something about making modules I'd take a peak, but I'm not the best code-jockey.

michelle’s picture

If someone is using AF 2.x, downgrading to 1.x just for this is a little extreme as a recommended solution. :) Probably better to not use an imagecache preset and just use CSS for now.

Michelle

sandino’s picture

Today I accidentally checked the path that AP requests for avatar and found something that may help (I know, I had to do that in first place). Let me explain (my English is really bad :-( ).

Previously I had AF 1.x and AP 1.x installed on my site and used ImageCache preset post_images_100x100 for avatars. One day this preset stopped working because of changing in imagecache underlay function (I used white background for avatars to make Polaroid effect). I tried #18 fix and it worked, but that was because I didn't add underlay (I know that's coincidence). Avatars appeared in Advanced Forum and in user relationships gallery in user profiles, and it requested the path

files/imagecache/advf-author-pane/pictures/picture-xxxx.jpg

But still there were no avatars in AP block and on user profile page. I checked the path AP requested and it was

files/imagecache/post_images_100x100/pictures/picture-xxxx.jpg

but I don't use this preset for avatars now!!! I removed underlay action from preset and that preset also works ok currently. Now AP still uses two different ImageCache presets for avatars: one in block and on user page, and another in AF and in friends gallery. In user settings I have set only one preset - Profile picture preset. Both here and in AF settings I use advf-author-pane preset.

So, the questions are: How can AP use old parameters for avatar? Why it uses different presets?
Sorry for my English, I would gladly explain anything if needed.

pixelsweatshop’s picture

Sub.

michelle’s picture

Category: bug » support
Status: Active » Fixed

I've gone through the code and back through this issue and I'm not sure where I ever came to the conclusion that it had to do with Drupal being installed in a subdirectory. The function AP calls to get the file path should take care of wherever Drupal is installed. There is nothing in this thread that points to anything but people using AP 2.x with AF 1.1 which is documented to not work. I'm closing this unless someone can come up with some concrete evidence that AP is getting the wrong paths when used correctly.

Michelle

Status: Fixed » Closed (fixed)

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

pixelsweatshop’s picture

Status: Closed (fixed) » Active
michelle’s picture

Status: Active » Closed (fixed)
pixelsweatshop’s picture

If someone is using AF 2.x, downgrading to 1.x just for this is a little extreme as a recommended solution. :) Probably better to not use an imagecache preset and just use CSS for now.

I am just wondering how this is considered a fix?

michelle’s picture

Read #27; there's nothing to fix.

Michelle

pixelsweatshop’s picture

Mine is on a subdomain and does not display avatars. It used to work fine until I updated the module. The site will always remain on a subdomain. Is there any way to remedy this?

michelle’s picture

As I said in #27, I have seen no evidence that being on a subdomain causes the problem when used correctly. With no way of reproducing this or any concrete evidence that the subdomain is the problem rather than mismatched version as has been the case in everyone posting on this issue, there is nothing I can do.

Michelle

mrwhizkid’s picture

I can confirm that this a problem. However, after spending nearly a week trying to debug this, I'm still not sure if this is an imagecache problem or an Author Pane problem.

I am using:

Author Pane 6.x-2.2
Advanced Forum 6.x-2.0-beta1
APK 6.x-1.0
The latest version of Imagecache 6.x-2.0-rc1

My drupal installation is in a subdirectory like mywebpagename.com/subdirectory

I have set Author Pane to use imagecache presets through Advanced Forum imagecache settings on the bottom.

The issue is pretty straightforward. In my case, the avatar itself (through imagecache) shows up correctly. But the link to the ORIGINAL image is wrong. When you click on it, we get a page not found error. Looking at the code, the problem is very clear.

<div class="author-pane">
 <div class="author-pane-inner">
        <div class="author-pane-section author-pane-general">
            <div class="author-pane-line author-name-forum">
        <a href="/subdirectory/users/robert" title="View user profile.">Robert</a>      </div>

  <div class="picture">
          <a href="/sites/default/files/pictures/picture-24.png" rel="lightbox"><img src="http://mywebpagename.com/subdirectory/sites/default/files/imagecache/90x90_Comment/pictures/picture-24.png" alt="Robert&#039;s picture" title="Robert&#039;s picture" width="90" height="90" class="imagecache imagecache-90x90_Comment"/></a>
      </div>

The actual picture display itself is using an absolute URL which correctly pulls in the picture from the imagecache folder. But as you can see, the link to the original picture (/sites/default/files/pictures/picture-24.png) is incorrect because it means that the URL will be http://www.mywebpagename.com/sites/default/files/pictures/picture-24.png INSTEAD of http://www.mywebpagename.com/subdirectory/sites/default/files/pictures/p.... The subdirectory is being skipped altogether!! My question is, how can I modify this link?

I have this exact same setup on another website which is not in a subdirectory and everything works perfectly so it must have to do with the subdirectory.

Ohh and one more thing. This problem exists with or without Lightbox2 (which I am using to display the user photo link when clicked).

Michelle, thanks for this great module and I realize that this may not be AP's fault...but maybe you can at least point me in the right direction? I'm a bit confused...

Edit -- I can report the same behavior for the APK Author Pane profile picture.