Originally Posted by
bigandrew
After re-installing this multiple times only to get the same error message, I thought why not replace this index.php file (v1.5.7c) with the one from my live site (1.5.5f). It worked, however, I'm not sure if this is the "right" way to fix the problem. Seems the coding in the 1.5.7 version is incorrect. I could be wrong.
Ummm.. The "differences" between the 1.5.7c and 1.5.5f catalog side index.php actually have no commonality to the issue that was described. There was something else that was wrong.
In fact the true differences between the catalog side index.php file for 1.5.5f compared to 1.5.7c is how the content of files is generated/processed. In the older version, the file's contents are generated as a potential array and then each element of the array is added onto the list of information. In the 1.5.7c version, basically the contents of the file were put together by taking an array and forcing it to a string. Again there was no `DIR_FS_INSTALL` nor `DIR_WS_INSTALL_TEMPLATE` in the expected catalog version of the index.php file.
The above differences would not have brought out the issue that was previously described.
1.5.5f:
Code:
foreach ($directory_array as $value) {
$onload_file = DIR_WS_MODULES . 'pages/' . $current_page_base . '/' . $value;
$read_contents='';
$lines = @file($onload_file);
foreach($lines as $line) {
$read_contents .= $line;
}
$za_onload_array[] = $read_contents;
}
1.5.7c:
Code:
foreach ($directory_array as $value) {
$onload_file = DIR_WS_MODULES . 'pages/' . $current_page_base . '/' . $value;
$read_contents='';
if ($lines = @file($onload_file)) {
$read_contents = implode('', $lines);
}
$za_onload_array[] = $read_contents;
}
Bookmarks