Main Stories
Slash Boxes

Slash Open Source Project

Slashcode Log In

Log In

[ Create a new account ]

Article Poll

Poll I found this article to be
Very Helpful
Helpful
Not Helpful
Not Very Helpful
[ Results | Polls ]
Comments:0 | Votes:0

Can't get Messages Plugin to work

posted by Krow on 06:30 AM March 27th, 2002   Printer-friendly   Email story
I have everything else going on my slashsite except for the Messages plugin. When I initially did my install I picked 'a' to install ALL plugins.. I have since gone back and run install-plugin as well to just install the Messages plugin. It doesn't seem to do anything. I hit 7 for the messages plugin and then have to hit enter twice (for some reason). It asks me whether I want to install with symlinks and then thats it. When I click on the Messages link on my site I get an Internal Server Error. When I look at the slashd.log I notice than when message_delivery.pl runs it seems that it can't find Slash/Messages.pm. I don't have a Slash directory anywhere (I have /usr/local/slash). Did I miss something or is there anything anyone can suggest? I'm running on Redhat 7.2. Thanks for any help! :)
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login
Loading... please wait.
  • "internal server error" really doesn't tell anyone squat. You need to post portions of your log files so everyone can see the actual errors, and what you're doing at the time to cause the errors to happen.

    Otherwise, diagnosing is pretty damned hard and everyone's just going to skip over your submission because it lacks all the needed info.
    --
    lottadot [lottadot.com]
    • Good point and it slipped my mind in my haste to get out a message.. Here's what the slashd.log file has..

      Wed Mar 27 22:15:00 2002 message_delivery.pl begin
      Error in library:main:/usr/local/slash/site/dev.guest-tek.c om/tasks/message_delivery.pl:20:Can't locate Slash/Messages.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib /perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-l inux /usr/lib/pe
      rl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at (eval 332) line 3.

      Which was called by:main:/usr/local/slash/sbin/slashd:446:Can't locate Slash/Messages.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib /perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-l inux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl
      5/site_perl .) at (eval 332) line 3.

      Wed Mar 27 22:15:00 2002 message_delivery.pl: could not instantiate Slash::Messages object
      Wed Mar 27 22:15:00 2002 message_delivery.pl end (0.02s; freshenup.pl in 60s)

      It seems it can't find the Messages.pm file which only seems to be in /usr/local/slash/plugins/Messages/ folder when I do a locate.

      In the httpd error log file I see this..

      [Wed Mar 27 22:19:42 2002] [error] /index.pl:Slash::Display::Plugin:/usr/lib/ perl5/site_perl/5.6.0/i386-linux/Slash/Display/Plu gin.pm:75:Can't locate Slash/Messages.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib /perl5/5.6.0 /usr/li
      b/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/ site_perl/5.6.0 /usr/lib/perl5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at (eval 288) line 3.

      [Wed Mar 27 22:19:42 2002] [error] Which was called by:Template::Document:(eval 174):22:Can't locate Slash/Messages.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib /perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-l inux /usr/lib/perl5
      /site_perl/5.6.0 /usr/lib/perl 5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at (eval 288) line 3.

      [Wed Mar 27 22:19:47 2002] [error] /messages.pl:Apache::ROOTdev_2eguest_2dtek _2ecom::messages_2epl:/usr/local/slash/site/dev.gu est-tek.com/htdocs/messages.pl:22:Can't locate Slash/Messages.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr
      /li b/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386- linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl 5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at (eval 267) line 3.

      [Wed Mar 27 22:19:47 2002] [error] Which was called by:Apache::ROOTdev_2eguest_2dtek_2ecom::messages_2 epl:/usr/local/slash/site/dev.guest-tek.com/htdocs /messages.pl:163:Can't locate Slash/Messages.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-li
      nux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/ 5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /u sr/lib/perl5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at (eval 267) line 3.

      [Wed Mar 27 22:19:47 2002] [error] Can't call method "getDescriptions" on an undefined value at /usr/local/slash/site/dev.guest-tek.com/htdocs/ messages.pl line 101.

      Again it seems that Messages.pm can't be found.. Not only that it seems to be looking for it in the Slash/ folder which I do not have anywhere on my system. I only have a /usr/local/slash/ folder.

      Let me know if any further detail is needed and thanks again for any help.
      • The "Slash" folder it is referring to should be in your perl library dirs - somewhere under "/usr/lib/perl5/site_perl/5.6.0".
        --

        --
        Kill-HUP.com [kill-hup.com], proudly running Slash since 1/28/2002.

      • Two things:

        1. I'm running redhat too - but I built my own perl. When I do the following, I can atleast *find* it in the FS:

        $ locate Messages.pm
        /usr/local/lib/perl5/site_perl/5.6.1/ S lash/Messages.pm

        2. do the following query in the site's db:

          select * from site_info where name='plugin';

        that will show you a list of all the plugins that slash has registered as being installed on your site. Is "Messages" in that list?
        --
        lottadot [lottadot.com]
        • When I do a locate for Message.pm I don't see anything in the perl directory..

          All I get is..

          /usr/local/slash/plugins/Messages/Messages.p m

          As far as the database select command goes Messages is appearing in the table under param_id 18. (I tried to post the entire table here but slash wouldn't let me. :)

          So it appears that Messages is installed. I'm guessing it just isn't installed properly. :(

          Do I need to uninstall it (how?) or should I just make a Slash directory in the perl directory and copy Messages
          • got into /usr/local/slash/plugins/Messages

            su to root (or whatever user you need to be) and then do

            perl Makefile.PL && make install

            then do the locate command and see if it's finding it in your perl directories.

            if it's not, somethings wrong with your box/perl.
            --
            lottadot [lottadot.com]
            • That did, that got it working.. Thanks! I wonder why the normal installation didn't work for the Messages Plugin? (even the install-plugin didn't work). Regardless that's gotten me going. Thanks a bunch! :)