[Tickets #6740] Re: convert_datatree_shares_to_sql.php does not run to completion

bugs at horde.org bugs at horde.org
Thu May 22 21:36:53 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/6740
-----------------------------------------------------------------------
 Ticket             | 6740
 Updated By         | morgan at orst.edu
 Summary            | convert_datatree_shares_to_sql.php does not run to
completion
 Queue              | Kronolith
 Version            | 2.2-RC3
 Type               | Bug
 State              | Feedback
 Priority           | 2. Medium
 Milestone          |
 Patch              |
 Owners             | Chuck Hagenbuch
+New Attachment     | convert_datatree_shares_to_sql.php.patch
-----------------------------------------------------------------------


morgan at orst.edu (2008-05-22 17:36) wrote:

> Can you try rev 1.3 of the script from here:
>
http://cvs.horde.org/kronolith/scripts/upgrades/convert_datatree_shares_to_sql.php
>
> I changed it not to load all of the datatree rows into memory and to
> free/unset some resources after each iteration, since my guess is
> that you're hitting memory issues (either just resource exhaustion or
> an actual memory limit). If this works for you we can merge the
> changes and copy the modifications to the other versions of this
> script in other apps.

Close!  The $result variable was re-used so this version only processes 1
row and exits.  :)

See the attached patch for a simple fix.  It runs to completion for me.




More information about the bugs mailing list