Hm, so I tried the first Backup manually, so there was a log. I use Habari 0.5.1, so the last stable version. When I got it right, than I have to upgrade to the actual HEAD, when I want to use the Dash? Or will it affect the automatic functionality?
regards Florian On 5 Okt., 23:04, "Scott Merrill" <[EMAIL PROTECTED]> wrote: > On Sun, Oct 5, 2008 at 4:45 PM, Scott Merrill <[EMAIL PROTECTED]> wrote: > > <[EMAIL PROTECTED]> wrote: > >> Fatal error: Call to a member function format() on a non-object in / > >> var/www/.../user/plugins/habaribackup/habaribackup.plugin.php on line > >> 76 > ... > > Oh, silly me. That error occurs because there are no backup log entries. > > No, that's not right. Note to self: review your code before you give an > answer. > > The plugin does properly check for the presence of any log entries. > If none exist, it should state that. > > Which version of Habari are you using? I'm guess it's an older > version, because the line in question is this: > $content.= $log->timestamp->format( 'M j' ); > > The timestamp element of a log entry in Habari's HEAD version should > be a HabariDateTime object, which permits me to use the format() > method. If you're using a version of Habari that does not use > HabariDateTime objects, that would explain the error you received. > > I'm not going to retrofit the old timestamps into the Habari Backup > plugin. It will only work with HabariDateTime objects. > > Cheers, > Scott --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/habari-users -~----------~----~----~----~------~----~------~--~---
