PEAK XOOPS - error when install in englishin japanese

error when install

List posts in the topic

question error when install

msg# 1
depth:
0
Previous post - Next post | Parent - Children.1 | Posted on 2007/2/7 21:36 | Last modified
beduino  一等兵   Posts: 18
Hi,
I'm installing new version of PICO to translate this and the follow error returns when I try save preferences
Quote:
Errors
Warning: Smarty error: unable to read resource: "db:system_redirect.html" in file /class/smarty/Smarty.class.php line 1095

i just adapted the resource.db.php [using xoops 2.0.16] as below

Quote:
function smarty_resource_db_source($tpl_name, &$tpl_source, &$smarty) {
if ( !$tpl = smarty_resource_db_tplinfo( $tpl_name ) ) {
return false;
}
if ( is_object( $tpl ) ) {
$tpl_source = $tpl->getVar( 'tpl_source', 'n' );
} else {
$fp = fopen( $tpl, 'r' );
$tpl_source = fread( $fp, filesize( $tpl ) );
fclose( $fp );
}
return true;
}

function smarty_resource_db_timestamp($tpl_name, &$tpl_timestamp, &$smarty) {
if ( !$tpl = smarty_resource_db_tplinfo( $tpl_name ) ) {
return false;
}
if ( is_object( $tpl ) ) {
$tpl_timestamp = $tpl->getVar( 'tpl_lastmodified', 'n' );
} else {
$tpl_timestamp = filemtime( $tpl );
}
return true;
}

function smarty_resource_db_secure($tpl_name, &$smarty)
{
// assume all templates are secure
return true;
}

function smarty_resource_db_trusted($tpl_name, &$smarty)
{
// not used for templates
}

function smarty_resource_db_tplinfo( $tpl_name ) {
static $cache = array();
global $xoopsConfig;

if ( isset( $cache[$tpl_name] ) ) {
return $cache[$tpl_name];
}
$tplset = $xoopsConfig['template_set'];
$theme = isset( $xoopsConfig['theme_set'] ) ? $xoopsConfig['theme_set'] : 'default';

$tplfile_handler =& xoops_gethandler('tplfile');
// If we're not using the "default" template set, then get the templates from the DB
if ( $tplset != "default" ) {
$tplobj = $tplfile_handler->find( $tplset, null, null, null, $tpl_name, true);
if ( count( $tplobj ) ) {
return $cache[$tpl_name] = $tplobj[0];
}
}
// If we'using the default tplset, get the template from the filesystem
$tplobj = $tplfile_handler->find( "default", null, null, null, $tpl_name, true);

if ( !count( $tplobj ) ) {
return $cache[$tpl_name] = false;
}
$tplobj = $tplobj[0];
$module = $tplobj->getVar( 'tpl_module', 'n' );
$type = $tplobj->getVar( 'tpl_type', 'n' );
$blockpath = ( $type == 'block' ) ? 'blocks/' : '';
// First, check for an overloaded version within the theme folder
$filepath = XOOPS_THEME_PATH . "/$theme/modules/$module/$blockpath$tpl_name";
if ( !file_exists( $filepath ) ) {
// If no custom version exists, get the tpl from its default location
$filepath = XOOPS_ROOT_PATH . "/modules/$module/templates/$blockpath$tpl_name";
if ( !file_exists( $filepath ) ) {
$tplobj = $tplfile_handler->find( $tplset, null, null, null, $tpl_name, true);
if ( count( $tplobj ) ) {
return $cache[$tpl_name] = $tplobj[0];
}
}

}
return $cache[$tpl_name] = $filepath;
}



?>


and I can't insert new contents. [the permissions in admin module don't appears to me.

Other question: maybe some in my install is wrong [or maybe the cause is the install in subdomain] but the gifs of modules [PICO and D3forum] don't appears too.

All the best
Joao Barroca
aka beduino

ps @editing: maybe my resource.db.php is wrong - i turn back the original file and it's better.
Votes:2 Average:5.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!