| Summary | Fatal error: Call to a member function sessionSetup() on a non-object |
| Queue | MIMP |
| Queue Version | HEAD |
| Type | Bug |
| State | Resolved |
| Priority | 2. Medium |
| Owners | Michael Slusarz <slusarz (at) horde (dot) org> |
| Requester | vilius (at) lnk (dot) lt |
| Created | 04/21/2007 (392 days ago) |
| Due | |
| Updated | 06/12/2007 (340 days ago) |
| Assigned | 04/23/2007 (390 days ago) |
| Resolved | 06/12/2007 (340 days ago) |
| Attachments | |
| Milestone | |
| Patch |
Yes! You finally done it. Thanks.> PHP Fatal error: Call to undefined method
> Notification_Listener_status_imp::setMobileObject() in
> /var/www/html/horde/mimp/templates/mailbox/mailbox.inc on line 6,
Try this:
http://lists.horde.org/archives/cvs/Week-of-Mon-20070611/068560.html
Now I have another problem.
PHP Fatal error: Call to undefined method Notification_Listener_status_imp::setMobileObject() in /var/www/html/horde/mimp/templates/mailbox/mailbox.inc on line 6, referer: https://mail.lnk.lt/horde/index.php?url=https%3A%2F%2Fmail.lnk.lt%2Fhorde%2Findex.php
> This also happens if I go to https://mydomain.com/horde/dimp/ and then login.
>
> However, if I login at first and then link my browser to
> https://mydomain.com/horde/dimp/ everything is working as expected.
Vilius, can you see if this fixes things?
http://lists.horde.org/archives/cvs/Week-of-Mon-20070604/068392.html
This also happens if I go to https://mydomain.com/horde/dimp/ and then login.
However, if I login at first and then link my browser to https://mydomain.com/horde/dimp/ everything is working as expected.
I don't see how does it suppose to work because function: IMP_Session::createSession($imapuser, $pass, $ptr['server'], $ptr) on http://cvs.horde.org/co.php?r=1.46&f=imp%2Flib%2FAuth%2Fimp.php#l68 IS executed in mimp context. I checked it with Horde::logMessage().
Moreover /imp/lib/base.php is never loaded because function: IMP::checkAuthentication(true) on http://cvs.horde.org/co.php?r=1.45&f=mimp%2Flib%2Fbase.php#l28 is never successfully executed for the same reason above.
I don't know why it works for you or why it works for me when I hit "refresh page" but from the code I'm seeing it should not work at all. Maybe I'm missing something? This is where you should step-in and enlight my poor Horde authentification skills.
Ok, let me start by posting relative config files. Maybe you will find something interesting.
-- horde/config/conf.php --
$conf['session']['name'] = 'Horde';
$conf['session']['use_only_cookies'] = true;
$conf['session']['cache_limiter'] = 'nocache';
$conf['session']['timeout'] = 0;
$conf['auth']['checkip'] = false;
$conf['auth']['checkbrowser'] = true;
$conf['auth']['alternate_login'] = false;
$conf['auth']['redirect_on_logout'] = false;
$conf['auth']['driver'] = 'composite';
$conf['auth']['params']['admin_driver'] = 'cyrsql';
$conf['auth']['params']['loginscreen_switch'] = '_horde_select_loginscreen';
$conf['auth']['params']['drivers']['ipmap']['params']['blocks'] = array('10.1.1.0/24');
$conf['auth']['params']['drivers']['ipmap']['driver'] = 'ipmap';
$conf['auth']['params']['drivers']['cyrsql']['driver'] = 'cyrsql';
$conf['auth']['params']['drivers']['cyrsql']['params'] = array('cyradmin' => 'removed',
'cyrpass' => 'removed',
'imap_dsn' => '{localhost:993/imap/ssl/novalidate-cert}',
'phptype' => 'mysql',
'socket' => '/var/lib/mysql/mysql.sock',
'protocol' => 'unix',
'hostspec' => 'localhost',
'username' => 'removed',
'password' => 'removed',
'database' => 'mail',
'table' => 'accountuser',
'username_field' => 'username',
'password_field' => 'password',
'domain_field' => 'domain_name',
'encryption' => 'crypt-md5',
'quota' => 512000,
'unixhier' => false,
'folder' => array('Spam')
);
if (!function_exists('_horde_select_loginscreen')) {
function _horde_select_loginscreen()
{
return 'cyrsql';
}
}
As you can see I'm using composite authentication driver. Could this be the problem?
State ⇒ Feedback
I can't reproduce either, with either mobile or regular browser, hordeauth on or off, and imp and horde-based auth. This doesn't make any sense because we always call imp/base.php before we attempt to create a session, and we always initialize imp_search there. You will have to track this down on your own to let us know why you are getting this error.Assigned to Michael Slusarz
One more thing. If I refresh a page after this error message, session is created and I am finally able to view inbox.After logging in I see:
"Welcome, Vilius
Mobile Mail" <- a link
I'm using built-in mobile browser in Sony Ericsson Z610. Also this happens with Opera Mini.
Does MIMP supposed to intialize imp_search session? I don't remember that MIMP had search functionality in the past.
State ⇒ Feedback
I don't see this; which MIMP link do you mean? Are you using a mobile browser or a desktop browser?Summary ⇒ Fatal error: Call to a member function sessionSetup() on a non-object
State ⇒ Unconfirmed
Type ⇒ Bug
Priority ⇒ 2. Medium
Queue ⇒ MIMP
After loging in and clicking on the MIMP link I see PHP error message:
Fatal error: Call to a member function sessionSetup() on a non-object in /var/www/horde/imp/lib/Session.php on line 293