What :: UBB Compression with cgi_buffer.pm
Version :: 6.1.0 PB 2
Info :: As promised in the recent
U-zine article. Now you can dramatically reduce bandwidth and download times with an easy to use perl module.
Demo ::
https://www.ubbdev.com/ubbcgi/ultimatebb.cgi Credits ::
WiLD for pointing it out to us
Files ::
https://www.ubbdev.com/hacks/6.1/Compress.zip How To ::
Open ultimatebb.cgi, uncomment use strict; and use vars etc etc (lines #30 and #35) and add this:
require Modules::Compress::cgi_buffer;
import Compress::cgi_buffer
$cgi_buffer::generate_etag = 0;
immediately before your use strict; so that it looks like this:
require Modules::Compress::cgi_buffer;
import Compress::cgi_buffer
$cgi_buffer::generate_etag = 0;
use strict;
use Fcntl ':flock';
use UBBCGI qw(:cgi);
use UBBCGI::Carp qw(fatalsToBrowser set_message);
use vars qw(%etc etc
That should be all you need to do, tho you may want to clear cache...
[ 09-16-2001: Message edited by: AllenAyres ]
Runs so much faster over here.
Warning it requires Compress::Zlib which is not installed by default on most Perl-capable hosts.
q
As stated in the article
All recent versions of activestate perl come with it... and if you are able to install this perl module on your server, you should be able to install the other required modules from cpan
Sounds like one good mod. I'll give it a try soon.
is this better than mod_gzip?
I believe they both use Compress::Zlib - performance should be comparable. I have never checked out mod_gzip because it's written for apache and I've never used an apache server.
WiLD is doing some performance testing and said he would report back his results.
ISAPI compression on a windows server is supposed to perform better than both, but takes a little more work to set up for dynamic files. We're using it for the static files here.
Allen, where can i find httpcomp.dll??
this link
http://www.microsoft.com/TechNet/iis/httpcomp.asp gives me an 404 not found error
TIA
Theoretically, it'll be the same but mod_gzip allows more tweaking (in terms of compression); this module does not (if it uses Compress::Zlib's default gzip mechanism, compression is set at 4 iirc; 1 would be best for speed purposes and CPU load).
Anyways, if you already have mod_gzip on your server and it's compressing CGI output, don't bother to install this hack; it'll just waste CPU clicks.
q
[ September 07, 2001: Message edited by: qasic ]
Here's some more info:
http://support.microsoft.com/support/kb/articles/Q255/9/51.ASP http://www.microsoft.com/technet/tr...chnol/iis/maintain/optimize/perflink.asp Yes, if you've already installed some other form of compression, this would be redundant. It'd be like installing who's online twice
wow Allen this is awesome
w/o cgi_buffer.pm one thread with 2 replies generates ~17KB
with cgi_buffer.pm this same thread generates only ~3KB
thank you very much for this one Allen
rated
I really want to use this but each time i download
cgi_buffer-0.3.tgz , it opens in winzip saying corrupt error.
Am i looking at the right download here?
I had the same problem... the download is trying to save it as a .tar file... be sure and save it as a .tgz file when you save it in the download. Winzip will then open it properly into a tar file and then unpack it after you've saved it to your computer.
Just a reminder this is for servers tht you are able to install perl modules on, either a dedicated server or a shared one a host doesn't mind installing perl modules for you.
Actually, just rename the file so it ends in .tar.gz and you'll have no problems.
qasic
n/m problem fixed. Dang! Pretty fast!
[ September 07, 2001: Message edited by: raiyan ]
Where can I get THIS file?
That's one of the modules mentioned that's required for using this. If you are using activestate perl, it's included. If not, I believe you can get all the modules from cpan.org
I'm using ActiveState Perl and it's not included here
I got some versions from there, but they aren't IO::String (like Convertor::Ethiopian::String, Brute::String)
Maybe it's only the most recent version... I am using 629. Did you also install the perl package manager (PPM)?
Some links:
http://aspn.activestate.com/ASPN/Reference/Products/ASPNTOC-ACTIVEPERL-004 http://aspn.activestate.com/ASPN/Reference/Products/ActivePerl/lib/IO.html hmmm... maybe I have it loaded from something else... if you see where the difference is, can you report back here? You might need to get the module from cpan after all
Nevermind, fixed it, thanks hmiguelito
Allen, I just found the source to the JavaScript problems: this hack
[ September 08, 2001: Message edited by: LK ]
gzipped Javascript and CSS cause some browsers to behave poorly. Known issue... smash the vendors upside the head.
hmmmm... it seems to be compressing all the pages except the forum summary, as they are all 5-10kb except the forum summary which is ~68kb.
yes me too
all except ultimatebb.cgi
Here's an idea for anyone who wants to try it and doesn't have root access to the server to install it.
You can create a directory in your 'Modules' directory called (lets just say) 'CGIBuffer' then copy the cgi_buffer.pm into that directory.
You can then use this code to use the cgi_buffer module:
I have not tested if it is actually compressing yet but there does seem to be an increase in speed when that code is used.
Let me know if it does not work and I will remove my post.
Thanks,
GewGaw
[ September 08, 2001: Message edited by: GewGaw ]
That is very correct qasic! I tested the situation on two separate virtual hosting accounts with two separate ISPs and it functioned fine. This would conclude that the two ISPs were running the required modules.
Thanks for pointing it out... something I overlooked to mention.
GewGaw
so Allen
why isnt forum front page being zipped?
Could this also work on UBB 6.05? Cause I hate upgrading especially after applying like 40 hacks..
And upgrading to UBB 6.1 is a too big leap for me.
Grtz.,
Michael
In theory, it should work as long as you have the required modules installed.
Thanks for the answer..
So it would save bandwith? Even on a 6.05 board (ofcourse) with the right modules installed?
testing it on my 6.05 tonight
wish me luck
[ September 09, 2001: Message edited by: Anime-loo ]
It
should work on the 6.0x series, the problem
might come in the coding of that series.. 6.1x code has been cleaned up tremendously and uncommenting the use strict; is no biggie.
That would be my only concern.
thanks for the input ^_^, we just decided to wait till next weekend to try it on the main forums tho were ganna put it on are test forums tonight and see how it works out
hi have added this cant tell if it has worked would i get an error if it dont work ???
i dont have access to perl, im using a test board with a free host (F2S) because im shopping around for hosting
You should get an error if the required modules aren't installed. Right click on one of your thread pages with a few replies and see if it is ridiculously small in the 5-10kb range
yeah got in touch with f2s to see if they support it and they do
wow its so zippy does it save bandwidth aswell
GREAT JOB GUYS
Wow , never thougt my hints would make it into THE UBBDEV-Zone
Hope that this helps many Board-Admins and Users as well. At least, I love this hack
@all: As somebody said, all pages are compressed, except the forum-overview. I dont have any Idea why this happens. Did someone find out why this might happen?
Willi
Haven't found out yet.. but it makes a huge difference elsewhere
Thanks for the pointers as well. I wrote to the author to see if he might still be developing this further, haven't heard anything yet.
The next version of this will be developed to where it can be used on most any server - shared or dedicated... warnings will be issued tho regarding using this on a shared server and cpu usage.
Files and install instructions updated so that you should be able to add 3 lines of text to your ultimatebb.cgi, upload the Compress folder to your Modules directory (set permissions if necessary (Unix)) and run it.
I've only tested on one server, a win2k. This should work on most any server now, dedicated or shared, please let me know if you get error messages so we can work to include the proper modules and call them correctly.
You can't dump Compress::Zlib as a file - it has outside dependicies which must be compiled in or PPMed in, in Windows.
qasic
[ 09-16-2001: Message edited by: qasic ]
k00l Allen
working gr8
It's included pre-compiled in all recent versions of Activestate perl... do you know of some that don't have it included?
Hello people,
I use ubb 6.05, and I also noticed this "hack" would work for a 6.05 board.
I downloaded the compress-zip file and I read your comments on the first page, but I don't understand it:
What do you mean with etc etc?
I'm sorry for asking, but I just want to make my board load faster.
It's on an Unix machine.
My code looks like:
in the ultimatebb.cgi file.
Some additional info would be very nice.
Or give me a little hint in the right direction.
Nevermind... I think I understand it now...
I only need to add:
require Modules::Compress::cgi_buffer;
import Compress::cgi_buffer
$cgi_buffer::generate_etag = 0;
Probably after line #35 right?
Before or after the vars?
Thanks & sorry for asking newbie-stuff...
Here I am again... Think I did something wrong!?
Look at this:
I did this right did I?
I get the following error:
What did I do wrong?
Using UBB 6.05
1. The Patch works with UBB V6.0x very fine, I've tested it with this Versions. Using the patch with UBB V6.1x Beta works also good, Allen did this already.
2. You only have to install the cgi_buffer.pm in your Perl-Modules Directory, and the other Modules required by cgi_buffer. In the Ultimatebb.cgi, you have to comment out the Lines "use strict" and "use vars...." . Dont change anything in this Lines, just remove the "#" at the begining. Directly after the "use strict" , I added the Line "use cgi_buffer;" , that should do the Trick.
This works fine on my Linuxserver(Redhat 6.1, Perl 5.005), I never did Perl under Windows or Sun/BSD.
again: the modified Part of my ultimatebb.cgi
/////
use strict;
use cgi_buffer;
use Fcntl ':flock';
use CGI::Carp qw(fatalsToBrowser carpout);
use CGI qw(:cgi-lib :standard);
use vars qw(%........blablabla.......
/////
Willi D
just wonder is this supported in windows IIS hosting with CGI running?
Yes, it works on IIS, that's what I am testing it on.
Excellent, it seem you have added it correctly. Did you upload the .pm files in ascii? Set their permissions to 755?
I only have one server to test this on... I have signed up with a couple of free providers to test there as well.
Any standard Perl install on UNIX will not come with Compress::Zlib automatically. I believe Hypermart for one does not have it. ActiveState actually provides it automatically though if you use their distribution or RPMs.
Best way to check is to run PerlDiver and see for yourself what Perl modules are installed.
qasic
I will try again of course, maybe I did something wrong.
I'm going to install it the way WiLD explained, maybe that helps.
In any case, I used a perldiver like Qasic said, and came up with the following info:
*Perl Version: 5.00503
*Apache/1.3.19 (Unix) mod_perl/1.25 PHP/4.0.6 mod_auth_pam/1.0a mod_ssl/2.8.1 OpenSSL/0.9.6a
*A lot of modules installed!!
In any case like Qasic said, there wasn't a module installed called: Compress::Zlib or anything likewise.
If I read Qasics remarks correctly, I should download the Activestate stuff? And install it on my webaccount?
I will try to get those files from here:
http://aspn.activestate.com/ASPN/Reference/Products/ASPNTOC-ACTIVEPERL-004 http://aspn.activestate.com/ASPN/Reference/Products/ActivePerl/lib/IO.html Those where the links Alan posted.
Alan: if your interested I can make you an account on a "old" RAQ3, you can use it how long you want to test it. The server is located in Holland and has nice internet speeds. So if your interested let me know.
But of course please don't put warez/mp3/adult on it. Cause my other clients won't like that.
Okay listen up please:
I found the following:
ActivePerl 5.6.1.629
AS Package 9 megabyte file (ugh)
Also it says:
Does that mean I can install it without using my admin access to the main route, cause since this is only neccesary for the forum I rather not temper with the server settings.
Second I'm on ISDN at home, meaning slow upload and download speeds, so I rather be sure then just wasting my time on down-/uploading a 9 mb file.
I hope you can use this information.
Hi, i'm having problems with this.
Whenever i put it in i get a software error or 500 error whatever.
I'm using 6.1 beta 4 on a unix server.
Here's what i have for ultimatebb.cgi
Excellent:
From PerlDiver it looks as if you have a UNIX server so you can't use the Windows installer - you need the RPMs that work on your flavour of *nix. Better yet, get your server tech to do tha for you (install Compress::Zib).
Raiyan:
Install PerlDiver from
http://www.scriptsolutions.com/ and give us a URL so we may examine what modulse you run.
qasic
[ 09-17-2001: Message edited by: qasic ]
You have MD5 and Compress::Zlib installed. IO::String is included inside this package so there shouldn't be any problems. I probably suspect it's a hacking error. What's the error message inside your error log?
qasic
Thanks Qasic for your info.
I've been reading some info about the mod_gzip and I decided it worth a try on one of my servers to see how it performs.
Cause what I read about it must really boost performance of websites.
Btw this program does the same as UBB Compression right? Only mod_gzip is more "tweakable", and also you preferred this, right?
In any case thanks for all the info and good support.
If you can run mod_gzip, go for it and don't worry about cgi_buffer -
it'll be a waste of resources.
mog_gzip can compress your HTML, HTM pages as well - you specify which
file extensions should be compressed if supported and also on a browser by
browser level as well.
You can also tweak the compression setting - cgibuffer uses 4 but 1 is actually better in this circumstance because the balance between cpu time and compression is just not worth the load on your server.
Hope this helps.
q
It probably was, i'll try reinstalling it when 6.1 beta 5 comes out. I think i hacked my board too far when developing the megamod hack.
But i also had that php accelerator by phillip installed, maybe that was the problem?
Where do I put the string.pm file. I keep it with the other file under /cgi-bin/Modules/Compress and when I try to login to ubb I get an error.... ;( I am running 6.1.0 beta 4. What am I doing wrong?
Open ultimatebb.cgi, uncomment use strict; and use vars etc etc (lines #30 and #35) and add this:
require Modules::Compress::cgi_buffer;
import Compress::cgi_buffer
$cgi_buffer::generate_etag = 0;
immediately before your use strict; so that it looks like this:
require Modules::Compress::cgi_buffer;
import Compress::cgi_buffer
$cgi_buffer::generate_etag = 0;
use strict;
use Fcntl ':flock';
use UBBCGI qw(:cgi);
use UBBCGI::Carp qw(fatalsToBrowser set_message);
use vars qw(%etc etc
That should be all you need to do, tho you may want to clear cache...
Here is the error.....
Software error:
Can't locate IO/String.pm in @INC (@INC contains: ./Modules . c:inetpubwwwrootcgi-bin c:inetpubwwwrootcgi-binModules D:/Perl/lib D:/Perl/site/lib) at Modules/Compress/cgi_buffer.pm line 23.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sat Sep 22 19:14:42 2001] c:inetpubwwwrootcgi-binultimatebb.cgi: Can't locate IO/String.pm in @INC (@INC contains: ./Modules . c:inetpubwwwrootcgi-bin c:inetpubwwwrootcgi-binModules D:/Perl/lib D:/Perl/site/lib) at Modules/Compress/cgi_buffer.pm line 23. BEGIN failed--compilation aborted at Modules/Compress/cgi_buffer.pm line 23.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sat Sep 22 19:14:42 2001] c:inetpubwwwrootcgi-binultimatebb.cgi: [Sat Sep 22 19:14:42 2001] c:inetpubwwwrootcgi-binultimatebb.cgi: Can't locate IO/String.pm in @INC (@INC contains: ./Modules . c:inetpubwwwrootcgi-bin c:inetpubwwwrootcgi-binModules D:/Perl/lib D:/Perl/site/lib) at Modules/Compress/cgi_buffer.pm line 23. [Sat Sep 22 19:14:42 2001] c:inetpubwwwrootcgi-binultimatebb.cgi: BEGIN failed--compilation aborted at Modules/Compress/cgi_buffer.pm line 23. Compilation failed in require at c:inetpubwwwrootcgi-binultimatebb.cgi line 30.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.
Inside the UBB Modules directory, create a folder called IO (case sensitive). Then move String.pm there.
qasic
YAHOO!!!! It works!!!! Thanks a lot.
Ok not knowing alot about perl modules I had a few questions. First off can you install activestate perl without having access to your perl dir? Second I don't have Compress::Zlib, or
mod::gzip I am on apache and I have the following Apache::GzipChain can I still get this to work on my server?
/me rips his hair out in silence...
This has me confused to date... I've fought with it to no avail- the error messages I am getting confuse me-- I'm hoping one of you guys can shed some light onto it for me... the list of returned errors is HUGE... but here is a snippet...
package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4
Compilation failed in require at /usr/local/share/perl/5.6.0/MD5.pm line 22. [Sat Sep 22 22:12:09 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/Compress/cgi_buffer.pm line 22. Compilation failed in require.
Any suggestions would be great... thanks again...
Would there be any problems with Who's Online with this File Compression hack?
After running PerlDiver I've found one problem as all else is fine, instead of IO::String I have IO::Stringy ?
Also I've placed cgi_buffer.pm in my /cgi-bin root, although any test CGI (PRINT commands) I use returns 500 errors.
Note that I've CHMOD to 755.
Could this be anything to do with cgi_buffers weird PERL heading?
#!/usr/bin/env perl
Never seen that one before.
Upload it in the Modules/Compress folder like it is packaged in the zip or you are gonna have to redo the call to it in ultimatebb.cgi - be sure all .pm files are uploaded in ascii as well.
Jlaine, there's a good chance you don't have all the modules installed on the server. Run perl diver and see which ones are missing. If they are all installed, you shouln't be getting any errors.
Mark, didn't see your other question... I am not familiar with using this on unix/apache servers yet, so it is possible that path might need to be changed, tho I haven't seen it addressed anywhere. You can either change the path to match yours and try it or check the author's web site for more info.
This looks interesting, I just might try it out
Will do allen... if it doesn't work I'll be back screaming...
Same thing Allen... package 'vars' not registered for warnings.. etc. etc... then the Autoloader.pm line 4 comment...
I have IO::String, MD5, and Compress::Zlib installed, but I still get that failed warning.
I am on my own server so I would not have an issue installing mod_gzip, what is required to activate that program with UBB- perhaps that one would work for me...
*edit*
Tried to install mod_gzip, but thanks to the sparse documentation it was a unsure install- and afterward the server 'appeared' offline.
So I'd like to get this one working..
[ 09-28-2001: Message edited by: jlaine ]
Okay Guys I cant get this thing to work on 6.05. I tried it on my test board 6.14 and I get the following error. I did everything stated here.
Software error:
package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4
For help, please send mail to the webmaster (
[email protected]), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sat Sep 29 10:36:20 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4.
For help, please send mail to the webmaster (
[email protected]), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sat Sep 29 10:36:20 2001] ultimatebb.cgi: [Sat Sep 29 10:36:20 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 [Sat Sep 29 10:36:20 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4. Compilation failed in require.
For help, please send mail to the webmaster (
[email protected]), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sat Sep 29 10:36:20 2001] ultimatebb.cgi: [Sat Sep 29 10:36:20 2001] ultimatebb.cgi: [Sat Sep 29 10:36:20 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 [Sat Sep 29 10:36:20 2001] ultimatebb.cgi: [Sat Sep 29 10:36:20 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4. [Sat Sep 29 10:36:20 2001] ultimatebb.cgi: Compilation failed in require. Compilation failed in require.
For help, please send mail to the webmaster (
[email protected]), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sat Sep 29 10:36:20 2001] ultimatebb.cgi: [Sat Sep 29 10:36:20 2001] ultimatebb.cgi: [Sat Sep 29 10:36:20 2001] ultimatebb.cgi: [Sat Sep 29 10:36:20 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 [Sat Sep 29 10:36:20 2001] ultimatebb.cgi: [Sat Sep 29 10:36:20 2001] ultimatebb.cgi: [Sat Sep 29 10:36:20 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4. [Sat Sep 29 10:36:20 2001] ultimatebb.cgi: [Sat Sep 29 10:36:20 2001] ultimatebb.cgi: Compilation failed in require. [Sat Sep 29 10:36:20 2001] ultimatebb.cgi: Compilation failed in require. Compilation failed in require.
Okay I did perdiver and these are the modules installed
IO::Stringy but I dont see any Compress or Gzip
omegatron: Then get your host to install Compress::Zlib.
qasic
On the outside chance this might fix it for you JLaine, re-download the zip file again, extract it into the folders they are in the zip file: Compress, IO, and Digest and upload them to your ubbcgi/Modules directory and let me know if the error messages subside at least a little bit.
On the other side...are there any disadvantaged...after hearing so much positive I want to know if there is anything which could go wrong after installation.
I get script compilation error, and I think this is caused by a wrong path. My path for modules is:
/cgi-bin/Modules/Compress/Compress/Compress
/cgi-bin/Modules/Compress/Compress/Digest/Perl
/cgi-bin/Modules/Compress/Compress/Digest
/cgi-bin/Modules/Compress/Compress/IO
correct or not ?
[ 09-30-2001: Message edited by: Sn0pD0gG ]
I think I uploaded the cgi_buffer.pm into the wrong directory, where do I upload it to?
I get this:
Software error:
Can't locate Modules/Compress/cgi_buffer.pm in @INC (@INC contains: ./Modules . /usr/local/lib/perl5/5.6.0/i686-linux /usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/site_perl/5.6.0/i686-linux /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl) at ultimatebb.cgi line 30.
er I just uploaded the compress folder with the file.
now:
Software error:
Can't locate MD5.pm in @INC (@INC contains: ./Modules . /usr/local/lib/perl5/5.6.0/i686-linux /usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/site_perl/5.6.0/i686-linux /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl) at Modules/Compress/cgi_buffer.pm line 22.
For help, please send mail to the webmaster (Your Webmaster), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sun Sep 30 21:00:19 2001] ultimatebb.cgi: Can't locate MD5.pm in @INC (@INC contains: ./Modules . /usr/local/lib/perl5/5.6.0/i686-linux /usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/site_perl/5.6.0/i686-linux /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl) at Modules/Compress/cgi_buffer.pm line 22. BEGIN failed--compilation aborted at Modules/Compress/cgi_buffer.pm line 22.
For help, please send mail to the webmaster (Your Webmaster), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sun Sep 30 21:00:19 2001] ultimatebb.cgi: [Sun Sep 30 21:00:19 2001] ultimatebb.cgi: Can't locate MD5.pm in @INC (@INC contains: ./Modules . /usr/local/lib/perl5/5.6.0/i686-linux /usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/site_perl/5.6.0/i686-linux /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl) at Modules/Compress/cgi_buffer.pm line 22. [Sun Sep 30 21:00:19 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/Compress/cgi_buffer.pm line 22. Compilation failed in require.
ok I got the files in place I think in the compress folder, now it only gives me this error:
Software error:
package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4
For help, please send mail to the webmaster (Your Webmaster), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sun Sep 30 21:16:57 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4.
For help, please send mail to the webmaster (Your Webmaster), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4. Compilation failed in require.
For help, please send mail to the webmaster (Your Webmaster), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4. [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: Compilation failed in require. Compilation failed in require.
For help, please send mail to the webmaster (Your Webmaster), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4. [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: Compilation failed in require. [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: Compilation failed in require. Compilation failed in require at Modules/MD5.pm line 22.
For help, please send mail to the webmaster (Your Webmaster), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4. [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: Compilation failed in require. [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: Compilation failed in require. [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: Compilation failed in require at Modules/MD5.pm line 22. BEGIN failed--compilation aborted at Modules/Compress/cgi_buffer.pm line 22.
For help, please send mail to the webmaster (Your Webmaster), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4. [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: Compilation failed in require. [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: Compilation failed in require. [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: Compilation failed in require at Modules/MD5.pm line 22. [Sun Sep 30 21:16:57 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/Compress/cgi_buffer.pm line 22. Compilation failed in require.
heh
correct paths are:
/cgi-bin/Modules/Compress/cgi_buffer.pm
/cgi-bin/Modules/Digest
/cgi-bin/Modules/IO/String.pm
you sure? cause I got this error when I did that:
Software error:
Can't locate MD5.pm in @INC (@INC contains: ./Modules . /usr/local/lib/perl5/5.6.0/i686-linux /usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/site_perl/5.6.0/i686-linux /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl) at Modules/Compress/cgi_buffer.pm line 22.
For help, please send mail to the webmaster (Your Webmaster), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sun Sep 30 21:22:56 2001] ultimatebb.cgi: Can't locate MD5.pm in @INC (@INC contains: ./Modules . /usr/local/lib/perl5/5.6.0/i686-linux /usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/site_perl/5.6.0/i686-linux /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl) at Modules/Compress/cgi_buffer.pm line 22. BEGIN failed--compilation aborted at Modules/Compress/cgi_buffer.pm line 22.
For help, please send mail to the webmaster (Your Webmaster), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sun Sep 30 21:22:56 2001] ultimatebb.cgi: [Sun Sep 30 21:22:56 2001] ultimatebb.cgi: Can't locate MD5.pm in @INC (@INC contains: ./Modules . /usr/local/lib/perl5/5.6.0/i686-linux /usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/site_perl/5.6.0/i686-linux /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl) at Modules/Compress/cgi_buffer.pm line 22. [Sun Sep 30 21:22:56 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/Compress/cgi_buffer.pm line 22. Compilation failed in require
edit cgi_buffer.pm
at line 22:
use MD5;
perhaps you should try this:
use Digest::MD5;
yet it persists:
Software error:
package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4
For help, please send mail to the webmaster (Your Webmaster), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sun Sep 30 21:35:55 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4.
For help, please send mail to the webmaster (Your Webmaster), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4. Compilation failed in require.
For help, please send mail to the webmaster (Your Webmaster), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4. [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: Compilation failed in require. Compilation failed in require.
For help, please send mail to the webmaster (Your Webmaster), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4. [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: Compilation failed in require. [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: Compilation failed in require. Compilation failed in require at Modules/Digest/MD5.pm line 22.
For help, please send mail to the webmaster (Your Webmaster), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4. [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: Compilation failed in require. [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: Compilation failed in require. [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: Compilation failed in require at Modules/Digest/MD5.pm line 22. BEGIN failed--compilation aborted at Modules/Compress/cgi_buffer.pm line 22.
For help, please send mail to the webmaster (Your Webmaster), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4. [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: Compilation failed in require. [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: Compilation failed in require. [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: Compilation failed in require at Modules/Digest/MD5.pm line 22. [Sun Sep 30 21:35:55 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/Compress/cgi_buffer.pm line 22. Compilation failed in require.
omg, I'm started to get tired of copy and pasting for the first time. no it didn't work, no changes in the error message I think.
dunno whats wrong
i've installed Allen's UBB compression hack and Phillip's UBB accelerator and both are working gr8 at my board
blistering fast
I needed php support for this hack right?
edit: what does this mean?
"use Compress::Zlib;" what's zlib?
[ 09-30-2001: Message edited by: Teleknesis ]
hmiguelito gave the correct paths... I guess I need to break down and write some better install docs
This one is beta, and I have no idea what .pm's you might already have installed, so it'd prolly be a good one to try on a test forum before putting up on your live site.
Try this one tele, make a directory in your Modules/Digest folder (Perl) and put a copy of the MD5.pm file in there so that it would lok something like this:
Modules/Digest/Perl/MD5.pm
That should give it the one it's looking for...
oops, forgot to answer the questions:
this one doesn't require php
zlib is the perl module used that actually does the compression.
yeah I think we should collect Questions and make a FAQ.
okay, set the right paths, but then I get something like a version dismatch I think:
Software error:
Digest::MD5 object version 2.13 does not match bootstrap parameter 2.16 at /usr/libdata/perl/5.00503/DynaLoader.pm line 188.
Software error:
Digest::MD5 object version 2.13 does not match bootstrap parameter 2.16 at Modules/Digest/Perl/MD5.pm line 16.
and below a lot of chunk data.
Well I've installed the cgi_buffer files and such to every possible DIR so that no matter where the system looks it should find what it needs.
Despite this I now get what 'Excellent' was seeing before he gave up, a very basic single line COMPILATION error for the ultimatebb.cgi file - no other details.
My settings are as follows:
Please note that I've also tried 'use cgi_buffer;' and that just caused an 'Internal Server Error'.
PerlDiver reports that all the needed stuff is installed, although nobody will answer my previous question about what IO::Stringy is? I don't have IO::String, just Stringy?
Is this the same? Should I update paths to reflect the 'y' on the end? What do I do.
Aside from that I'm stuck, all instructions followed and previous CHMOD's and dir structures obeyed. The fact it's just a basic compilation error means I'm one step away, but where now?
PS"6.04e"
I got rid of my problem by cheating a little bit
if someone has same problem just have a look at this file: /cgi-bin/Modules/Digest/MD5.pm
and edit following code:
it is exactly line 6,
to $VERSION = '2.13';
For the experienced pplz: will the whole hack be useless by changing this ? or does it solve the error and all problems by changing...I dunno, I haven't notice any speed advantaged, so I want to know? Please answer !
Well CPAN search explained String vs Stringy, not that it helps since I'm past the 'software' error part and the modules must be loading, it's just UBB6.04e refuses to compile (see above error).
Any help? Anybody come accross this and get it solved?
MD5 is a perl module for encryption, I am not sure if changing the version # will make any difference in performance in this. The best way to check (providing you aren't getting any errors now) is to load your site and see what size a good-sized downloaded page is (in IE, right-click on a thread's page and select "properties", it should be a very small 5-12kb or so file).
Mark
Try moving the first 3 line below the use strict; I am grasping at straws here since I can't actually see what's going on.
Do you also have String.pm in a Modules/IO (case sensitive) directory?
Be sure you have set permissions on the directories and .pm's so they can be read as well
[ 10-01-2001: Message edited by: AllenAyres ]
Yes I think it works. But in comparing to the original one there are 100 bytes less, not more, it's not very much isnt it ?
Without Hack: 7172 bytes
With Hack: 7074 bytes
= 98 bytes less
I do not think it's worth to install the hack, right ?
That's odd.. it's usually more like 80-120kb before, 5-12kb after... is most all pages like that?
Heading there to try it Allen- I am getting the same errors that omegatron and others are with the 'vars not registered for warnings' then the failure of autoloader.pm, etc...
Going to redownload now and see what happens...
Still getting the same errors on my end...
Software error:
package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4
For help, please send mail to the webmaster ([email protected]), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Tue Oct 2 00:01:35 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4.
For help, please send mail to the webmaster ([email protected]), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4. Compilation failed in require.
For help, please send mail to the webmaster ([email protected]), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4. [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: Compilation failed in require. Compilation failed in require.
For help, please send mail to the webmaster ([email protected]), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4. [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: Compilation failed in require. [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: Compilation failed in require. Compilation failed in require.
For help, please send mail to the webmaster ([email protected]), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4. [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: Compilation failed in require. [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: Compilation failed in require. [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: Compilation failed in require. Compilation failed in require at /usr/local/share/perl/5.6.0/MD5.pm line 22.
For help, please send mail to the webmaster ([email protected]), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4. [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: Compilation failed in require. [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: Compilation failed in require. [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: Compilation failed in require. [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: Compilation failed in require at /usr/local/share/perl/5.6.0/MD5.pm line 22. BEGIN failed--compilation aborted at Modules/Compress/cgi_buffer.pm line 22.
For help, please send mail to the webmaster ([email protected]), giving this error message and the time and date of the error. Content-type: text/html
Software error:
[Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4 [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/AutoLoader.pm line 4. [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: Compilation failed in require. [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: Compilation failed in require. [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: Compilation failed in require. [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: Compilation failed in require at /usr/local/share/perl/5.6.0/MD5.pm line 22. [Tue Oct 2 00:01:35 2001] ultimatebb.cgi: BEGIN failed--compilation aborted at Modules/Compress/cgi_buffer.pm line 22. Compilation failed in require.
For help, please send mail to the webmaster ([email protected]), giving this error message and the time and date of the error.
Which version UBB are you running? It may be that your version isn't running cleanly under "use strict;"
These values are taken from your suggested method: IE - File - Properties, I compared the displayed values, those one I mentioned above.
I think you mean that mathod or did I compared the wrong values?
is it maybe because I upgraded from ubb 6.05? btw I'm doing this on a test board. I getting the same errors as the others, vars not registered for warnings.
wow Allen
damn thing works with
5.x UBB versions
disregard my previous question, I just tried it on another 1.4 board that was freashly installed and not upgraded, and it got the same error. Can some one give me the EXACT directions for the thing? the one in the front is a bit confusing..
hmiguelito
I think you are irritating the others who haven't got it working on one version yet
tele, upload the files in the zip into their respective folders in the Modules directory.
Modules/Compress
Modules/IO
Modules/Digest
Modules/Digest/Perl
In ultimatebb.cgi uncomment "use strict;" and "use vars" and add these lines to it so that it looks like this:
require Modules::Compress::cgi_buffer;
import Compress::cgi_buffer
$cgi_buffer::generate_etag = 0;
use strict;
use Fcntl ':flock';
use UBBCGI qw(:cgi);
use UBBCGI::Carp qw(fatalsToBrowser set_message);
use vars
If it doesn't work after this, it is possible you still don't have all the modules installed, or you have them in binary, or you have permissions set to where they can't be read.
alright, do you mean I have to have a seperate "digest" folder for "perl"? I'm sorry if I'm frustrating to you.
Add a "Perl" directory to your "Digest" Directory... the pm's are looking for MD5 in both the Digest and the Perl folders.
oops sorry
this is what it looks like at my server:
/cgi-bin/Modules/Compress/cgi_buffer.pm
/cgi-bin/Modules/Digest/HMAC.pm
/cgi-bin/Modules/Digest/HMAC_MD5.pm
/cgi-bin/Modules/Digest/HMAC_SHA1.pm
/cgi-bin/Modules/Digest/MD2.pm
/cgi-bin/Modules/Digest/MD5.pm
/cgi-bin/Modules/Digest/SHA1.pm.
/cgi-bin/Modules/Digest/Perl/MD5.pm
/cgi-bin/Modules/IO/String.pm
/cgi-bin/Modules/MIME/Lite.pm
/cgi-bin/Modules/Net/Cmd.pm
/cgi-bin/Modules/Net/Config.pm
/cgi-bin/Modules/SMTP.pm
/cgi-bin/Modules/UBBCGI/Carp.pm
/cgi-bin/Modules/UBBCGI/Cookie.pm
[ 10-01-2001: Message edited by: hmiguelito ]
Allen, um when I went to ultimatebb.cgi for the first time before I even touched the web browser to view it, the use srtict was already uncommented, is it suppose to be like that?
edit: they still don't work..
[ 10-01-2001: Message edited by: Teleknesis ]
they are uncommented in the newer beta's... I had that in there for those running on the little older 6.0x series...
This is simple to install and it's possible that your server either doesn't have the proper modules installed, or that maybe there's some type of compression already running and messing this one up.
To test that, go to this page:
http://leknor.com/code/gziped.php - input a url to a file on your site and see what the results are.
um I don't know about you, but I'm on dial-up and that url is taking forever. um while I'm waiting, what does it do?
I've noted no issues with strict to date-- I can't see the server having any problems with it as it has had no past issues to my knowledge...
If your install is correct and you are still having problems, then it would have to mean that the correct perl modules are not compiled on your server. It works for hmiguelito on all his sites because the pm's are installed, for others the same.
Run perl diver, if you are missing one of the perl modules, please ask your web host providor to install those missing. It's a simple process and doesn't degrade performance.
Allen:
You need to work on those instructions =), where would I move them to?
Sadly I just don't think this is going to work and yes string.pm is copied multiple times in every single possible DIR (yes used ASCII and 755) mentioned through these threads - no go.
My PerlDiver is here:
http://www.ispreview.co.uk/cgi-bin/perldiver.cgi IO:String is all I miss from the server itself, but the compilation error I get suggests that its moved past calling the scripts and just can't compile it all into an active state.
what modules would those be? I'll ask the server person to install it, or I'll use my other server hoster person.
I installed it on the NT server my other test board was on, and it's ok. I dunno if it worked or not because it seemed normal but I haven't used that test board a for awhile, except for the upgrade and I don't know about the speed variation..
edit: sorry it was suppose to be "NT" instead of NET
[ 10-02-2001: Message edited by: Teleknesis ]
For the record I don't think this likes one of the hacks in v6.04e. No idea which.
I say this because I just installed a v6.1B2 test board and used EXACTLY the same settings and it worked, but not on v6.04e (has lots of hacks installed).
I also tried using the new 6.1B2 call modules command at the top of ultimatebb.cgi and it still gave the same error. Clearly one of the hacks is causing problems, either that or it just won't work with v6.04e.
Hold on a second, when you do get it working, how do you know it's saving any bandwidth?
The before and after 'SOURCE' (Using IE - View Source command and save the file) files, even on forums supposedly using it with sucess (
https://www.ubbdev.com/test/ubbcgi/ultimatebb.cgi) are identical to those without it.
I heard somebody say that the system works by compressing a file when it's called and then uncompressing it on the persons system (once it's streamed I assume?).
Thus how do you know whether you've saved any bandwidth or not, people keep saying thinks like, "My 15K file went to 8K", etc., but how do you know? How do you test? Where's the physical proof this actually works? Help =).
right-click on the page and click on "properties" - it will tell you how large the file is... if you are on a thread with 3-4 replies and it says the file size is 7kb, then you know you are saving a good bit of bandwidth
Seems to work, now all I have to do is re-add all the hacks into my test board. Could be diffecult since the code has changed quite dramatically for PB2, I hope some of the authors see that.
If along the way I discover what hack causes the compilation errors then I'll mention that. Thankfully this means I don't need the UBB Accelerator enabled and so WOL etc. will work =).
SERIOUS BUG,
Have any of you tried to close a thread with compression enabled, give it a try! All you get is the compressed data output:
http://www.ispreview.co.uk/cgi-bin/ubb/ultimatebb.cgi?ubb=close_topic&t=000011&f=1
topics close and reopen fine for me. this is very sweet. excluding the main forum summary, i have no pages over 8k. whereas before i had no pages under 50k, and most were around 70-80k!
nice work on figuring this one out guys!
Then it must somehow be related to one of the hacks I've installed, I'll install a flat UBB6.1 and see if it still happens and then go from there.
i get a @INC Cannot locate Compress/Zlib.pm and that is not even a required module, anyone else get this error??
and i ran
http://www.ispreview.co.uk/cgi-bin/perldiver.cgi and compress::Zlib is installed on my server..
[ 10-17-2001: Message edited by: Asendin ]
I'm getting the following errors on a 6.05 board, and they all point to the vars_wordlets_mod WOL.
Global symbol "%vars_wordlets_mods" requires explicit package name at f:inetpubwwwrootnetsitecgi-binultimatebb.cgi line 346.
Global symbol "%vars_wordlets_mods" requires explicit package name at f:inetpubwwwrootnetsitecgi-binultimatebb.cgi line 359.
Global symbol "%vars_wordlets_mods" requires explicit package name at f:inetpubwwwrootnetsitecgi-binultimatebb.cgi line 359.
Global symbol "%vars_wordlets_mods" requires explicit package name at f:inetpubwwwrootnetsitecgi-binultimatebb.cgi line 365.
Global symbol "%vars_wordlets_mods" requires explicit package name at f:inetpubwwwrootnetsitecgi-binultimatebb.cgi line 365.
Global symbol "%vars_wordlets_mods" requires explicit package name at f:inetpubwwwrootnetsitecgi-binultimatebb.cgi line 371.
Global symbol "%vars_wordlets_mods" requires explicit package name at f:inetpubwwwrootnetsitecgi-binultimatebb.cgi line 492.
Global symbol "%vars_wordlets_mods" requires explicit package name at f:inetpubwwwrootnetsitecgi-binultimatebb.cgi line 504.
Global symbol "%vars_wordlets_mods" requires explicit package name at f:inetpubwwwrootnetsitecgi-binultimatebb.cgi line 504.
Global symbol "%vars_wordlets_mods" requires explicit package name at f:inetpubwwwrootnetsitecgi-binultimatebb.cgi line 511.
Global symbol "%vars_wordlets_mods" requires explicit package name at f:inetpubwwwrootnetsitecgi-binultimatebb.cgi line 511.
Global symbol "%vars_wordlets_mods" requires explicit package name at f:inetpubwwwrootnetsitecgi-binultimatebb.cgi line 684.
Global symbol "%vars_wordlets_mods" requires explicit package name at f:inetpubwwwrootnetsitecgi-binultimatebb.cgi line 684.
Global symbol "%vars_wordlets_mods" requires explicit package name at f:inetpubwwwrootnetsitecgi-binultimatebb.cgi line 691.
Execution of f:inetpubwwwrootnetsitecgi-binultimatebb.cgi aborted due to compilation errors.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.
Hmm it seems the problem I had with compression re-surfaced under v6.1 FINAL, yet it's RANDOM and doesn't always show.
On another note, does anyone have any physical server logs showing proof that it saves bandwidth.
I compared one day with it enabled (obviously was through the usual testing) and another without (similar pageviews and visitors) and the bandwidth consumption barely shifted a single percent. My site is 70% forum related and so it should have at least been 30% less.
[ 10-22-2001: Message edited by: mark99 ]
Qasic, do have any ideas as to why the WOL wordlets are generating the errors I listed above?
Can you guys please release a version of this hack that works for UBB 5.47e unix?
BTW is there any way to check if the ZLIB module (or program ...) is installed on my unix server without downloading/installing 6.1 ubb ??? Thanks again.
is there a way to get this to work, without haveing to install the IO:String module, I was wondering if there was a way I could get it to work while I wait on my hosting company to install the module.
I placed IO:String stuff in the cgi directory like everyone else, but I get errors. If there is no way around this then I'll just wait for my hosts to install it.
http://www.scriptsolutions.com/ download perl diver
check that to see if the required modules are installed
when will this go out for 6.1 release?
It's not a typical mod or hack, it's generic.
From my experiance it'll run fine with PB1.4 to UBB6.1.1, although be careful of heavily hacked v6.0x forums.
Can someone have a look at this and tell me what's missing on my IIS 5.0 server?
http://www.netwerkin.com/cgi-bin/perldiver.cgi
can someone make this hack a lil easier to understand? maybe im just slow but it doesnt make sense to me on how im supposed to install it. and i dont even know where the files are supposed to be uploaded? so if somebody could make it easier, id appreciate it
The folders go in your Mods directory in your cgi-bin directory. The rest of the instructions are in the first post of the thread. It's really simple.
On a side note, however, I had to delete the Digest folder. While it was there it kept giving me wacky errors, and it works great without the Digest folder, so I don't know what's up with that.
i decided to try it & im getting this error...
Can't locate Compress/Zlib.pm in @INC (@INC contains: ./Modules . /home/sites/site69/web/cgi-bin /home/sites/site69/web/cgi-bin/Modules /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) at Modules/Compress/cgi_buffer.pm line 24.
where am i supposed to get Zlib.pm? cuz its not with the files.
i got this perldiver thing if that will help somebody give me an answer on why its not working:
http://www.djsharp.com/cgi-bin/perldiver.cgi [ 10-30-2001: Message edited by: DJSharp ]
i guess i have to just remove it for now since nobodys responding.......
plleeeeeeeeasssse help...
this is how mine looks...is everything right? what needs to be changed?
require Modules::Compress::cgi_buffer;
import Compress::cgi_buffer
$cgi_buffer::generate_etag = 0;
use strict;
use Fcntl ':flock';
use UBBCGI qw(:cgi); # CGIPath/Modules/UBBCGI.pm
use UBBCGI::Carp qw(fatalsToBrowser set_message);
use vars qw(%vars_whos_online @Ell_cookie $invisible_pref @people);
use vars qw(%vars_wordlets_mods); # CGIPath/Modules/UBBCGI/Carp.pm
use vars qw($new_pms);
damn, whats it take to get help in here? ima just start emailing all yall pretty soon.
I got it to work, and this might be useful info for people running a UBB on IIS.
I had to add a line to ultimatebb.cgi so now i have this...
#use strict;
use lib qw(e:/inetpub/wwwroot/netwerkin/cgi-bin/modules);
require Compress::cgi_buffer;
import Compress::cgi_buffer
$cgi_buffer::generate_etag = 0;
By adding the "use lib qw" I changed the @inc path and now it works great.
Now that I have my board running on 6.1.0.2 on IIS, I can't get this to work again. I'm getting the can't locate loadable blah blah.
I've noticed that the first few lines of ultimatebb.cgi are different and seem to be setting up the modules directory. Are there any changes to the instructions that will make it find Digest::MD5 since it is in the right folder and perldiver says it's there?
I haven't tried this one yet since 6.1 release either. I'll load it on a test board and see how it runs - we're on win2k/iis5 as well.
dj, post your perldiver file again and I'll look at it.
http://www.netwerkin.com/cgi-bin/perldiver.cgi I had used a "use lib qw(e"/real/path/to/modules)" as the first line in 6.05 to get my hosted server to work, but now I get the same error I got without it before, almost like something else is causing that module to not be loaded properly.
Whenever I find a combination that looks promising I get an error saying that UBBCGI.pm can't be located...grrrrrr
http://www.street-stylez.com/cgi-bin/perldiver.cgi i could REALLY use this hack right now, cuz my board is going Xtremely slooooow right now. i might be willing to PAY somebody to install this hack if I cant do it myself.
I see that in 6.1.0.3, in ultimatebb.cgi "use strict"and "use vars" in lines 30 and 35 are already uncommented. Will this cause any problems adding this hack? Also, I've read that this will save bandwidth and increase page download times but our concern is CPU useage which (from what I've researched) increases by using this hack. In that case, would it be recommended to NOT use this hack?
It does increase CPU utilization, but it is a good trade off if you are looking to conserve bandwidth and have a lot of members on modems.
Our problem is the opposite. We have plenty of bandwidth but our CPU usage is too high. At times, a "Top" can creep into double digits, i.e., 10, 11...so I don't think this would be a worthwhile solution for us. Best thing that helped so far was enabling PHP/UBB Accelerator in "unsafe mode" so it takes advantage of that ZLIB compression...
I have to have my who's online stable so the PHP is not an option for me right now.
looks like everything is there... I'll need to read through here and see what kinda problems you are having.
You are missing the Compress::zlib module... it is possible to include the IO::String you are missing as well, but you gotta have the zlib module installed on your server.... talk to your host about it.
OK, I'll install this on our test board and see what needs to be done. We already have all the modules installed except for cgi_buffer, so your mileage may vary.
OK. it has been installed on the test board without problems...
https://www.ubbdev.com/test/ubbcgi/ultimatebb.cgi I put the code:
require Modules::Compress::cgi_buffer;
import Compress::cgi_buffer
$cgi_buffer::generate_etag = 0;
immediately
above this:
BEGIN { # get our modules directory set up
Uploaded the modules we included with the zip, and we're off!
To test it, check the properties of any .cgi page there except the forum summary (it doesn't work there for some reason). I may install it here as it seems to work fine with the accelerator.
Any external and dynamic SSI output from the forum like that doesn't go around the compression and so outputs compressed data.
In case you're wondering the UBBNews (cached pages get saved and exported) and Latest Threads (when saved to HTML file) scripts still work with SSI.
Until Tovok7 adds 'Save To File' support then there's not much you can do.
alright this hack speeds up the loading of my board but it isn't compressing. In like in one topic page at 33k non compress is still at 33 kb when compressed i used that test link to see if your pages are gziped and it said no then with it installed it said yes. The page should have been like 4k it said when compressed.
maybe i don't understand how this works, but..does it actually make a difference? cause the data has to be decompressed right? and this doesn't happen on the client side, does it?
any insight is appreciated.
Works fine with 6.2.1, and you don't even need to comment anything!
BTW,
http://leknor.com/code/gziped.php?url=http%3A%2F%2Fwww.ubbdev.com%2Fubbcgi%2Fultima tebb.cgi - UBBDev is huge comparing to #9, you should use it
That's how I got it to work with SHTML:
[code][/code]
im getting an error that my "version of perl" is too old... is there anything I can do about this or is it something I need my host to look at?
quote:
Originally posted by AllenAyres:
OK. it has been installed on the test board without problems...
https://www.ubbdev.com/test/ubbcgi/ultimatebb.cgi
I put the code:
require Modules::Compress::cgi_buffer;
import Compress::cgi_buffer
$cgi_buffer::generate_etag = 0;
immediately above this:
BEGIN { # get our modules directory set up
Uploaded the modules we included with the zip, and we're off! To test it, check the properties of any .cgi page there except the forum summary (it doesn't work there for some reason). I may install it here as it seems to work fine with the accelerator.
Okay ... I have two stooooooopid questions
1. Where Allen say to place the code in this example is different from the first post in this thread; should the code go above the begin or the use strict?
2. Where do I load those files from the zip? Or do I just upload the entire file called "Compress"?
Hey, I said they were stoooooopid questions!
Okay, I decided to test it on my test site, and no matter where I put the code, I get errors galore when I try to run the board.
I installed the perldiver file; it seems as if I have that one compressed file--Compress::Zlib (I am absolutely clueless about this stuff--even moreso than with the UBB code--if that's possible! )
Here's that link --> http://adwoff.com/cgi-bin/perldiver.cgi
I left the test board open with all the error messages there in their glory!
It's at http://adwoff.com/ubb-test/cgi/ultimatebb.cgi
Any idea of what I need to do--or maybe I should ask first--can I need to do what needs to be done?
As always, thanks a ton!
Never mind! I think I have it figured out!
http://leknor.com/code/gziped.php?url=http%3A%2F%2Fadwoff.com%2Fubb-test%2Fcgi%2Fultimatebb.cgi - 5599 instead of 41678
I got this....
[code][/code]
I also got it in another server I tried it on, I don't think it works with Apache without a certian module or something like that
So.....what modules are missing...?
Don't ask me
quote:
Originally posted by LK:
Don't ask me
:rolleyes:
i have deleted my zlib.pm file accidentially..
can someone mail that to me in an archive format please???
zlip.pm, is that a file from the Compressor? Just download it again.
doh..
found it.. but now it asks for other files..
what if run my ubb from hypermart?!?
does it have the Compressor::Zlib installed?
AFAIK, this script only works on Windows servers, and Hypermart uses Linux.
But.. why would you use UBB on Hypermart? You should get a decent host or host it yourself, both are faster than hypermart
Hypermart is bad, don't use them. Get something with no ads when you buy it. Not have to pay more once you buy it. How lame.