[imp] trouble using IMP in "Mobile (Smartphone/Tablet) mode after upgrade to horde 5.2.0 and imp 6.2.0

Simon Wilson simon at simonandkate.net
Sun Jul 20 22:41:05 UTC 2014


----- Message from Michael M Slusarz <slusarz at horde.org> ---------
    Date: Sun, 20 Jul 2014 13:06:33 -0600
    From: Michael M Slusarz <slusarz at horde.org>
Subject: Re: [imp] trouble using IMP in "Mobile (Smartphone/Tablet)  
mode after upgrade to horde 5.2.0 and imp 6.2.0
      To: imp at lists.horde.org


> Quoting Bruno Marsal <bruno at marsal.biz>:
>
>> On Fri, Jul 18, 2014 at 5:04 AM, Patrick Wolf <pwolf at socorro.com> wrote:
>>
>>> When trying to open the "Mail" link on the interface the address bar
>>> changes from
>>> https://ourservername/horde/services/portal/smartmobile.php to
>>> https://ourservername/horde/services/portal/smartmobile.
>>> php#mailbox?mbox=SU5CT1g
>>> but the browser appears to just reload the screen that shows up after
>>> login. The user isn't actually taken to the mobile version of imp.
>>>
>>
>>
>> ​I assume you are running some PHP 5.3 which has issues parsing URLs with #
>> and ? in this specific order. Either you upgrade your PHP version or try to
>> use this fix which worked for me...
>>>> ​diff --git a/horde/index.php b/horde/index.php
>> index ad2d01b..dad45f8 100644
>> --- a/horde/index.php
>> +++ b/horde/index.php
>> @@ -62,7 +62,14 @@ if ($main_page) {
>> } elseif (($initial_app = $prefs->getValue('initial_application')) &&
>>           ($initial_app != 'horde') &&
>>           $registry->hasPermission($initial_app)) {
>> -    $main_page = Horde::url($registry->getInitialPage($initial_app), true);
>>
>> +                $main_page = Horde::url(rtrim($initial_app, '/') . '/',
>> true);
>> } elseif ($registry->getView() == Horde_Registry::VIEW_SMARTMOBILE) {
>>     $main_page = $registry->getServiceLink('portal');
>> } elseif (($initial_page = $registry->getInitialPage('horde')) &&
>>>
> This doesn't work, since the anchor information in the URL is needed  
> to redirect to the correct mailbox.
>
> michael
>
> ___________________________________
> Michael Slusarz [slusarz at horde.org]
>

There are ways that you can run newer php without breaking things or  
making your server difficult to manage... on my CentOS box I updated  
to 5.3.28 using the ius repo, and everything works fine - still within  
5.3 so no major changes to worry about. For Ubuntu there are repos  
like dotdeb that will help with this.

Simon.

-- 
Simon Wilson
M: 0400 12 11 16
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 1339 bytes
Desc: PGP Public Key
URL: <http://lists.horde.org/archives/imp/attachments/20140721/f24c696e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: PGP Digital Signature
URL: <http://lists.horde.org/archives/imp/attachments/20140721/f24c696e/attachment-0001.bin>


More information about the imp mailing list