I've successfully installed Moodle and get the first page, but attempting to go to "configuration" fails. So I've tackled admin/configure.php and the print_table function in lib/weblib.php.
My configuration:
XAMPP 1.4.5 on home computer
Windows2000 Windows NT JKS-800 5.0 build 2195
Apache/2.0.50 (Win32) mod_ssl/2.0.50 OpenSSL/0.9.7c PHP/5.0.0
mysql 4.0.20a
I've isolated the problem to these sections:
// if (isset($table->align)) {
// foreach ($table->align as $key => $aa) {
// if ($aa) {
// $align[$key] = " align=\"$aa\"";
// } else {
// $align[$key] = "";
// }
// } //foreach $table->align
// } //if isset($table->align)
it appears that none of these foreach array parsers is working.
Tinkering around, this worked:
// little test here:
foreach ($table->align as $key=>$v){
echo "key/Value: $key / $v <br/ > "; // this works
// echo "key/Value: $key / $v <br/> "; // this doesn't
// can't figure out how to escape notice space between / and >
//}
with this in configure.php
$table->align = array ("right", "left", "center");
I get:
key/Value: 0 / right
key/Value: 1 / left
key/Value: 2 / center
which I would expect. But something is amiss in the moodle code.
With the $table->align and other $table->xxx foreach's commented out, things are working. But anything that calls print_table fails if they're not.
Any ideas?
John,
Did you initially setup Moodle as a standalone or is it part of a home network? How are you accessing the configuration from the "server" or another workstation on your network? Did you assign a Moodle URL of "localhost", IP number or a web address? Finally, what browser?
I have Moodle running on a server on my home network with a hole through my router to the outside world so the server has a registered DynDNS host name in my configuration. When I'm on a workstation on the internal network accessing Moodle Administration, the configuration pages will just sometimes hang when using IE. I figure it's one of those typical Microsoft "excellence in coding" issues cause everything displays fine with Firefox on my internal network.
As mentioned by Howard, can you give us more details on the error or what happens/doesn't happen.
Cheers,
Bob