Author Topic: FIXED: Warning: Declaration of rcmail::get_instance($env = '') .......  (Read 8307 times)

Offline fhdk

  • Newbie
  • *
  • Posts: 5
Cause: probably PHP 7.0
Fixed by going back to PHP 5.6

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.
« Last Edit: September 22, 2015, 07:14:50 AM by fhdk »

Online SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Warning: Declaration of rcmail::get_instance($env = '') .......
« Reply #1 on: September 21, 2015, 12:18:16 PM »
You should open a ticket at: http://trac.roundcube.net/

Offline fhdk

  • Newbie
  • *
  • Posts: 5
Re: Warning: Declaration of rcmail::get_instance($env = '') .......
« Reply #2 on: September 21, 2015, 12:35:21 PM »
Will do  :D