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

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

695 2910

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 567

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012