6.0.0-git
2019-03-19

[#5277] Fatal error: Call to a member function sessionSetup() on a non-object
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 slusarz (at) horde (dot) org
Requester vilius (at) lnk (dot) lt
Created 2007-04-21 (4350 days ago)
Due
Updated 2007-06-12 (4298 days ago)
Assigned 2007-04-23 (4348 days ago)
Resolved 2007-06-12 (4298 days ago)
Milestone
Patch No

History
2007-06-12 09:41:24 Michael Slusarz State ⇒ Resolved
 
2007-06-12 05:24:08 vilius (at) lnk (dot) lt Comment #12 Reply to this comment
Yes! You finally done it. Thanks.
2007-06-11 22:32:47 Michael Slusarz Comment #11 Reply to this comment
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
2007-06-05 07:00:28 vilius (at) lnk (dot) lt Comment #10 Reply to this comment
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


2007-06-04 23:22:17 Michael Slusarz Comment #9 Reply to this comment
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
2007-05-02 14:23:04 vilius (at) lnk (dot) lt Comment #8 Reply to this comment
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.
2007-04-24 20:05:44 vilius (at) lnk (dot) lt Comment #7 Reply to this comment
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.
2007-04-24 17:46:31 vilius (at) lnk (dot) lt Comment #6 Reply to this comment
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?
2007-04-23 22:44:46 Michael Slusarz Comment #5
State ⇒ Feedback
Reply to this comment
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.
2007-04-22 17:13:13 Jan Schneider Assigned to Michael Slusarz
State ⇒ Assigned
 
2007-04-22 09:10:32 vilius (at) lnk (dot) lt Comment #4 Reply to this comment
One more thing. If I refresh a page after this error message, session 
is created and I am finally able to view inbox.
2007-04-22 08:47:58 vilius (at) lnk (dot) lt Comment #3 Reply to this comment
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.
2007-04-22 01:23:00 Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
I don't see this; which MIMP link do you mean? Are you using a mobile 
browser or a desktop browser?
2007-04-21 18:17:33 vilius (at) lnk (dot) lt Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Summary ⇒ Fatal error: Call to a member function sessionSetup() on a non-object
Queue ⇒ MIMP
Reply to this comment
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


Saved Queries