Hi Robert. I am almost finished upgrading my site from RC2a -> v2.3, (Only dashboard remains to be done).
When running RC2a KISS MT was working excellently, thanks! After upgrade I've got som strange errors reported by KISS error handler:
1)
Date / Time: 04-02-2011 20:12:52
Error Type: [E_USER_WARNING] KissMT can't write to the cache directory. Please change the permissions.
On line 112
File includes/modules/kiss_meta_tags/classes/kiss_meta_tags_class.php
my path to the cache directory is set in admin as/home/xxxx/public_html/pub/cache/
2)
Error Type: [E_WARNING] fopen(/home/xxxx/public_html/pub/cache/categories_box-svenska.cache27_42) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
On line 58
File includes/functions/cache.php
function read_cache(&$var, $filename, $auto_expire = false){
$filename = DIR_FS_CACHE . $filename;
$success = false;
if (($auto_expire == true) && file_exists($filename)) {
$now = time();
$filetime = filemtime($filename);
$difference = $now - $filetime;
if ($difference >= $auto_expire) {
return false;
}
}
// try to open file
if ($fp = @fopen($filename, 'r')) { <--Line 58
// read in serialized data
$szdata = fread($fp, filesize($filename));
fclose($fp);
// unserialze the data
$var = unserialize($szdata);
$success = true;
}
return $success;
}
Could it be the definition of the cache directory as DIR_FS_CACHE?
Also I wonder why the ampersand is preceeding $var in the argument list? (forgive me for not being skilled at php)
3)
This is an error which wasn't present in the RC2a version (I point this out since it isn't a KISS MT issue):
Date / Time: 04-02-2011 20:15:16
Error Type: [E_NOTICE] Undefined offset: 27
On line 188
File includes/boxes/categories.php
The code around line 188 is:
if (tep_not_null($cPath)) {
$new_path = '';
reset($cPath_array);
while (list($key, $value) = each($cPath_array)) {
unset($parent_id);
unset($first_id);
$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");
if (tep_db_num_rows($categories_query)) {
$new_path .= $value;
while ($row = tep_db_fetch_array($categories_query)) {
$tree[$row['categories_id']] = array('name' => $row['categories_name'],
'parent' => $row['parent_id'],
'level' => $key+1,
'path' => $new_path . '_' . $row['categories_id'],
'next_id' => false);
if (isset($parent_id)) {
$tree[$parent_id]['next_id'] = $row['categories_id'];
}
$parent_id = $row['categories_id'];
if (!isset($first_id)) {
$first_id = $row['categories_id'];
}
$last_id = $row['categories_id'];
}
$tree[$last_id]['next_id'] = $tree[$value]['next_id']; <-----Line 188
$tree[$value]['next_id'] = $first_id;
$new_path .= '_';
} else {
break;
}
}
}
Hopefully you can advice me, as so many times before
Thanks in advance
Kindest
Sara