in my node, i am using cck image field and imagecache to display my images. Upon activating the Mobile Tools module, my image is replaced by a generic link to the image. No matter what imagecache setting i choose, it only displays as a link to the image. As soon as i disable Mobile Tools, it shows my image again. Any suggestions here? I am using a content type node template to display my image field <?php print $node->field_myimage[0]['view'] ?>

Comments

toma’s picture

Assigned: Unassigned » toma
Category: support » bug
Priority: Normal » Critical

I have the same probleme when i update to the last version of Mobile Tools, only by disabling the module that everything get to work normal !

toma’s picture

How we can correct this ! or just we need to use the old version, the last version dosen't work with images!

twom’s picture

Status: Active » Needs review

Hi all,

Thanks for posting this bug. I have commited a new dev version where I fixed a bug with the new Mobile Tools build modes.
Apparantly the build mode was always set to the Mobile Tools build mode, causing this problem.

If I get positive response on the latest dev version, I will create a new tag from it.

bcobin’s picture

Thanks, twom - I was about to confirm the bug, but I see you've already found it.

Where can I get the latest dev? Looking forward to testing - thanks!

twom’s picture

Hi,

You can find the dev version on the homepage:
http://drupal.org/project/mobile_tools

Look for the dev version (6.x-1.x-dev) under development releases (bottom of the page)

bcobin’s picture

Version: 6.x-1.9 » 6.x-1.x-dev

I know that, silly! ;-)

Looks like the dev is still dated 11/21 - has it changed? Thanks, twom... looking forward!

twom’s picture

Hi,

I committed the fix already last Sunday. So the build is from that day.
Probably tomorrow there will be a new build with changes that I have committed today.

bcobin’s picture

Thanks, twom - tried the latest build and I get a browser redirect crash:

Safari error message:

Too many redirects occurred trying to open [test site]. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.

I'm using the modified front page View as my front page, perhaps that could have something to do with it? Anyway, I replaced the new folder with the previous dev version and was able to de-install; doing a fresh install of the latest dev caused the same error. Hope this helps!

ak’s picture

Hi, I got the same image problem. As dev doesn't seem to work either, as reported above has someone a hint on witch line the image error occurs? I'd like to fix it manualy for now, if I knew where to.

toma’s picture

The last dev version give me the same problem as in comment #8 Too many redirects occurred trying to open. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.

toma’s picture

I disable "Enable automatic redirection of the mobile user " and now i have the module work correctly for an online demo http://blogiphone.org

ak’s picture

Hi there, thanks for your respond. No redirect leads to no cache, so I can't rely on that. I tried to track down the changes from current release to dev version but they are to many and I wasn't able to find where this build mode problem happens. Does someone know?

ak’s picture

I just noticed / understood that this build mode references to the content type > field display settings. There you find 2x RSS Tabs, where one should read Mobile Tools (already corrected in current dev but not yet in 6.x-1.14). Define your image field display setting for Mobile Devices on the right tab and everything works fine for me.

So it doesn't seem to be a bug at all rather missing docs or bad defaults. What I believe users run into is on activating the mobile tools module by default a generic file display ist selected for image fields. Witch causes broken image display by default and there's no docs on why this is happening or where this can be configured. At least this wasn't clear to me at all.

Now everything works well over here with current stabil release.

yngvewb’s picture

#13 Works for me too. Bad defaults, and impossible for people to understand that one of the two "RSS" tabs is for mobile display :-)

simon georges’s picture

Hi, I managed to have imagecache working in Views by adding *imagecache* in the "redirection exceptions" field (in Mobile Tools configuration).
I suppose the path could be better (something like */files/imagecache/*), but it was working for me, so I let it that way. Maybe it's something that could be added as a default in the module ?

YK85’s picture

subscribing

twom’s picture

Status: Needs review » Closed (fixed)

The problems with the Mobile Tools build mode are fixed.