user-pic

[Action Streams] "Can't use an undefined value as a HASH reference" error during install/upgrade

Vote 0 Votes

I installed this today but its not working. The upgrade routine does not complete. I get this error message:

Can't use an undefined value as a HASH reference at /usr/local/www/sharedapps/mt/cgi-bin/extlib/Data/ObjectDriver/BaseObject.pm line 283.

From a bit of debugging, it appears that ActionStream's Event object is causing this. The properties object is not defined when it tries to get the $_[0]->properties->{datasource} value.

I have MT 4.1 installed clean with MySQL.

6 Replies

| Add a Reply
  • Hey Brandon,
    Did you upload the "extlib" directory from the plugin? That error normally means there is a required library which isn't instaled.

    --David

  • I'm having the same problem as Brandon, but less luck in fixing it. I've completely replaced the extlib directory - started off with what's in the MTP 4.1 zip, then merged in the Action Streams items, and I'm still getting it. Are there other libraries I might be missing?

    Thanks!

  • Mark - thanks for the details. As it turns out, I had put Web::Scraper in the WWW dir, because...well, because I'm dumb.

    As it turns out, that didn't totally solve the problem. I'm still getting an error from the CGI script you linked to:

    Weak references are not implemented in the version of perl at extlib/HTML/TreeBuilder/XPath.pm line 93
    BEGIN failed--compilation aborted at extlib/HTML/TreeBuilder/XPath.pm line 93.
    Compilation failed in require at extlib/Web/Scraper.pm line 9.
    BEGIN failed--compilation aborted at extlib/Web/Scraper.pm line 9.
    Compilation failed in require at (eval 1) line 1.
    BEGIN failed--compilation aborted at (eval 1) line 1.

    Unfortunately, my knowledge of Perl is newb at best, but I'm going to keep poking it with a stick to see if I can't make something come out.

    • Brock: no problem, it can be tricky to get all the parts in the right place! The instructions are a little more complex than they could be because sometimes people using cgi-bin directories have to move mt-static out of the application directory.

      Weak references were added in 1.6.0, so as long as your perl is newer than that, it should work fine. However this thread at perlmonks suggests sometimes Scalar::Util or perl are miscompiled to think they don't have weak references. You might try the last suggestion of reinstalling Scalar::Util from CPAN, if you were using your OS's package management and it still doesn't work.

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

64 194

Last Topic: movable type 5 custom fields by kljx on Mar 17, 2010

1004 3222

Last Topic: Create Offline Backup by Jackie on Mar 17, 2010

482 1976

Last Topic: ¿Any command line tool to rebuild MT? by Nicolás on Mar 16, 2010

102 360

Last Topic: Saving an entry...what is happening by jdbeast00 on Mar 12, 2010

57 127

Last Topic: Anyone using Disqus with MT5? by Jim S. on Mar 17, 2010

19 69

Last Topic: Custom main index page by Richard on Feb 7, 2010

43 172

Last Topic: by MG on Feb 20, 2010

11 22

Last Topic: Monthly Calendars Help Needed by joe leblanc on Jan 19, 2010

91 326

Last Topic: SpamLookup Keyword Filter 2.1 not work by b.n09 on Nov 17, 2009

55 203

Last Topic: URL Problems by NoSnaiL on Mar 17, 2010

code.sixapart.com

129 448

Last Topic: Action Stream for Google Buzz by jack lail on Feb 16, 2010

160 498

Last Topic: Installed custom Asset markup by spierce on Mar 15, 2010