Page Index Toggle Pages: 1 ... 3 4 [5]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Board Index User Cache 1.4 for YaBB 2.1 only (Read 19103 times)
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #60 - Feb 22nd, 2007 at 3:57am
Print Post  
Yes, my code will produce those errors. However, they are trapped with eval, so it shouldn't be a problem if something gets messed up. Are the errors appearing in the fatal_error call? If so, can you reproduce the error and get the boardindexusers.cache right before one is triggered?

I'll try to make up a 1.5 testing build for this weekend to allow for better caching and debugging.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
b8caster
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 14
Joined: Feb 19th, 2007
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #61 - Feb 22nd, 2007 at 4:47am
Print Post  
AK108 wrote on Feb 22nd, 2007 at 3:57am:
Are the errors appearing in the fatal_error call? If so, can you reproduce the error and get the boardindexusers.cache right before one is triggered?

Sorry, you just shot over my head.  I don't know what you mean by "fatal_error call".  I'm seeing the errors when I click the "Error Log" in the "Forum Stats" section within the admin tool.

I don't know what's causing the errors, so I don't know how to reproduce them.
  
Back to top
 
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #62 - Feb 22nd, 2007 at 9:58pm
Print Post  
Basically, if the error is sent to the user, it will appear in the error log and goes through a subroutine known as fatal_error.

From what you say, it sounds like the errors are being presented to the user, and the errors are written out to the cache file. However, that should not be the case (as of version 1.4), as they are trapped using the eval function.

So you have not seen those errors? Have any of your members?
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
b8caster
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 14
Joined: Feb 19th, 2007
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #63 - Mar 3rd, 2007 at 6:27am
Print Post  
Ok I just saw the error myself while browsing the forums.
Quote:
An Error Has Occurred!

Number found where operator expected at ./Variables/boardindexusers.cache line 235, near "1"



All I did was click the "Mark as read" button inside one of the board's topics page.

And here's a new type of error I just discovered in my error log:
Quote:
Scalar found where operator expected at ./Variables/boardindexusers.cache line 180, near "$"


Hope that gives you enough to work with!
  
Back to top
 
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #64 - Mar 3rd, 2007 at 9:23pm
Print Post  
No, I need to see the file that causes the problem (or the information that causes it).

I can make a debug version quickly if you'd like.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
b8caster
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 14
Joined: Feb 19th, 2007
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #65 - Mar 5th, 2007 at 5:36am
Print Post  
That would be fine.  Would my visitors see it, or is this something that can only be viewed in the admin tool (debug info)?
  
Back to top
 
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #66 - Mar 5th, 2007 at 5:50am
Print Post  
It would be sent to your admin account via private message.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
b8caster
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 14
Joined: Feb 19th, 2007
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #67 - Mar 6th, 2007 at 2:46am
Print Post  
Groovy.  Smiley 

Deal me in.
  
Back to top
 
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #68 - Mar 6th, 2007 at 3:57am
Print Post  
Alright. Before you run this, make a copy of your Members/admin.msg and Sources/BoardIndex.pl.

In your BoardIndex.pl, find the block that looks like this:
Code
Select All
### AK108 Board Index User Cache
if(-e "$vardir/boardindexusers.cache") {
	# ... Code is here ...
} 



Edited:
The replace code can't be posted here since it has code tags within it. You can get the code from http://ak108.nfshost.com/replace.txt


This is slightly tested. Once you get a message, please post it here.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
Page Index Toggle Pages: 1 ... 3 4 [5] 
Send TopicPrint