Hello

Problem is : menu icons do not show up, at all !!!

I run drupal 6, module is activated, I edit my links and add an icon image which does not appear.
I tried to use jpg instead of png, it did not change anything.

Am I missing something here ?
Anyone has an idea about why it does not work ? Anyone who had the same problem ?

Thank you,

I really need to add these pictures to my links so I hope that someone will help me solve this problem and use this module.

Comments

skilip’s picture

This is really weird. Did you confirm that the images are uploaded to the server? And does the path set in the stylesheet matches the path to that uploaded file? You can see the styles by navigating to: 'http://yourwebsite/menu_icons/css'.

kone23’s picture

Thank you for your answer.

Yes, it is weird. It never worked at all. Maybe I did a mistake...

Anyway, I found an other way for adding images next to my menu-links by using css and background images.

skilip’s picture

Would you please verify what I've posted earlier? Perhaps it's a bug after all. Then we should solve it.

skilip’s picture

Status: Active » Closed (fixed)

Closing this issue while I'm not getting any response for more than a month.

alfthecat’s picture

Status: Closed (fixed) » Active

Hi,

Maybe I can provide the additions. I have the same issue.

1 - Icon's don't appear at all

2- I designated a directory in my files directory to store uploaded icons to and granted the proper permissions

3- When I added an icon through uploading it in the menu/edit page, I noticed an empty stylesheet being created in that folder, but no icon

4- I manually uploaded my icons to the same folder. I pointed to an icon in the menu/edit page. No results.

Would appreciate any help. Thanks in advance

borjagut’s picture

My icons have dissapeared too.

Subscribing

dgonzalezr’s picture

I have the same problems, but, in my case, when the image is loaded in the server, the css file is empty.. any idea??

alfthecat’s picture

@dgonzalezr
Yeah with me too, I get an empty css file.

alfthecat’s picture

I've got some extra info, I noticed that this error appears upon dbase update and that it is caused by the menu icons module: "The selected file /tmp/fileMFEAfa could not be uploaded, because the destination is not properly configured."

Creating a tmp folder and pointing to it through the drupal file system doesn't resolve this error. Even after trying placing a tmp folder in both the website root and the sites/default/files folder and setting CMOD to 777 the error persists.

Could this have something to do with the icons not working?

skilip’s picture

I suppose this has got something to do with the filesystem configuration. Are there any errors displayed @ 'admin/settings/file-system'?

alfthecat’s picture

Hey Skilip,

No that's the weird part of it. It states no errors and works fine. I was thinking perhaps the error is referring to an apache folder way up from the root. I can't access that folder on shared hosting off course.

Changing the CMOD settings of the /tmp folder doesn't seem to yield any result so that's why I'm suspecting something else is wrong.

Looking forward to your thoughts!

skilip’s picture

Hey AlfTheCat,

Can you please post an image of the generated error? And can you try to upload a logo image @ build/themes/settings/[garland or an other theme]?

skilip’s picture

@AlfTheCat can you post a screenshot please? Otherwise we won't get any further.

dan_metille’s picture

Have same troubles on a local website.

dan_metille’s picture

Version: 6.x-2.0 » 6.x-2.4

Forgot to mention that this was happening with 6.x-2.4. Stepping back to 2.3 resolve the problem for me.

RobertOak’s picture

It's a misconfiguration of the file path in the module and why this is calling cron or configured that way is beyond me. It was creating an file.inc. error where the uploaded file /tmp/FileXxxm.tmp could not be validated, configuration error, misconfiguration. Took me hours to locate this bug because why would icons be in the cron and there was no detailed to figure out where this file system error was coming from if one ran cron.php or update.php. It's a path misconfiguration, but why call cron.php or update.php for some icons?

Didn't matter if I turned off all compression and caching too.

remedios’s picture

I have the problem described in #9 above.

Some more data:
a) Stepping back to an earlier version of the menu_icons module did not solve my problem.

b) My site used to display the menu_icons like a champ. Now they are just not showing up. This started happening right after I upgraded to drupal 6.17 (I upgraded menu_icons at the same time).

c) Maybe coincidentally, even though my site's menu_icons module is current, it's showing up as "Update Available" in my admin reports.

d) This is causing my site to lose almost all functionality since I have configured most of my menus to show up as icons instead of text links.

RobertOak, how exactly did you fix the path misconfiguration? Can we correct the problem in the module and release a new version? If we can't, I think I'll find a new way to display menus as icons and abandon this module.

Thanks for all the work.

trentharlem’s picture

My issue was caused by the themes CSS...

The Sky theme uses an image sprite for some menu backgrounds. This positioning can hide your icons - even when your image is not on the sprite.

I added a " background-position:10px 0;" to my ugly CSS selector...

ul.menu .expanded .leaf a.menu-377, ul.links li.menu-377,menu_icon menu-377 {
background-image:url("xxx/xxx/imagecache/menu_icon/menu_icons/menu_icon_377.png");
background-position:10px 0;
}

and i can now see my once hidden icons.

cashwilliams’s picture

I ran into this problem too.

The theme I'm using set the background of menu items to a image of a bullet point and used padding to move the text, much like menu icon does.

I changed the line of the menu_icons_css_item.tpl.php file that sets the background, and added !important to the end -

background-image: url(<?php print $path ?>) !important;

This lets normal menu items (without icons) have the regular bullet point graphic, but keeps the image for menu icon when set.

I did have to override the css for menus which have icons though, because the background padding and position is still overridden by the theme. I'm using skinr, so I can just set different classes for different menus, which can have different positions. This lets me have some menu items with the icon on the left, and others with the icon centered above the text.

Hope that helps.

LTech’s picture

I just get a blank spot for the icon. I can't see it. My website is http://jspca.org.il/ru the icon should be in the main menu next to the letter 'h'. Any idea why it isn't showing?
I don't have a background image blocking it. It doesn't even show under the 'list link' section where you edit the menu.
The path of the icon is http://jspca.org.il/sites/default/files/images/menu_icons/home1.png.
Thanks for your help.

LTech’s picture

I think I'm just going to put it in a block region because I can't get this module to work.
Thanks

philalonso’s picture

Issue summary: View changes

We have a site that runs on D6 with a similar issue. Editing or creating a menu item throws an error: The selected file /tmp/fileys1MCJ could not be copied.

The file writes to the sites/default/files/menu_icons directory, and then appears to go to the /tmp directory.

The site uses imagecache and has a preset called menu_icon. The sites/default/files/imagecache/menu_icon directory has a sub-directory called menu_icons as specified on the /admin/settings/menu_icons page.

The problem seems to occur when the file is copied from /tmp to sites/default/files/imagecache/menu_icon/menu_icons/. Resetting ownership of the files and directories within sites/default/files and clearing all caches has helped, but has to be done every time.

One possible issue is that the server uses DSO (mod_php) to handle PHP as an Apache module.

Can anyone comment/help on this issue?