Roundcube Community Forum

Release Support => Pending Issues => Topic started by: fhdk on September 21, 2015, 11:16:33 AM

Title: FIXED: Warning: Declaration of rcmail::get_instance($env = '') .......
Post by: fhdk on September 21, 2015, 11:16:33 AM
Cause: probably PHP 7.0
Fixed by going back to PHP 5.6

trac.roundcube.net/ticket/1490544 (http://trac.roundcube.net/ticket/1490544)

When I last updated to ver. 1.1.2 I had a hickup with the rcmail.php file.
On login I would get this error:

Code: [Select]
Warning: Declaration of rcmail::get_instance($env = '') should be compatible with rcube::get_instance($mode = 0, $env = '') in mail/program/include/rcmail.php on line 30


I manually altered the file so the function declartion matched

Code: [Select]
    static function get_instance($mode = 0, $env = '')

I have noticed that a minor update to 1.1.3 had been released so I updated.
The exact same error message has now returned.
Title: Re: Warning: Declaration of rcmail::get_instance($env = '') .......
Post by: SKaero on September 21, 2015, 12:18:16 PM
You should open a ticket at: http://trac.roundcube.net/
Title: Re: Warning: Declaration of rcmail::get_instance($env = '') .......
Post by: fhdk on September 21, 2015, 12:35:21 PM
Will do  :D