Roster Diag problem

Requests, feedback, and general discussion about WoWRoster
DO NOT post topics about WoWRoster AddOns here!

Roster Diag problem

Postby Kryphtos » Mon Jul 17, 2006 6:38 pm

When going to the roster diag, I'm getting this:

Code: Select all
Warning: fread(): supplied argument is not a valid stream resource in /home/httpd/vhosts/minionsinc.com/httpdocs/roster/lib/rosterdiag.lib.php on line 296


And that message is coming up infinitely.
User avatar
Kryphtos
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Sat Jul 08, 2006 6:56 pm

Roster Diag problem

Postby zanix » Tue Jul 18, 2006 5:13 am

Weird...
I don't know much about rosterdiag as mathos wrote it

Try this
In that file, find this function
Code: Select all
function GrabRemoteVersions()
{
    global 
$directories$files$cvsremote$break$explode;

    
// Execute the addon_versioncheck.php script in the CVS remote site
    
$handle fopen($cvsremote'rb');
    
$contents '';

    
// Read the first 80kb from the file. This should be enough for most add-ons.
    
while (!feof($handle))
    {
        
$contents .= fread($handle1024*80);
    }
    
fclose($handle);

    
// Break the header into lines
    
$remoteversions explode($break$contents);
    foreach (
$remoteversions as $remoteversion)
    {
        
// Break the line into strings
        
$remoteversion explode($explode$remoteversion);

        
// Insert the file info into the $files array
        
if (isset($remoteversion[1]))
        {
            
$directory $remoteversion[0];
            
// Check if the directory existed on the local system. If not, declare the directory inside the $directories array.
            
if (!isset($directories[$directory]))
            {
                
$directories[$directory] = array('localfiles' => 0'remotefiles' => 0'severity' => 0);
            }
            
$filename $remoteversion[1];
            
$files[$directory][$filename]['remote']['versionFile'] = $filename;
            
$files[$directory][$filename]['remote']['versionDesc'] = $remoteversion[2];
            
$files[$directory][$filename]['remote']['versionRev'] = $remoteversion[3];
            
$files[$directory][$filename]['remote']['versionDate'] = $remoteversion[4];
            
$files[$directory][$filename]['remote']['versionAuthor'] = $remoteversion[5];
            
$files[$directory][$filename]['remote']['versionMD5'] = $remoteversion[6];
        }
    }


Replace that entire function with this
Code: Select all
function GrabRemoteVersions()
{
    global 
$directories$files$cvsremote$break$explode;

    
// Execute the addon_versioncheck.php script in the CVS remote site
    
$handle fopen($cvsremote'rb');
    
$contents '';

    if( 
$handle )
    {
        
// Read the first 80kb from the file. This should be enough for most add-ons.
        
while (!feof($handle))
        {
            
$contents .= fread($handle1024*80);
        }
        
fclose($handle);
    
        
// Break the header into lines
        
$remoteversions explode($break$contents);
        foreach (
$remoteversions as $remoteversion)
        {
            
// Break the line into strings
            
$remoteversion explode($explode$remoteversion);
    
            
// Insert the file info into the $files array
            
if (isset($remoteversion[1]))
            {
                
$directory $remoteversion[0];
                
// Check if the directory existed on the local system. If not, declare the directory inside the $directories array.
                
if (!isset($directories[$directory]))
                {
                    
$directories[$directory] = array('localfiles' => 0'remotefiles' => 0'severity' => 0);
                }
                
$filename $remoteversion[1];
                
$files[$directory][$filename]['remote']['versionFile'] = $filename;
                
$files[$directory][$filename]['remote']['versionDesc'] = $remoteversion[2];
                
$files[$directory][$filename]['remote']['versionRev'] = $remoteversion[3];
                
$files[$directory][$filename]['remote']['versionDate'] = $remoteversion[4];
                
$files[$directory][$filename]['remote']['versionAuthor'] = $remoteversion[5];
                
$files[$directory][$filename]['remote']['versionMD5'] = $remoteversion[6];
            }
        }
    }
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Roster Diag problem

Postby Dreadan » Wed Jul 26, 2006 10:01 pm

I'm having a similar problem. The above sort of fixed it but the first error is still showing and everything in the tables is showing as unknown. I will post the 3 error below. the first one shows once and the other 2 repeat

Code: Select all
Warning: fopen(http://www.wowroster.net/roster_updater/version_match.php): failed to open stream: Connection timed out in /home/mercade/public_html/gow/roster/lib/rosterdiag.lib.php on line 290

Warning: feof(): supplied argument is not a valid stream resource in /home/mercade/public_html/gow/roster/lib/rosterdiag.lib.php on line 294

Warning: fread(): supplied argument is not a valid stream resource in /home/mercade/public_html/gow/roster/lib/rosterdiag.lib.php on line 296
Last edited by Dreadan on Thu Jul 27, 2006 8:11 am, edited 2 times in total.
Dreadan
WR.net Apprentice
WR.net Apprentice
 
Posts: 50
Joined: Tue Jul 04, 2006 7:42 pm

Re: Roster Diag problem

Postby Dreadan » Fri Jul 28, 2006 5:53 am

anyone else having a similar problem or a fix? I haven't changed anything and it worked before so I'm not sure whats going on :rabbit2:
Dreadan
WR.net Apprentice
WR.net Apprentice
 
Posts: 50
Joined: Tue Jul 04, 2006 7:42 pm

Roster Diag problem

Postby zanix » Fri Jul 28, 2006 12:50 pm

*sigh*
MATHOS!! HELP!!
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Roster Diag problem

Postby Dreadan » Fri Jul 28, 2006 8:53 pm

:scratch:
Dreadan
WR.net Apprentice
WR.net Apprentice
 
Posts: 50
Joined: Tue Jul 04, 2006 7:42 pm

Roster Diag problem

Postby zanix » Sat Jul 29, 2006 1:49 am

Yeah, mathos coded this entire area
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Roster Diag problem

Postby ThePrimaryDave » Sat Jul 29, 2006 4:30 am

Well, near as I can tell, problem 1 is that the file that it's trying to retrieve isn't available. Why that's happening, I don't know, because I'm able to retrieve it just fine. Problem 2 is that, despite zanix's (seemingly correct) fix, it's still not skipping that whole section of code.

To see what's going on with #1, try just retrieving the following url: http://www.wowroster.net/roster_updater ... _match.php
That's what it's failing on. Note: retriving it from your desktop may not be the same as retrieving it from the server that's running roster.

But I still don't understand why checking to see if $handle is false isn't working. :scratch:
ThePrimaryDave
WR.net Apprentice
WR.net Apprentice
 
Posts: 64
Joined: Wed Jul 05, 2006 9:45 pm
Location: Central Coast of CA

Roster Diag problem

Postby Dreadan » Sat Aug 26, 2006 6:35 pm

Still having this problem, has anyone else come across a fix for it
Dreadan
WR.net Apprentice
WR.net Apprentice
 
Posts: 50
Joined: Tue Jul 04, 2006 7:42 pm

Re: Roster Diag problem

Postby Nomad_Wanderer » Fri Sep 22, 2006 10:44 pm

Still having some trouble with this...
It looks like this operation is pegging the CPU?
Nomad_Wanderer
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Mon Jul 24, 2006 8:23 pm

Roster Diag problem

Postby zanix » Fri Sep 22, 2006 10:54 pm

Well, it does scan the entire roster directory
Maybe we should change this over to a different system
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US


Return to General Support & Feedback

Who is online

Users browsing this forum: No registered users and 1 guest

cron