[turba] A lot of empty message since turba-2.3.4

Philippe Camps philippe.camps at impmc.upmc.fr
Fri Mar 4 15:27:07 UTC 2011


Le 04/03/2011 11:20, Jan Schneider a écrit :
> Zitat von Philippe Camps <Philippe.Camps at impmc.upmc.fr>:
>
>> Le 04/03/2011 10:18, Jan Schneider a écrit :
>>> Zitat von Philippe Camps <philippe.camps at impmc.upmc.fr>:
>>>
>>>> Le 25/02/2011 17:07, Philippe Camps a écrit :
>>>>> Hi the list,
>>>>>
>>>>> I have recently update horde and its applications to the last 
>>>>> version (horde-3.3.11), except turba.
>>>>>
>>>>> The last version which is working is turba-2.3.3. I have problem 
>>>>> since turba2.3.4, and it's the same thing with turba-2.3.5.
>>>>>
>>>>> The problem: when I click on the address bookmark icon, I can see 
>>>>> that a new empty message appears with a red hand. So that, I have 
>>>>> more and more lines above my address bookmark .
>>>>>
>>>>> In my logs, there is a PHP warning about the htmlspecialchars() 
>>>>> function in horde/lib/Horde/Notification/Listener/status.php
>>>>>
>>>>> [client 134.157.XXX.XXX] PHP Warning:htmlspecialchars() expects 
>>>>> parameter 1 to be string, object given in 
>>>>> /var2/www/html/new/WORK/horde-3.3.11/lib/Horde/Notification/Listener/status.php 
>>>>> on line 77, referer: 
>>>>> https://www.domain/new/WORK/horde-3.3.11/login.php?frameset_loaded=1
>>>>>
>>>>> My php version is 4.3.9 (redhat 4)
>>>>>
>>>>> In my mysql backend, there are also new records whenever I click. 
>>>>> And the number of records equal the number of my empty messages:
>>>>>
>>>>> mysql> *select * from horde_datatree where user_uid='matrice';*
>>>>>
>>>>> +-------------+------------------------+----------+----------------------------------+------------------+----------------+---------------+---------------------+ 
>>>>> | datatree_id | group_uid| user_uid | datatree_name| 
>>>>> datatree_parents | datatree_order | datatree_data | 
>>>>> datatree_serialized |
>>>>>
>>>>> +-------------+------------------------+----------+----------------------------------+------------------+----------------+---------------+---------------------+ 
>>>>> |619 | horde.shares.turba| matrice| 
>>>>> 736759c241722fd1d229c9bfaeac6088 ||NULL | NULL|0 |
>>>>>
>>>>> |620 | horde.shares.nag| matrice| matrice||NULL | NULL|0 |
>>>>>
>>>>> |621 | horde.shares.kronolith | matrice| matrice||NULL | NULL|0 |
>>>>>
>>>>> |622 | horde.shares.mnemo| matrice| matrice||NULL | NULL|0 |
>>>>>
>>>>> |5653 | horde.shares.turba| matrice| 
>>>>> 38845372e11ceeeaac8d18cd4451deb0 ||NULL | NULL|0 |
>>>>>
>>>>> |5654 | horde.shares.turba| matrice| 
>>>>> 6c2f5d0bd7f8ad73675e0a242be351a5 ||NULL | NULL|0 |
>>>>>
>>>>> |5659 | horde.shares.turba| matrice| 
>>>>> dc4828af3f3187cb65200c7d9a54bfa3 ||NULL | NULL|0 |
>>>>>
>>>>> |5660 | horde.shares.turba| matrice| 
>>>>> 97e7ed13edf5ad3767926508f9b474ba ||NULL | NULL|0 |
>>>>>
>>>>> |5661 | horde.shares.turba| matrice| 
>>>>> 6e0903ba1511911949f8fd5e69062f9e ||NULL | NULL|0 |
>>>>>
>>>>> |5662 | horde.shares.turba| matrice| 
>>>>> 34e9b798e13ca8d580baff95aede0c5c ||NULL | NULL|0 |
>>>>>
>>>>> |5663 | horde.shares.turba| matrice| 
>>>>> dc1cb30f1081113664bd7fd5f76c4553 ||NULL | NULL|0 |
>>>>>
>>>>> |5739 | horde.shares.turba| matrice| 
>>>>> 0453d2eba24948d6e4ad823a0a99f198 ||NULL | NULL|0 |
>>>>>
>>>>> |5740 | horde.shares.turba| matrice| 
>>>>> e59fb1b570e800e27a36774f680d12a9 ||NULL | NULL|0 |
>>>>>
>>>>> |5741 | horde.shares.turba| matrice| 
>>>>> 3f7ec2c7bfcd2a938d3b28af0b088a87 ||NULL | NULL|0 |
>>>>>
>>>>> |5742 | horde.shares.turba| matrice| 
>>>>> a793fdfafc1a1a71d8869b495118a7f8 ||NULL | NULL|0 |
>>>>>
>>>>> |5743 | horde.shares.turba| matrice| 
>>>>> e3fff298aa5a8e3ddadcb7312bd2e669 ||NULL | NULL|0 |
>>>>>
>>>>> .....
>>>>>
>>>>> More than 20 lines.
>>>>>
>>>>> I have configured myself the files: config/sources.php and 
>>>>> config/attributes.php
>>>>>
>>>>> What does it mean ? Have you any suggestions ? Thanks a lot
>>>>>
>>>> Hi,
>>>>
>>>> Nobody else met this bug in turba>2.3.3 ?
>>>> So am I  the only one in this case ?
>>>
>>> Yes, looks like it. There seem to several issues at once. Let's 
>>> start with one first. Put a
>>>
>>> var_dump($text);
>>>
>>> before the
>>>
>>> $text = htmlspecialchars($text);
>>>
>>> line and post the output.
>>>
>>> Jan.
>>>
>> Hi Jan,
>>
>> Thank you kindly help me
>>
>> I did what you suggest, and I get in each message:
>>
>>
>> object(__PHP_Incomplete_Class)(16) { 
>> ["__PHP_Incomplete_Class_Name"]=> string(16) "turba_driver_sql"
>
> Whoa, no idea how you got *there*.
>
> Try putting this at the top of the push() method in 
> lib/Horde/Notification.php:
>
> if (is_a($event, 'Turba_Driver_sql')) {
>     var_dump(debug_backtrace());
> }
>
> Jan.
>
It's very very verbose.
I extracted the first lines:

array(5) { [0]=> array(6) { ["file"]=> string(65) 
"/var2/www/html/new/WORK/horde-3.3.11/turba-h3-2.3.5/lib/Turba.php" 
["line"]=> int(416) ["function"]=> string(4) "push" ["class"]=> 
string(12) "notification" ["type"]=> string(2) "->" ["args"]=> array(2) 
{ [0]=> &object(turba_driver_sql)(15) { ["name"]=> string(8) "localsql" 
["title"]=> string(12) "Mon annuaire" ["map"]=> array(41) { ["__key"]=> 
string(9) "object_id" ["__owner"]=> string(8) "owner_id" ["__type"]=> 
string(11) "object_type" ["__members"]=> string(14) "object_members" 
["__uid"]=> string(10) "object_uid" ["firstname"]=> string(16) 
"object_firstname" ["lastname"]=> string(15) "object_lastname" 
["middlenames"]=> string(18) "object_middlenames" ["namePrefix"]=> 
string(17) "object_nameprefix" ["nameSuffix"]=> string(17) 
"object_namesuffix" ["name"]=> array(3) { ["fields"]=> array(5) { [0]=> 
string(10) "namePrefix" [1]=> string(9) "firstname" [2]=> string(11) 
"middlenames" [3]=> string(8) "lastname" [4]=> string(10) "nameSuffix" } 
["format"]=> string(14) "%s %s %s %s %s" ["parse"]=> array(2) { [0]=> 
array(2) { ["fields"]=> array(3) { [0]=> string(9) "firstname" [1]=> 
string(11) "middlenames" [2]=> string(8) "lastname" } ["format"]=> 
string(8) "%s %s %s" } [1]=> array(2) { ["fields"]=> array(2) { [0]=> 
string(9) "firstname" [1]=> string(8) "lastname" } ["format"]=> 
string(5) "%s %s" } } } ["alias"]=> string(12) "object_alias" 
["birthday"]=> string(11) "object_bday" ["homeStreet"]=> string(17) 
"object_homestreet" ["homePOBox"]=> string(14) "object_homepob" 
["homeCity"]=> string(15) "object_homecity" ["homeProvince"]=> 
string(19) "object_homeprovince" ["homePostalCode"]=> string(21) 
"object_homepostalcode" ["homeCountry"]=> string(18) 
"object_homecountry" ["workStreet"]=> string(17) "object_workstreet" 
["workPOBox"]=> string(14) "object_workpob" ["workCity"]=> string(15) 
"object_workcity" ["workProvince"]=> string(19) "object_workprovince" 
["workPostalCode"]=> string(21) "object_workpostalcode" 
["workCountry"]=> string(18) "object_workcountry" ["timezone"]=> 
string(9) "object_tz" ["email"]=> string(12) "object_email" 
["homePhone"]=> string(16) "object_homephone" ["workPhone"]=> string(16) 
"object_workphone" ["cellPhone"]=> string(16) "object_cellphone" 
["fax"]=> string(10) "object_fax" ["pager"]=> string(12) "object_pager" 
["title"]=> string(12) "object_title" ["role"]=> string(11) 
"object_role" ["company"]=> string(14) "object_company" ["category"]=> 
string(15) "object_category" ["notes"]=> string(12) "object_notes" 
["website"]=> string(10) "object_url" ["freebusyUrl"]=> string(18) 
"object_freebusyurl" ["pgpPublicKey"]=> string(19) "object_pgppublickey" 
["smimePublicKey"]=> string(21) "object_smimepublickey" } ["tabs"]=> 
array(5) { ["Petite annonce personnelle"]=> array(8) { [0]=> string(9) 
"firstname" [1]=> string(8) "lastname" [2]=> string(11) "middlenames" 
[3]=> string(10) "namePrefix" [4]=> string(10) "nameSuffix" [5]=> 
string(4) "name" [6]=> string(5) "alias" [7]=> string(8) "birthday" } 
["Lieu"]=> array(13) { [0]=> string(10) "homeStreet" [1]=> string(9) 
"homePOBox" [2]=> string(8) "homeCity" [3]=> string(12) "homeProvince" 
[4]=> string(14) "homePostalCode" [5]=> string(11) "homeCountry" [6]=> 
string(10) "workStreet" [7]=> string(9) "workPOBox" [8]=> string(8) 
"workCity" [9]=> string(12) "workProvince" [10]=> string(14) 
"workPostalCode" [11]=> string(11) "workCountry" [12]=> string(8) 
"timezone" } ["Communications"]=> array(6) { [0]=> string(5) "email" 
[1]=> string(9) "homePhone" [2]=> string(9) "workPhone" [3]=> string(9) 
"cellPhone" [4]=> string(3) "fax" [5]=> string(5) "pager" } 
["Organisation"]=> array(3) { [0]=> string(5) "title" [1]=> string(4) 
"role" [2]=> string(7) "company" } ["Autre"]=> array(6) { [0]=> 
string(8) "category" [1]=> string(5) "notes" [2]=> string(7) "website" 
[3]=> string(11) "freebusyUrl" [4]=> string(12) "pgpPublicKey" [5]=> 
string(14) "smimePublicKey" } } ["fields"]=> array(40) { ["__key"]=> 
string(9) "object_id" ["__owner"]=> string(8) "owner_id" ["__type"]=> 
string(11) "object_type" ["__members"]=> string(14) "object_members" 
["__uid"]=> string(10) "object_uid" ["firstname"]=> string(16) 
"object_firstname" ["lastname"]=> string(15) "object_lastname" 
["middlenames"]=> string(18) "object_middlenames" ["namePrefix"]=> 
string(17) "object_nameprefix" ["nameSuffix"]=> string(17) 
"object_namesuffix" ["alias"]=> string(12) "object_alias" ["birthday"]=> 
string(11) "object_bday" ["homeStreet"]=> string(17) "object_homestreet" 
["homePOBox"]=> string(14) "object_homepob" ["homeCity"]=> string(15) 
"object_homecity" ["homeProvince"]=> string(19) "object_homeprovince" 
["homePostalCode"]=> string(21) "object_homepostalcode" 
["homeCountry"]=> string(18) "object_homecountry" ["workStreet"]=> 
string(17) "object_workstreet" ["workPOBox"]=> string(14) 
"object_workpob" ["workCity"]=> string(15) "object_workcity" 
["workProvince"]=> string(19) "object_workprovince" ["workPostalCode"]=> 
string(21) "object_workpostalcode" ["workCountry"]=> string(18) 
"object_workcountry" ["timezone"]=> string(9) "object_tz" ["email"]=> 
string(12) "object_email" ["homePhone"]=> string(16) "object_homephone" 
["workPhone"]=> string(16) "object_workphone" ["cellPhone"]=> string(16) 
"object_cellphone" ["fax"]=> string(10) "object_fax" ["pager"]=> 
string(12) "object_pager" ["title"]=> string(12) "object_title" 
["role"]=> string(11) "object_role" ["company"]=> string(14) 
"object_company" ["category"]=> string(15) "object_category" ["notes"]=> 
string(12) "object_notes" ["website"]=> string(10) "object_url" 
["freebusyUrl"]=> string(18) "object_freebusyurl" ["pgpPublicKey"]=> 
string(19) "object_pgppublickey" ["smimePublicKey"]=> string(21) 
"object_smimepublickey" } ["strict"]=> array(3) { [0]=> string(9) 
"object_id" [1]=> string(8) "owner_id" [2]=> string(11) "object_type" } 
["approximate"]=> array(0) { } ["listNameField"]=> string(8) "lastname" 
["alternativeName"]=> NULL ["_params"]=> array(12) { ["persistent"]=> 
bool(false)
.....


More information about the turba mailing list