2
I hacked the "logger.php" file to write the errors to a file and this is the result:
I have no idea where to do next.
File: include\common.php Line: 171
Error Info: 8 - Undefined index: gzip_compression
File: include\common.php Line: 179
Error Info: 8 - Undefined index: debug_mode
File: include\common.php Line: 179
Error Info: 8 - Undefined index: debug_mode
File: class\xoopssecurity.php Line: 207
Error Info: 8 - Undefined index: enable_badips
File: include\common.php Line: 198
Error Info: 8 - Undefined index: language
File: include\common.php Line: 245
Error Info: 8 - Undefined index: use_ssl
File: include\common.php Line: 247
Error Info: 8 - Undefined index: use_mysession
File: include\common.php Line: 260
Error Info: 8 - Undefined index: use_mysession
File: include\common.php Line: 283
Error Info: 8 - Undefined index: closesite
File: header.php Line: 39
Error Info: 8 - Undefined index: theme_set
File: header.php Line: 39
Error Info: 8 - Undefined index: theme_set
I have found a PHP Debug Utility and having no knowledge of the command/coding structure I went through step by step. I have slicght idea where the problem lays. The file CONFIGITEM.PHP in the function getObjects at around line 300 looks like this:
$result = $this->db->query($sql, $limit, $start);
if (!$result) {
return false;
}
while ($myrow = $this->db->fetchArray($result)) {
$config = new XoopsConfigItem();
$config->assignVars($myrow);
if (!$id_as_key) {
$ret[] =& $config;
} else {
$ret[$myrow['conf_id']] =& $config;
}
unset($config);
}
return $ret;
After the query, the variable $result = 17
On entering the WHILE loop the variable has the value NULL.
The function fetchArray is called once with the $result = 17.
The execution does not enter the WHILE loop at all and now the value $myrow = FALSE.
What puzzles me is that there are 31 entries that match the SQL Criteria for the query
SELECT * FROM tnt_config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC
Any ideas why only 17 records are returned?