6.0.0-alpha14
7/2/25

[#9819] Errors when moving events around
Summary Errors when moving events around
Queue Horde Base
Queue Version 4.0
Type Bug
State No Feedback
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester michael.groene (at) zel (dot) uni-hannover (dot) de
Created 04/06/2011 (5201 days ago)
Due
Updated 06/29/2011 (5117 days ago)
Assigned 05/19/2011 (5158 days ago)
Resolved 06/06/2011 (5140 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/29/2011 02:09:34 PM Jan Schneider Comment #16 Reply to this comment
Sounds like a duplicate of Bug #10252.
06/07/2011 02:25:49 PM michael (dot) groene (at) zel (dot) uni-hannover (dot) de Comment #15 Reply to this comment
Can the OP confirm that this no longer happens after pruning the cache?
I can't. Errors still happen, even after pruning the cache (static-dir 
in horde-install and browser-cache).

Updated recently to the lastest version of horde.
06/06/2011 04:37:23 PM Michael Slusarz State ⇒ No Feedback
 
05/19/2011 09:47:49 PM Jan Schneider Comment #14
State ⇒ Feedback
Reply to this comment
Can the OP confirm that this no longer happens after pruning the cache?
05/19/2011 06:13:56 PM Michael Slusarz Comment #13 Reply to this comment
Except this is surely an issue related to Bug #9821.  And there was no 
response there.  The only way this error could occur is if the user 
had old cache data lying around.
05/19/2011 06:08:11 PM Jan Schneider Comment #12
Taken from Horde DevelopersHorde Developers
Assigned to Michael Slusarz
Reply to this comment
No, it actually should, because the main problem is somehow related to 
Horde_Mime_Part, and you already managed to fix it once ;-)
05/19/2011 06:01:52 PM Michael Slusarz Comment #11
Assigned to Horde DevelopersHorde Developers
Taken from Michael Slusarz
Reply to this comment
I'm assuming this shouldn't be assigned to me anymore.
05/19/2011 05:55:46 PM Jan Schneider Comment #10 Reply to this comment
Further DesktopNotifications in Chrome will still never be 
displayed. It has been broken with changes made in ticket or maybe 
in 9748? Not really sure. Work Notifications in Chrome for you?
For some reason, my Chrome isn't asking me for permission again, 
because I once denied it. And I can't find a way to reset this in 
Chrome.
05/19/2011 05:54:45 PM Jan Schneider State ⇒ Assigned
 
05/04/2011 12:10:29 PM michael (dot) groene (at) zel (dot) uni-hannover (dot) de Comment #9 Reply to this comment
Just got those errors again, with an alarmed event (mail, desktop, in text)

Further DesktopNotifications in Chrome will still never be displayed. 
It has been broken with changes made in ticket or maybe in 9748? Not 
really sure. Work Notifications in Chrome for you?



2011-05-04T13:52:04+02:00 WARN: HORDE [kronolith] PHP ERROR: rewind() 
expects parameter 1 to be resource, string given [pid 13925 on line 
1799 of "/usr/share/php/Horde/Mime/Part.php"]
2011-05-04T13:52:04+02:00 WARN: HORDE [kronolith] PHP ERROR: fread() 
expects parameter 1 to be resource, string given [pid 13925 on line 
1800 of "/usr/share/php/Horde/Mime/Part.php"]
2011-05-04T13:52:04+02:00 WARN: HORDE [kronolith] PHP ERROR: rewind() 
expects parameter 1 to be resource, string given [pid 13925 on line 
1799 of "/usr/share/php/Horde/Mime/Part.php"]
2011-05-04T13:52:04+02:00 WARN: HORDE [kronolith] PHP ERROR: fread() 
expects parameter 1 to be resource, string given [pid 13925 on line 
1800 of "/usr/share/php/Horde/Mime/Part.php"]
2011-05-04T13:54:10+02:00 WARN: HORDE [imp] PHP ERROR: Invalid 
argument supplied for foreach() [pid 13925 on line 169 of 
"/var/www/horde4/imp/lib/Mime/Viewer/Html.php"]
2011-05-04T13:54:16+02:00 WARN: HORDE [imp] PHP ERROR: Invalid 
argument supplied for foreach() [pid 13925 on line 169 of 
"/var/www/horde4/imp/lib/Mime/Viewer/Html.php"]
2011-05-04T13:55:22+02:00 WARN: HORDE [kronolith] PHP ERROR: rewind() 
expects parameter 1 to be resource, string given [pid 13948 on line 
1799 of "/usr/share/php/Horde/Mime/Part.php"]
2011-05-04T13:55:22+02:00 WARN: HORDE [kronolith] PHP ERROR: fread() 
expects parameter 1 to be resource, string given [pid 13948 on line 
1800 of "/usr/share/php/Horde/Mime/Part.php"]

04/13/2011 04:00:15 PM Jan Schneider State ⇒ Resolved
 
04/13/2011 02:06:50 PM michael (dot) groene (at) zel (dot) uni-hannover (dot) de Comment #8 Reply to this comment
Maybe this fixes?
Seems so, thanks!
04/11/2011 07:48:35 PM Michael Slusarz Comment #7 Reply to this comment
Maybe this fixes?
04/11/2011 07:48:31 PM Git Commit Comment #6 Reply to this comment
Changes have been made in Git for this ticket:

Bug #9819: Fix unserializing Horde_Mime_Part containing data.

  3 files changed, 26 insertions(+), 5 deletions(-)
http://git.horde.org/horde-git/-/commit/1dbcf10a88de0d5130492304d60d0dd87e7f92d5
04/11/2011 05:36:50 PM Michael Rubinsky Comment #5
Assigned to Michael Slusarz
Reply to this comment
I still can't reproduce this, but from your trace, it looks like the 
value of Horde_Mime_Part::_contents is a string value instead of a 
stream for some reason. Just spend 20 minutes tracing the code but 
still can't find a reason why this would happen.

Maybe someone who is more familiar with the Horde_Mime code can take a 
look? Michael?
04/07/2011 01:56:52 PM michael (dot) groene (at) zel (dot) uni-hannover (dot) de Comment #4
New Attachment: horde_debug.txt Download
Reply to this comment
I can't reproduce this.
Can you provide a backtrace?
As you requested, see attachment.


Additionally in PHP's log:

2011-04-07T15:49:31+02:00 WARN: HORDE [kronolith] PHP ERROR: rewind() 
expects parameter 1 to be resource, string given [pid 19471 on line 
1798 of "/usr/share/php/Horde/Mime/Part.php"]
2011-04-07T15:49:31+02:00 WARN: HORDE [kronolith] PHP ERROR: fread() 
expects parameter 1 to be resource, string given [pid 19471 on line 
1799 of "/usr/share/php/Horde/Mime/Part.php"]
2011-04-07T15:49:31+02:00 WARN: HORDE [kronolith] PHP ERROR: rewind() 
expects parameter 1 to be resource, string given [pid 19471 on line 
1798 of "/usr/share/php/Horde/Mime/Part.php"]
2011-04-07T15:49:31+02:00 WARN: HORDE [kronolith] PHP ERROR: fread() 
expects parameter 1 to be resource, string given [pid 19471 on line 
1799 of "/usr/share/php/Horde/Mime/Part.php"]
2011-04-07T15:49:31+02:00 WARN: HORDE [kronolith] PHP ERROR: rewind() 
expects parameter 1 to be resource, string given [pid 19471 on line 
1798 of "/usr/share/php/Horde/Mime/Part.php"]
2011-04-07T15:49:31+02:00 WARN: HORDE [kronolith] PHP ERROR: fread() 
expects parameter 1 to be resource, string given [pid 19471 on line 
1799 of "/usr/share/php/Horde/Mime/Part.php"]
2011-04-07T15:49:31+02:00 WARN: HORDE [kronolith] PHP ERROR: rewind() 
expects parameter 1 to be resource, string given [pid 19471 on line 
1798 of "/usr/share/php/Horde/Mime/Part.php"]
2011-04-07T15:49:31+02:00 WARN: HORDE [kronolith] PHP ERROR: fread() 
expects parameter 1 to be resource, string given [pid 19471 on line 
1799 of "/usr/share/php/Horde/Mime/Part.php"]
2011-04-07T15:49:31+02:00 WARN: HORDE [kronolith] PHP ERROR: rewind() 
expects parameter 1 to be resource, string given [pid 19471 on line 
1798 of "/usr/share/php/Horde/Mime/Part.php"]
2011-04-07T15:49:31+02:00 WARN: HORDE [kronolith] PHP ERROR: fread() 
expects parameter 1 to be resource, string given [pid 19471 on line 
1799 of "/usr/share/php/Horde/Mime/Part.php"]
2011-04-07T15:49:31+02:00 WARN: HORDE [kronolith] PHP ERROR: rewind() 
expects parameter 1 to be resource, string given [pid 19471 on line 
1798 of "/usr/share/php/Horde/Mime/Part.php"]
2011-04-07T15:49:31+02:00 WARN: HORDE [kronolith] PHP ERROR: fread() 
expects parameter 1 to be resource, string given [pid 19471 on line 
1799 of "/usr/share/php/Horde/Mime/Part.php"]

04/06/2011 06:09:10 PM Michael Rubinsky Comment #3
State ⇒ Feedback
Reply to this comment
I can't reproduce this.

Can you provide a backtrace?

e.g., put:

  Horde::debug($fp);

right before line 1797 in Horde/Mime/Part.php?
04/06/2011 09:39:02 AM michael (dot) groene (at) zel (dot) uni-hannover (dot) de Comment #2 Reply to this comment
More details, on how to reproduce:
Event has to have email-notification enabled, and the events timespan 
has to have the current time (the red line) within it.
04/06/2011 09:30:48 AM michael (dot) groene (at) zel (dot) uni-hannover (dot) de Comment #1
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Summary ⇒ Errors when moving events around
Type ⇒ Bug
Queue ⇒ Horde Base
Reply to this comment
I got many of these errors in php's logfile.
Can reproduce this, when moving an event in the day-view of the 
ajaxified frontend.

Maybe it could have to do with Chromes desktop-notifications, too, 
since they won't work any more (but notifying about alarms via mail is 
ok)?

2011-04-06T11:19:18+02:00 WARN: HORDE [kronolith] PHP ERROR: rewind() 
expects parameter 1 to be resource, string given [pid 19463 on line 
1797 of "/usr/share/php/Horde/Mime/Part.php"]
2011-04-06T11:19:18+02:00 WARN: HORDE [kronolith] PHP ERROR: fread() 
expects parameter 1 to be resource, string given [pid 19463 on line 
1798 of "/usr/share/php/Horde/Mime/Part.php"]

Saved Queries