Roundcube Community Forum

Release Support => Pending Issues => Topic started by: Ruebezahl on September 08, 2014, 09:30:51 AM

Title: Problems at login
Post by: Ruebezahl on September 08, 2014, 09:30:51 AM
Hello,

I get at login a blank screen and after calling Roundcube again, everything runs fine.

Found following entry in the error logPHP Fatal error fot the login time:
  Call to a member function get_compressed() on a non-object in /srv/www/intern/tools/roundcube/program/lib/Roundcube/rcube_imap.php  on line 1294.

Any idea how to fix this issue?

Roundcube fersion is 1.0.2.

Regards
Title: Re: Problems at login
Post by: alec on September 08, 2014, 11:23:00 AM
https://github.com/roundcube/roundcubemail/commit/c489cc14797942fa8940e6451a964db875eb00a2
Title: Re: Problems at login
Post by: Ruebezahl on September 10, 2014, 04:12:55 PM
Unfortunately i get the same error message than before.....

code in program/lib/Roundcube/rcube_imap.php is now:

public function index_direct($folder, $sort_field = null, $sort_order = null, $search = null)
    {
        if (!empty($search)) {
//            $search = $this->search_set->get_compressed();
            $search = $search->get_compressed();

       }



Regards
Title: Re: Problems at login
Post by: alec on September 11, 2014, 02:19:16 AM
Strange. Add console($search); on the beginning of this method and check logs/console to see what actually $search is. You could also enable imap_debug and provide the log.
Title: Re: Problems at login
Post by: Ruebezahl on September 11, 2014, 07:09:43 AM
Get the following results after "console($search);" :
after providing userid and password (the result is a blank screen in the browser)

.../logs/console
[11-Sep-2014 12:47:47 +0200]: true

.../logs/errors
[11-Sep-2014 10:47:47 UTC] PHP Fatal error:  Call to a member function get_compressed() on a non-object in /srv/www/intern/tools/roundcube/program/lib/Roundcube/rcube_imap.php on line 1296

.../logs/userlogin
[11-Sep-2014 12:47:47 +0200]: Successful login for ???????? (ID: 2) from xxx.xxx.xxx.xxx in session ??????????????????????


after closing the browser tab and recall Roundcube (i do not need to enter userid and password again)

..../logs/debug
[11-Sep-2014 12:47:47 +0200]: true
[11-Sep-2014 12:57:37 +0200]: NULL


.../logs/errors
[11-Sep-2014 10:47:47 UTC] PHP Fatal error:  Call to a member function get_compressed() on a non-object in /srv/www/intern/tools/roundcube/program/lib/Roundcube/rcube_imap.php on line 1296

.../logs/userlogin
[11-Sep-2014 12:47:47 +0200]: Successful login for ???????? (ID: 2) from xxx.xxx.xxx.xxx in session ??????????????????????


Regards


Title: Re: Problems at login
Post by: alec on September 11, 2014, 07:51:27 AM
This is strange. index_direct() method is called only once in the code with 4th argument. I don't see how it's possible it is boolean true. Do you test with disabled all plugins?
Title: Re: Problems at login
Post by: Ruebezahl on September 11, 2014, 08:11:45 AM
That was a good idea...
Found one self written plugin, which works well up to 1.0 is the creator of this problem. Need to research now, what is going wrong there...

Many thanks.


Regards