Components fails to work with Iphone

on4bam
12 years, 8 months ago
Hi,

I had this component working on our club's website (J2.5.3) and got a report from an Iphone user that after filling in his login/pass he's getting a 404 error, component not found. (on6wl.be/index.php?device=iphone)
If I log on in the desktop version (on my PC) and enter the above link, I can use the Iphone version, so it's the registration/login procedure that's not working.
All seems OK on a Windows 6.5 mobile smartphone and also on Android all is well.

When checking this out I found that I had 4 instances of each template with the same ID number in the Templates/styles section in the admin part of the site. Removing 1 of them removed all 4 so I uninstalled MobileJoomla, cleared all cache and reinstalled again. Still the Iphone problem persists.

Any idea where to fix this (all settings are "default" at the moment.

Thanks.
Maurice.
dryabov
12 years, 8 months ago
The issue will be fixed in MJ 1.0.3.
mariuszstach
12 years, 7 months ago
Hi, the patch partially works as it's possible to login, but... there is an error massage (invalid token) when the user is trying to logout. Any ideas how to fix it?
tpepernic
12 years, 6 months ago
Same problem here. I get invalid token with logout. Anyone with ideas?
gcomo01
12 years, 5 months ago
hi,
tried it and it work .. you need to add the
<?php echo JHtml::_('form.token'); ?>
line even for the logout part not only login like in the patch .. bottom line the code below (I am using elegance template):


<form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post" id="login-form">
<?php if ($params->get('greeting')) : ?>
<div class="login-greeting">
<?php if($params->get('name') == 0) :
echo JText::sprintf('MOD_LOGIN_HINAME', htmlspecialchars($user->get('name')));
else :
echo JText::sprintf('MOD_LOGIN_HINAME', htmlspecialchars($user->get('username')));
endif; ?>
</div>
<?php endif; ?>
<div class="logout-button">
<input type="submit" name="Submit" class="button" value="<?php echo JText::_('JLOGOUT'); ?>" />
<input type="hidden" name="option" value="com_users" />
<input type="hidden" name="task" value="user.logout" />
<input type="hidden" name="return" value="<?php echo $return; ?>" />
<?php echo JHtml::_('form.token'); ?>
</div>
</form>

hope this helps
G
dryabov
12 years, 5 months ago
Fixed in repository, thank you very much!

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.