If you happen to be using AmhetaDesk from CVS and run into an odd error about something not being an ARRAY reference in Channels.pm, apply this patch:

--- Channels.pm.old   2002-06-20 17:09:59.000000000 -0700
+++ Channels.pm 2002-09-14 18:29:03.000000000 -0700
@@ -130,8 +130,13 @@
       # templates. this matches the rss 1.0 layout.
       my $items_copy; $items_copy->{item} = $data->{channel}->{item};
       undef $data->{channel}->{item}; # remove this hierarchy.
-      foreach my $item (@{$items_copy->{item}}) {
-         push(@{$data->{item}}, $item);
+      if (ref $items_copy->{item} ne 'ARRAY') {
+        # uh oh!
+      }
+      else {
+        foreach my $item (@{$items_copy->{item}}) {
+           push(@{$data->{item}}, $item);
+        }
       }
    }
    elsif ($channel_xml =~ //i) {

It fixed it for me. Patch is on its way to the AmphetaDesk hackers, too.

Yeay for Open Source.

Update: Morbus Iff (the creator of AmphetaDesk) tells me that it's already fixed in CVS. Woohoo!

Posted by jzawodn at September 17, 2002 03:03 PM

HiddenNetwork.com Banner

Reader Comments
Leave a Comment
Your Name (optional)


Your Email Address (required but won't be displayed on the site)


Your Weblog URL (no weblog? leave it blank)


Type "Jeremy" below (required)


Comment here. Stay on topic (policy). No HTML tags, sorry.


Remember Me



Disclaimer: The opinions expressed here are mine and mine alone. My future, past, or previous employers are not responsible for what I write here, the comments left by others, or the photos I may share. If you have questions, please contact me. Also, I am not a journalist or reporter. Don't "pitch" me.

 

Privacy: I do not share or publish the email addresses or IP addresses of anyone posting a comment here without consent. However, I do reserve the right to remove comments that are spammy, off-topic, or otherwise unsuitable based on my comment policy. In a few cases, I may leave spammy comments but remove any URLs they contain.