Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.2
Author Message
hireamerica
Client



Joined: Sep 30, 2004
Posts: 103
Location: New Jersey

PostPosted: Sat Oct 16, 2004 4:18 pm Reply with quote

Not really a bad error since I validated by frontend (e.g., tried to download) that all download do work. No users have reported download errors (e.g., broken downloads).

BUT...

When I use the validate function from the admin panel on downloads, for any or all I get:

Warning: fsockopen(): unable to connect to www.hireamerica.us:80 in /mnt/web_g/d06/s37/b01cc19b/www/admin/modules/download.php on line 1079

I don't have a line editor, but since I can search for '80' I got the following lines:

Quote:
$fp = fsockopen($vurl['host'], 80, $errno, $errstr, 15);
if (!$fp){
echo "<tr><td align=\"center\"><b>&nbsp;&nbsp;" . _FAILED . "&nbsp;&nbsp;</b></td>"
."<td>&nbsp;&nbsp;<a href=\"$url\" target=\"new\">$title</a>&nbsp;&nbsp;</td>"
."<td align=\"center\"><font class=\"content\">&nbsp;&nbsp;[ <a href=\"admin.php?op=DownloadsModDownload&amp;lid=$lid\">" . _EDIT . "</a> | <a href=\"admin.php?op=DownloadsDelDownload&amp;lid=$lid\">" . _DELETE . "</a> ]&nbsp;&nbsp;</font>"
."</td></tr>";
}
if ($fp){
echo "<tr><td align=\"center\">&nbsp;&nbsp;" . _OK . "&nbsp;&nbsp;</td>"
."<td>&nbsp;&nbsp;<a href=\"$url\" target=\"new\">$title</a>&nbsp;&nbsp;</td>"
."<td align=\"center\"><font class=\"content\">&nbsp;&nbsp;" . _NONE . "&nbsp;&nbsp;</font>"
."</td></tr>";
}


So this obviously fails, but is there something I can do to make it not fail...since I know the downloads are working?

Or, am I totally off and this validate should fail if validate is only to validate where a user HAS reported a broken download?
 
View user's profile Send private message Visit poster's website Yahoo Messenger
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Oct 16, 2004 6:08 pm Reply with quote

This looks as if your host may not have compiled PHP with socket support. Run a phpinfo() on your site and see if sockets show compiled in.
 
View user's profile Send private message
hireamerica







PostPosted: Sun Oct 17, 2004 12:53 pm Reply with quote

Well, the compile info shows no "with" and no "without" for sockets.

I did find a MySQL socket setting and a PHP socket setting (60/60) for timeout

I just emailed the hosting company to see... it's PHP 4.3.6 FYI.
 
Raven







PostPosted: Sun Oct 17, 2004 4:08 pm Reply with quote

If you don't have a line like this, then you don't have socket access.

Code:
         sockets

Sockets Support  enabled
 
hireamerica







PostPosted: Wed Oct 20, 2004 9:57 am Reply with quote

Well, as you now know I definitely have socket access.

Interestinly when I do validate I get "OK" status for all downloads, but the URLs ar not the download URLs.

I was fishing into download.php and saw that if DownloadsValidate is called with $cid=0 and $sid=0 then $result is the query for all the downloads.

$result if $cid==0 && $sid == 0 (check all)
$result2 if $cid!=0 && $sid == 0 (check cats and subcats)
$result3 if $cid=0 && $sid !=0 (check only subcats)

So then we get a while($row3 = $db->sql_fetchrow($result3)) { }...
In this $vurl is set to parse_url($row3['url']);

This would be blank since if you come in with $cid=0 and $sid=0, $result3 is not used...

Should I change all the $resultx to be just $result and then change the while statement to use $result?

Couldn't find this issue elsewhere in the forums.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.2

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©