Author Topic: Problem vacation plugin  (Read 3177 times)

Offline moncho

  • Newbie
  • *
  • Posts: 1
Problem vacation plugin
« on: February 25, 2015, 01:56:46 PM »
I have a problem with the plugin "vacation"

I had the error:

cannot be loaded using plugins/vacation/lib/.class.php

Aply the patch:

*** plugins/vacation/lib/VacationConfig.class.php~   Tue Mar  9 15:13:56 2010
--- plugins/vacation/lib/VacationConfig.class.php   Fri Jun 11 17:23:03 2010
***************
*** 168,180 ****
     {
 
        $keys = $this->allowedOptions[$this->currentArr['driver']];
!       $diff = array_diff_key($this->currentArr,array_flip(array_keys($keys)));
     
               
!       if (! empty($diff) && !in_array(key($diff),array('driver','body','subject')))
        {
           // Invalid options found
!          $this->hasError = sprintf("Invalid option found in config.ini for %s driver and section [%s]: %s is not supported",
           $this->currentArr['driver'],$this->currentHost,key($diff));
        }
        return (empty($diff));
--- 168,184 ----
     {
 
        $keys = $this->allowedOptions[$this->currentArr['driver']];
!       $diff = array_diff_key($this->currentArr,
!                    array_flip(array_keys($keys)),
!                    array('driver' => 1,
!                     'body' => 1,
!                     'subject' => 1));
     
               
!       if (! empty($diff))
        {
           // Invalid options found
!          $this->hasError = sprintf("Invalid option found in config.ini for %s driver and section [%s]: '%s' is not supported",

And Now I have the next problem:
25-Feb-2015 19:39:32 +0100]: PHP Error: Vacation plugin: Invalid option found in config.ini for ftp driver and section [localhost]: 'defaultsubject' is not supported in /var/www/html/roundcubemail/plugins/vacation/vacation.php on line 0 (GET /roundcubemail/?_task=settings)