6.0.0-beta1
7/18/25

[#7484] Notice: Object of class PEAR_Error could not be converted to int in ...horde/mnemo/templates/list/memo_summaries.inc
Summary Notice: Object of class PEAR_Error could not be converted to int in ...horde/mnemo/templates/list/memo_summaries.inc
Queue Mnemo
Queue Version FRAMEWORK_3
Type Bug
State No Feedback
Priority 1. Low
Owners
Requester lfbm.andamentos (at) gmail (dot) com
Created 10/12/2008 (6123 days ago)
Due
Updated 11/06/2008 (6098 days ago)
Assigned 10/19/2008 (6116 days ago)
Resolved 11/06/2008 (6098 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/06/2008 02:26:17 AM Chuck Hagenbuch State ⇒ No Feedback
 
10/22/2008 08:32:37 AM Jan Schneider Comment #6 Reply to this comment
This makes absolutely no sense to me, unless you changed 
memo_summaries.inc. The only place where we access a PEAR_Error object 
in that line, is in the comparison "$memo['body'] != $memo['desc']", 
and this has nothing to do with conversion to int.
10/21/2008 11:40:41 PM lfbm (dot) andamentos (at) gmail (dot) com Comment #5 Reply to this comment
Here it goes:



array

   'memolist_id' => string 'lfbm' (length=4)

   'memo_id' => string 'ae3a7d46577f2c2dbb742936213f0bd9' (length=32)

   'uid' => string '20080913125322.67117325hizvo9o2@marzagao.com.br' 
(length=47)

   'desc' => string 'Oldfile' (length=7)

   'body' =>

     object(PEAR_Error)[20]

       public 'error_message_prefix' => string '' (length=0)

       public 'mode' => int 1

       public 'level' => int 1024

       public 'code' => int 100

       public 'message' => string 'Esta anotação foi criptografada.' 
(length=34)

       public 'userinfo' => null

       public 'backtrace' =>

         array

           0 =>

             array

               ...

           1 =>

             array

               ...

           2 =>

             array

               ...

           3 =>

             array

               ...

           4 =>

             array

               ...

           5 =>

             array

               ...

       public 'callback' => null

   'category' => string '' (length=0)

   'encrypted' => boolean true
10/21/2008 10:26:13 PM Jan Schneider Comment #4 Reply to this comment
Please put a

var_dump($memo);

on that line and post the results.
10/21/2008 08:33:09 PM lfbm (dot) andamentos (at) gmail (dot) com Comment #3 Reply to this comment
Hum, could I provide more info? Maybe it´s something on my system?!



Have you tried to logout and login before seeing if the notice was there?



Here´s a screenshot: http://easylifeproject.org/images/mnemo_notice.jpg



The only mnemo note that gets the "notice" msg is the one named 
"Oldfile" on the screenshot, which is encrypted with a password. If I 
uncrypt it, then the msg goes away.



Then, if I encrypt it again, the "notice" is displayed back, but only 
after a *logout and login*.


10/19/2008 04:59:24 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
I don't see this, and there is no integer conversion in this line.
10/12/2008 10:35:17 PM lfbm (dot) andamentos (at) gmail (dot) com Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Notice: Object of class PEAR_Error could not be converted to int in ...horde/mnemo/templates/list/memo_summaries.inc
Queue ⇒ Mnemo
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
1. Install (mnemo)  H3 (2.2.2-cvs) (2008-10-11 nightly snapshot);

2. Create a note and encrypt it with a password;

3. Turn on display_errors in php.ini;

3. Display your notes;

4. On the line of the encrypted note you get this notice:



( ! ) Notice: Object of class PEAR_Error could not be converted to int 
in /var/www/html/horde/mnemo/templates/list/memo_summaries.inc on line 
15

Call Stack

#        Time        Memory        Function        Location

1        0.0003        72840        {main}( )        ../index.php:0

2        0.0008        126464        require( '/var/www/html/horde/mnemo/list.php' 
)        ../index.php:24

3        0.1530        3031272        require( 
'/var/www/html/horde/mnemo/templates/list/memo_summaries.inc' 
)        ../list.php:102


Saved Queries