Message boards : Server programs : Problems with unclassified teams @Milkyway
Message board moderation
Author | Message |
---|---|
Send message Joined: 9 Nov 05 Posts: 123 |
Hello, I'm not puter wizz, so I don't have the faintest idea what's going wrong @Milkyway, but if you look in this thread: http://milkyway.cs.rpi.edu/milkyway/forum_thread.php?id=39#322 you'll see that there is some problem on the server, and the admins don't know how to deal with it. Anyone here with more knowledge to help them? Gruesse vom Saenger For questions about Boinc look in the BOINC-Wiki |
Send message Joined: 27 Jun 06 Posts: 305 |
Sounds like a cache problem. In this case the admin there should be able to fix it (clean_cache.php under ops would be my guess, I don't know the management UI). |
Send message Joined: 27 Jun 06 Posts: 305 |
Notice: Undefined variable: too_many in /export/share0/www/boinc/milkyway/html/user/team_lookup.php on line 67 No variable called "too_many" in the current version of that PHP file I can only guess ... echo " More than 100 teams match your search. The first 100 are shown.<br> "; Well, those inline linefeeds should work - if the file was a proper text file. On SVN, the file team_lookup.php is a proper DOS text file, but now interpreted on a *ix system, I'm not sure wether it works well in this constellation. I think it would be a good idea to have all server side files in *ix format on SVN, currently it looks a bit random, some have 0D0A and some only 0A. Both are are ignored by PHP and HTML - but within quotes that's a different story, I wouldn't count on a specific behaviour there. The Milkyway admin could try to pull all files to a Windows PC via FTP in binary mode and then copy them back in ascii/text mode. That's easier than using a sed script on all files. |
Send message Joined: 27 Jun 06 Posts: 305 |
Notice: Undefined variable: too_many in /export/share0/www/boinc/milkyway/html/user/team_lookup.php on line 67... I signed up trac now so I can use the SVN browser interface ... my guess was wrong (the conclusion was not) Tell the admin to insert the bold line near line 50 of team_lookup.php : ... page_head("Search Results"); $too_many = false; if ($result_list) { ... |
Send message Joined: 6 Mar 07 Posts: 3 |
Notice: Undefined variable: too_many in /export/share0/www/boinc/milkyway/html/user/team_lookup.php on line 67... Hi, I'm the admin over at the milkyway@home project, and i've tried this but it still looks like the teams aren't showing up. i've ran the clean_cache.php as well, and re-run the update_stats script, but no luck. are there some other settings we need to enable to get all the teams to show up? |
Send message Joined: 6 Mar 07 Posts: 3 |
basically, the problem is we have teams being shown in the unclassified top 20, but not the teams top 20. |
Send message Joined: 27 Jun 06 Posts: 305 |
That "$too_many = false;" stuff was only needed to get rid of an (unrelated) error message. ________________________ Maybe it would be a good idea to echo these two values for debugging : $cache_args (top_teams.php at about line 60) $type_sql (top_teams.php at about line 16) It will not print both but then we would know if the data come from cache or database and we would know how the selection for cache or database looks like. btw., teams with an empty type (= "unknown") do show whereas all teams with type=1 (= unclassified) do not show, when there should be no "type" restriction p.s.: I just see that $type_sql is uninitialized in function get_top_teams(), maybe it would be good to set it to $type_sql=""; <==================this is missing (still missing in the latest version) if ($type){ $type_sql = "where type=".(int)$type; } |
Send message Joined: 27 Jun 06 Posts: 305 |
Maybe this little test helps somehow, just run the PHP standalone on your BOINC server : <?php function get_top_teams($type=""){ if ($type){ $type_sql = "where type=".(int)$type; } echo "type_sql=($type_sql)<br>"; } $type = 0; if ($type < 1 || $type > 7) { $type = null; } $type_sql=""; $cache_args = "sort_by=$sort_by&offset=$offset&type=$type"; echo "cache_args=($cache_args)<br>"; $data = get_top_teams($type); ?> PHP3 : cache_args=(sort_by=&offset=&type=null) type_sql=(where type=0) PHP4 and PHP5 : cache_args=(sort_by=&offset=&type=) type_sql=() The behaviour of PHP3 is not what BOINC needs in top_teams.php In this case it might help to replace $type = null; with unset ($type); or $type = ""; (both work in my test) |
Send message Joined: 27 Jun 06 Posts: 305 |
Yep, that must be it. On http://milkyway.cs.rpi.edu/milkyway/top_teams.php?sort_by=total_credit not only the "Unclassified" teams are missing, it's more like all teams are missing except for those with "Unknown" (i.e. 0) type, the "Company", "University" (...) teams are missing too. _______________________________ As this might not be the only place in the source that can cause problems, you could try to add those lines to .htaccess too (if that is possible on your server) : AddType x-mapp-php4 .php AddType x-mapp-php4 .PHP (or php5 if available) or change the default PHP handler to a later version |
Send message Joined: 19 Jan 07 Posts: 1179 |
PHP3 : Who the hell still runs PHP3? PHP4 will be discontinued at the end of the year! |
Send message Joined: 27 Jun 06 Posts: 305 |
... Well, I'm quite happy that my web space provider still offers it as an option or I wouldn't have been able to test (well, I could have installed it on my PC of course). In the Milkyway forum it sounds as if PHP3 actually did cause it. p.s.: I didn't find any place in the docs saying something about the recommended / required PHP version Maybe the Management UI should have a version check with a hint like "Not tested under this PHP version" or so. There should be hints about required modules too, like LibGD (with JPG/PNG/GIF support if needed) and ZLib. Expected settings like allow_url_fopen would be a good hint too. |
Send message Joined: 19 Jan 07 Posts: 1179 |
p.s.: I didn't find any place in the docs saying something about the recommended / required PHP version It does say PHP5 is required. See [trac]wiki:SoftwarePrereqsUnix[/trac]. |
Send message Joined: 27 Jun 06 Posts: 305 |
p.s.: I didn't find any place in the docs saying something about the recommended / required PHP version Thanks :-) I expected a link to that here, that's why I didn't find it. Maybe it should be on both the BOINC developer and the project developer page. |
Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.