Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic NewcalendarSP1 2.64 (Read 4548 times)
ironwing
God Member
*****
Offline


I love YaBB 1 Gold!

Posts: 2330
Location: Sonoran Desert
Joined: Nov 20th, 2001
NewcalendarSP1 2.64
Mar 1st, 2002 at 5:52am
Print Post  
Howdy All,

I found a bug in the NewcalendarSP1 mod version 2.63 so I'm releasing version 2.64.  If you have version 2.63 loaded simply replace the Newcalendar.pl file with the new one. The bug was a bugger of a bug.  It only shows up in the last few hours of the month, between the time when the GMT time zone rolls over to the new month and your local time hits the new month.  I'm not sure it even showed up on forums that are ahead of GMT.  This meant that I had to find the bug before my forum rolled over or I would have had to wait until the end of March to fix it as I needed to figure out what was going on.  Undecided  Turned out to be a missing $ on a variable.



Dan
Guess I was a day late and a $ short.
« Last Edit: Mar 1st, 2002 at 1:58pm by ironwing »  

Please include your forum address in all requests for assistance.  It greatly speeds things along.
Back to top
WWW  
IP Logged
 
PirateKing
New Member
*
Offline


Pre-Interpreter Random
Asymptotic Text Engine

Posts: 8
Joined: Dec 24th, 2001
Re: NewcalendarSP1 2.64
Reply #1 - Mar 4th, 2002 at 12:56am
Print Post  
Hi. I tried installing this, and I get this error

Quote:
Untrapped Error:
cannot open user file at ./Sources/Newcalendar.pl line 636.


it occasionally gives me the same error, but with line number 662.

I've rebuilt the member list, recounted members, even went in and deleted all the .dat files of 0 size, which I assume shouldn't be like that....

any ideas? this looks like a great mod, and I'd love to use it.

see it *not* in action at http://www.pirateking.net/cgi-bin/yabb/yabb.pl
  
Back to top
 
IP Logged
 
ironwing
God Member
*****
Offline


I love YaBB 1 Gold!

Posts: 2330
Location: Sonoran Desert
Joined: Nov 20th, 2001
Re: NewcalendarSP1 2.64
Reply #2 - Mar 4th, 2002 at 2:13am
Print Post  
This is strange.  The line directly above the line where you are getting the error is:

             if ( -e "$memberdir/$usernames.dat") {

which specifically tells the script to skip the user file if it doesn't exist.  Are you sure you are using Newcalendar verson 2.64?  You can check your version number by opening the Newcalendar.pl file in a text editor and reading the version number in the file header comments.  If you upgraded from a previous version, did you delete the old version of the .pl file before transferring over the new?  Sometimes, if a file is in use when you try to copy over it, unix won't replace the file and won't bother to tell you it didn't.

Also check the chmod status of the files in your Members directory.  memberlist.txt should be chmod 666, .htaccess should be 644, and everything else should be chmod 664.

Dan
  

Please include your forum address in all requests for assistance.  It greatly speeds things along.
Back to top
WWW  
IP Logged
 
PirateKing
New Member
*
Offline


Pre-Interpreter Random
Asymptotic Text Engine

Posts: 8
Joined: Dec 24th, 2001
Re: NewcalendarSP1 2.64
Reply #3 - Mar 4th, 2002 at 2:19am
Print Post  
I'm on win2k, the version number is

$Newcalendarplver = 'NewcalendarSP1 2.64 for SP1';

and this is the first time I'e installed this mod.


grr. I need to learn more perl.
  
Back to top
 
IP Logged
 
ironwing
God Member
*****
Offline


I love YaBB 1 Gold!

Posts: 2330
Location: Sonoran Desert
Joined: Nov 20th, 2001
Re: NewcalendarSP1 2.64
Reply #4 - Mar 4th, 2002 at 3:26am
Print Post  
I sent you a new Newcalendar.pl file to try out.  I just added some brackets in the file exists statements.  The statements shouldn't need them but maybe...

Dan

  

Please include your forum address in all requests for assistance.  It greatly speeds things along.
Back to top
WWW  
IP Logged
 
PirateKing
New Member
*
Offline


Pre-Interpreter Random
Asymptotic Text Engine

Posts: 8
Joined: Dec 24th, 2001
Re: NewcalendarSP1 2.64
Reply #5 - Mar 4th, 2002 at 3:44am
Print Post  
I tried the new version, but still no luck.

this is very odd.

are there any mods which would conflict with this?

I had to change part of the mod file to work around the who's online mod I have installed, but I'm 99% sure I got it in the right place, seing as the table shows up right.
  
Back to top
 
IP Logged
 
ironwing
God Member
*****
Offline


I love YaBB 1 Gold!

Posts: 2330
Location: Sonoran Desert
Joined: Nov 20th, 2001
Re: NewcalendarSP1 2.64
Reply #6 - Mar 4th, 2002 at 4:01am
Print Post  
Changing the mod file shouldn't have an effect on this code.  One thing you can do if you don't mind losing the birthdays display is edit the Newcalendar.pl file:

find the line:
     CalBDay();
and comment it out by putting an # sign in front of it like:
#      CalBDay();

The line occurs twice, comment out both instances.
Then do the same with line:
           CalBDay2();
which also occurs twice.

Then find and comment out:
Code
Select All
# Add bday code
		while (($bdaykey, $bdayindex) = each %bdayshash) {
			if ($bdayindex == $thisdaysecs) {
				$data .= qq~<li><span class=newcal17>$ecaltxt{'57'}$bdaykey</li></span><br>~;
			}
		}
# End bday code
 



These changes will deactivate the birthdays display and prevent the code from ever looking at your members files.

Dan
  

Please include your forum address in all requests for assistance.  It greatly speeds things along.
Back to top
WWW  
IP Logged
 
ironwing
God Member
*****
Offline


I love YaBB 1 Gold!

Posts: 2330
Location: Sonoran Desert
Joined: Nov 20th, 2001
Re: NewcalendarSP1 2.64
Reply #7 - Mar 4th, 2002 at 4:24am
Print Post  
Also, when you installed YaBB did you have to modify any fopen or fclose statments to get it to work in Win2k?  The fopen and fclose routines have file locking routines that are supposed to work with Win95, 98, and Me but I haven't read anything about Win2K.  If they work for the rest of YaBB then they should work here, no differences.

Dan
  

Please include your forum address in all requests for assistance.  It greatly speeds things along.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint