[horde] Fwd: Errors after PHP 7.3 upgrade on Debian Stretch

poubeline at free.fr poubeline at free.fr
Mon Sep 23 16:55:40 UTC 2019


> 

>> Citeren poubeline at free.fr: 
>> 
>> 
>>> Hi All, 
>>> 
>>> 
>>> I've just upgraded my php version from 7.0 to 7.3 on my Debian 
>>> Stretch server (v9.11) and I get the following errors in the apache 
>>> log : 
>>> 
>>> 
>>> FIRST : 
>>> 
>>> [php7:warn] [pid 20247] [client my_IP:59368] PHP Warning: "continue" 
>>> targeting switch is equivalent to "break". Did you mean to use 
>>> "continue 2"? in /usr/share/php/Horde/ActiveSync/Wbxml/Decoder.php 
>>> on line 352 
>>> 
>>> 
>>> I could change the value directly in the decoder.php file to 
>>> 'continue 2' to avoid these messages, but is there a clean solution 
>>> to that or I just can ignore it ? 
>> 
>> Ignore it. 
>> 
>>> SECOND : 
>>> PHP Warning: Declaration of Horde_Form_Type_pgp::init($gpg, 
>>> $temp_dir = NULL, $rows = NULL, $cols = NULL) should be compatible 
>>> with Horde_Form_Type_longtext::init($rows = 8, $cols = 80, $helper = 
>>> Array) in /usr/share/php/Horde/Form/Type.php on line 878, referer: 
>>> https://my_webmail_server_adress/imp/dynamic.php?page=mailbox 
>> 
>> Not an error either ('PHP Warning'). Unless you're a Horde developer, 
>> you can safely ignore these messages. 
>> 
>>> I have several of them when trying to access the filters as I still 
>>> try to recover another issue with the vacation script which is not 
>>> saved due to a 'connection refused' issue that I already submitted 
>>> but still ongoing. 
>>> 
>>> 
>>> 
>>> 
>>> My Horde server is version 5.22 and I have applied the latest 
>>> patches downloaded from the Pear channel. 
>>> 
>>> 
>>> If someone can help me find a solution for both issues, that will be 
>>> very welcomed. 
>>> 
>>> Thanks for your help on this. 
>>> Cheers 
>> 
>> 
>> Hi Arjen, 
>> 
>> 
>> Thanks for your reply. I was pretty sure that I could get rid of it 
>> as it is PHP Warning but I was not sure if I had something wrong 
>> with my Horde installation due to these 'errors'. 
>> 
>> 
>> I have another question for you if you have 5 minutes more for me. 
>> I have sent on August 20th this question about Ingo : 
>> ######### 
>> 
>> Hi all, 
>> 
>> 
>> I post this question in both mailing lists as I saw some traffic 
>> about Ingo in the Horde mailing list also. 
>> 
>> 
>> I am currently fighting to get the Ingo application work correctly 
>> for vaccation. 
>> I have been able to setup correctly the backends.local.php to use 
>> the sieve driver with use of TLS for my server. 
>> I can activate and deactivate the vaccation filter, but when I try 
>> to save the rule for an out of office message, I get the following 
>> error : 
>> 
>> 
>> Script not updated: There was an error activating the script. 
>> Connection refused. 
>> 
>> 
>> I have used the 'debug' parameter in the backends.local.php and I 
>> do not get any trace of this script error. I had some traces when 
>> struggeling with the authentification, but not for the script update. 
>> In my backends.local.php, I have set this: 
>> $backends['sieve']['transport'][Ingo::RULE_ALL]['params']['scriptname'] = 
>> 'ingo'; 
>> 
>> which is the same as in backends.php 
>> 
>> 
>> Do you have any clue on how to get this script updated or even to 
>> get a trace of where this is failing ? 
> 
> Please post the full contents of backends.local.php *and* make sure 
> that you have made no modifications to backends.php as well. It may 
> also help to know which Sieve server you're using. 
> 
> My first guess would be that your Sieve server is returning an error 
> because it has no access to the directory where it is configured to 
> write the script. 
> 
>> Thanks for your help. 
>> ######### 
>> 
>> 
>> Do you know where I can get trace about what is happening with the 
>> script not update due to a 'connection refused' error. 
>> Do you know what kind of trace and in which module I can activate 
>> to get a good information about what is going on? 
>> 
>> 
>> Thank you very much for your help anyway. 

Besides setting the "debug" parameter in Ingo's configuration, you 
also need to set the log level to DEBUG in the main Horde logging 
configuration. Then you can see the complete 
client-server-communication in Horde's logs. 

-- 
Jan Schneider 
The Horde Project 
https://www.horde.org/ 





Hi Arjen and Jan, 


Thank you for your help, really appreciated !! 


As you asked Arjen, here is the full content of my backends.local.php file : 


<?php 

$backends['imap']['disabled'] = true; 
$backends['sieve']['disabled'] = false; 
$backends['sieve']['preferred'] = ''; 
$backends['sieve']['script'][Ingo::RULE_ALL]['driver'] = 'sieve'; 
$backends['sieve']['script'][Ingo::RULE_ALL]['params']['utf8'] = true; 
$backends['sieve']['script'][Ingo::RULE_ALL]['params']['imapflags'] = true; 
$backends['sieve']['script'][Ingo::RULE_ALL]['params']['notify'] = true; 
$backends['sieve']['transport'][Ingo::RULE_ALL]['driver'] = 'timsieved'; 
$backends['sieve']['transport'][Ingo::RULE_ALL]['params']['hostspec'] = 'my.server.FQDN'; 
$backends['sieve']['transport'][Ingo::RULE_ALL]['params']['logintype'] = 'PLAIN'; 
$backends['sieve']['transport'][Ingo::RULE_ALL]['params']['usetls'] = true; 
$backends['sieve']['transport'][Ingo::RULE_ALL]['params']['port'] = 4190; 
$backends['sieve']['transport'][Ingo::RULE_ALL]['params']['scriptname'] = 'ingo'; 
$backends['sieve']['transport'][Ingo::RULE_ALL]['params']['debug'] = false; 


The Dovecot mail server and the Sieve server are local servers. I had to specify the 'hotspec' name to fit the security check of the server name (when I was setting 'localhost', I had a connection issue, which is normal behavior). 


Jan, thanks for the trick on the debug tracing, I understand now why setting the 'debug' variable in Ingo was not enough. 
I am going to set this up and check what is going on in the logs. 


I'll get back to you as soon as possible. 


Thanks guys, Laurent 



######################## 


Jan, Arjen, 


Here is the DEBUG trace I get from my Horde server and the issue seems to be located in a declaration to the SIEVE server : 


Sep 23 18:41:22 mail HORDE: Load config file (conf.php; app: horde) [pid 5726 on line 109 of "/usr/share/php/Horde/Registry/Loadconfig.php"] 
Sep 23 18:41:22 mail HORDE: [ingo] Load config file (conf.php; app: ingo) [pid 5726 on line 109 of "/usr/share/php/Horde/Registry/Loadconfig.php"] 
Sep 23 18:41:22 mail HORDE: [ingo] Load config file (hooks.php; app: ingo) [pid 5726 on line 109 of "/usr/share/php/Horde/Registry/Loadconfig.php"] 
Sep 23 18:41:22 mail HORDE: [ingo] SQL (0,0005s) 
Sep 23 18:41:22 mail HORDE: \x09SELECT * FROM ingo_rules WHERE rule_owner = 
Sep 23 18:41:22 mail HORDE: \x09 'MYEMAILADDRESS at MY.FQDN' ORDER BY rule_order [pid 5726 on line 240 of "/usr/share/php/Horde/Db/Adapter/Pdo/Base.php"] 
Sep 23 18:41:22 mail HORDE: [ingo] SQL (0,0003s) 
Sep 23 18:41:22 mail HORDE: \x09UPDATE ingo_rules SET rule_name = 'Vacation', rule_action = 8, 
Sep 23 18:41:22 mail HORDE: \x09 rule_value = NULL, rule_flags = 0, rule_conditions = NULL, 
Sep 23 18:41:22 mail HORDE: \x09 rule_combine = 0, rule_stop = 0, rule_active = 1, rule_order = '2' 
Sep 23 18:41:22 mail HORDE: \x09 WHERE rule_id = 12 AND rule_owner = 'MYEMAILADDRESS at MY.FQDN' [pid 5726 on line 240 of "/usr/share/php/Horde/Db/Adapter/Pdo/Base.php"] 
Sep 23 18:41:22 mail HORDE: [ingo] SQL (0,0001s) 
Sep 23 18:41:22 mail HORDE: \x09SELECT list_address FROM ingo_lists WHERE list_owner = 
Sep 23 18:41:22 mail HORDE: \x09 'MYEMAILADDRESS at MY.FQDN' AND list_blacklist = 0 [pid 5726 on line 240 of "/usr/share/php/Horde/Db/Adapter/Pdo/Base.php"] 
Sep 23 18:41:22 mail HORDE: [ingo] SQL (0,0001s) 
Sep 23 18:41:22 mail HORDE: \x09SELECT * FROM ingo_vacations WHERE vacation_owner = 
Sep 23 18:41:22 mail HORDE: \x09 'MYEMAILADDRESS at MY.FQDN' [pid 5726 on line 240 of "/usr/share/php/Horde/Db/Adapter/Pdo/Base.php"] 
Sep 23 18:41:22 mail HORDE: [ingo] SQL (0,0001s) 
Sep 23 18:41:22 mail HORDE: \x09SELECT list_address FROM ingo_lists WHERE list_owner = 
Sep 23 18:41:22 mail HORDE: \x09 'MYEMAILADDRESS at MY.FQDN' AND list_blacklist = 1 [pid 5726 on line 240 of "/usr/share/php/Horde/Db/Adapter/Pdo/Base.php"] 
Sep 23 18:41:22 mail HORDE: [ingo] Hook transport_auth in application ingo called. [pid 5726 on line 57 of "/usr/share/php/Horde/Core/Hooks.php"] 
Sep 23 18:41:22 mail HORDE: [ingo] PHP ERROR: define(): Declaration of case-insensitive constants is deprecated [pid 5726 on line 59 of "/usr/share/php/Net/Sieve.php"] 
Sep 23 18:41:22 mail HORDE: 1. Ingo_Basic_Base->__construct() /var/www/horde/ingo/basic.php:30 
Sep 23 18:41:22 mail HORDE: 2. Ingo_Basic_Filters->_init() /var/www/horde/ingo/lib/Basic/Base.php:48 
Sep 23 18:41:22 mail HORDE: 3. Ingo_Script_Util::update() /var/www/horde/ingo/lib/Basic/Filters.php:131 
Sep 23 18:41:22 mail HORDE: 4. Ingo_Script_Util::activate() /var/www/horde/ingo/lib/Script/Util.php:81 
Sep 23 18:41:22 mail HORDE: 5. Ingo_Transport_Timsieved->setScriptActive() /var/www/horde/ingo/lib/Script/Util.php:45 
Sep 23 18:41:22 mail HORDE: 6. Ingo_Transport_Timsieved->_connect() /var/www/horde/ingo/lib/Transport/Timsieved.php:120 
Sep 23 18:41:22 mail HORDE: 7. spl_autoload_call() /var/www/horde/ingo/lib/Transport/Timsieved.php:70 
Sep 23 18:41:22 mail HORDE: 8. Horde_Autoloader->loadClass() 
Sep 23 18:41:22 mail HORDE: 9. Horde_Autoloader->_include() /usr/share/php/Horde/Autoloader.php:65 
Sep 23 18:41:22 mail HORDE: 10. include() /usr/share/php/Horde/Autoloader.php:128 
Sep 23 18:41:22 mail HORDE: 11. define() /usr/share/php/Net/Sieve.php:59 
Sep 23 18:41:22 mail HORDE: 12. Horde_ErrorHandler::errorHandler() 
Sep 23 18:41:22 mail HORDE: 
Sep 23 18:41:22 mail HORDE: [ingo] PHP ERROR: define(): Declaration of case-insensitive constants is deprecated [pid 5726 on line 65 of "/usr/share/php/Net/Sieve.php"] 
Sep 23 18:41:22 mail HORDE: 1. Ingo_Basic_Base->__construct() /var/www/horde/ingo/basic.php:30 
Sep 23 18:41:22 mail HORDE: 2. Ingo_Basic_Filters->_init() /var/www/horde/ingo/lib/Basic/Base.php:48 
Sep 23 18:41:22 mail HORDE: 3. Ingo_Script_Util::update() /var/www/horde/ingo/lib/Basic/Filters.php:131 
Sep 23 18:41:22 mail HORDE: 4. Ingo_Script_Util::activate() /var/www/horde/ingo/lib/Script/Util.php:81 
Sep 23 18:41:22 mail HORDE: 5. Ingo_Transport_Timsieved->setScriptActive() /var/www/horde/ingo/lib/Script/Util.php:45 
Sep 23 18:41:22 mail HORDE: 6. Ingo_Transport_Timsieved->_connect() /var/www/horde/ingo/lib/Transport/Timsieved.php:120 
Sep 23 18:41:22 mail HORDE: 7. spl_autoload_call() /var/www/horde/ingo/lib/Transport/Timsieved.php:70 
Sep 23 18:41:22 mail HORDE: 8. Horde_Autoloader->loadClass() 
Sep 23 18:41:22 mail HORDE: 9. Horde_Autoloader->_include() /usr/share/php/Horde/Autoloader.php:65 
Sep 23 18:41:22 mail HORDE: 10. include() /usr/share/php/Horde/Autoloader.php:128 
Sep 23 18:41:22 mail HORDE: 11. define() /usr/share/php/Net/Sieve.php:65 
Sep 23 18:41:22 mail HORDE: 12. Horde_ErrorHandler::errorHandler() 
Sep 23 18:41:22 mail HORDE: 
Sep 23 18:41:22 mail HORDE: [ingo] PHP ERROR: define(): Declaration of case-insensitive constants is deprecated [pid 5726 on line 71 of "/usr/share/php/Net/Sieve.php"] 
Sep 23 18:41:22 mail HORDE: 1. Ingo_Basic_Base->__construct() /var/www/horde/ingo/basic.php:30 
Sep 23 18:41:22 mail HORDE: 2. Ingo_Basic_Filters->_init() /var/www/horde/ingo/lib/Basic/Base.php:48 
Sep 23 18:41:22 mail HORDE: 3. Ingo_Script_Util::update() /var/www/horde/ingo/lib/Basic/Filters.php:131 
Sep 23 18:41:22 mail HORDE: 4. Ingo_Script_Util::activate() /var/www/horde/ingo/lib/Script/Util.php:81 
Sep 23 18:41:22 mail HORDE: 5. Ingo_Transport_Timsieved->setScriptActive() /var/www/horde/ingo/lib/Script/Util.php:45 
Sep 23 18:41:22 mail HORDE: 6. Ingo_Transport_Timsieved->_connect() /var/www/horde/ingo/lib/Transport/Timsieved.php:120 
Sep 23 18:41:22 mail HORDE: 7. spl_autoload_call() /var/www/horde/ingo/lib/Transport/Timsieved.php:70 
Sep 23 18:41:22 mail HORDE: 8. Horde_Autoloader->loadClass() 
Sep 23 18:41:22 mail HORDE: 9. Horde_Autoloader->_include() /usr/share/php/Horde/Autoloader.php:65 
Sep 23 18:41:22 mail HORDE: 10. include() /usr/share/php/Horde/Autoloader.php:128 
Sep 23 18:41:22 mail HORDE: 11. define() /usr/share/php/Net/Sieve.php:71 
Sep 23 18:41:22 mail HORDE: 12. Horde_ErrorHandler::errorHandler() 
Sep 23 18:41:22 mail HORDE: 



I am going to investigate on the web for the SIEVE server, but in the meantime if you have a clue on this, let me know. 


Thanks 






More information about the horde mailing list