6.0.0-git
2019-03-21

[#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 2011-04-06 (2906 days ago)
Due
Updated 2011-06-29 (2822 days ago)
Assigned 2011-05-19 (2863 days ago)
Resolved 2011-06-06 (2845 days ago)
Milestone
Patch No

History
2011-06-29 14:09:34 Jan Schneider Comment #16 Reply to this comment
Sounds like a duplicate of Bug #10252.
2011-06-07 14:25:49 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.
2011-06-06 16:37:23 Michael Slusarz State ⇒ No Feedback
 
2011-05-19 21:47:49 Jan Schneider Comment #14
State ⇒ Feedback
Reply to this comment
Can the OP confirm that this no longer happens after pruning the cache?
2011-05-19 18:13:56 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.
2011-05-19 18:08:11 Jan Schneider Comment #12
Assigned to Michael Slusarz
Taken from Horde DevelopersHorde Developers
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 ;-)
2011-05-19 18:01:52 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.
2011-05-19 17:55:46 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.
2011-05-19 17:54:45 Jan Schneider State ⇒ Assigned
 
2011-05-04 12:10:29 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"]

2011-04-13 16:00:15 Jan Schneider State ⇒ Resolved
 
2011-04-13 14:06:50 michael (dot) groene (at) zel (dot) uni-hannover (dot) de Comment #8 Reply to this comment
Maybe this fixes?
Seems so, thanks!
2011-04-11 19:48:35 Michael Slusarz Comment #7 Reply to this comment
Maybe this fixes?
2011-04-11 19:48:31 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
2011-04-11 17:36:50 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?
2011-04-07 13:56:52 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"]

2011-04-06 18:09:10 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?
2011-04-06 09:39:02 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.
2011-04-06 09:30:48 michael (dot) groene (at) zel (dot) uni-hannover (dot) de Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Summary ⇒ Errors when moving events around
Queue ⇒ Horde Base
Milestone ⇒
Patch ⇒ No
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