Pagina 1 van 1
probleem met Advanced Group Color Management voor het inst..
Geplaatst: 27 aug 2006, 17:58
door TWEagle
als ik AGCm installeer dan krijg ik deze error bij eht forum in te drukken
Fatal error: Call to a member function on a non-object in /usr/local/www/htdocs/huisdier/forum/includes/class_user.php on line 474
het is een category Hierarchie en dit zijn de regels 472 tot 476
Code: Selecteer alles
//-- mod : Advanced Group Color Management -------------------------------------
//-- add
$config->color->read_theme($style);
//-- fin mod : Advanced Group Color Management ---------------------------------
// force the main css when in admin
weet iemand hier raad mee?
Geplaatst: 27 aug 2006, 18:05
door ElbertF
Je bent iets vergeten toe te voegen. Heb je de mod nagelopen?
Geplaatst: 27 aug 2006, 18:10
door TWEagle
in wat voor fileke zou dat zitten userbased of admin based gedeelte?
Geplaatst: 27 aug 2006, 18:24
door ElbertF
/includes/class_user.php
Zoals de fout al aangeeft.
Geplaatst: 27 aug 2006, 18:26
door TWEagle
dit is opgelost
de hoofd map de files daarvan waren niet geupload
maar nu heb ik een andere error
namelijk deze
is in admin panel bij selecteren van een kleur
Code: Selecteer alles
Fatal error: Call to undefined function: color_search() in /usr/local/www/htdocs/huisdier/forum/search.php on line 35
search.php regel 19 tot 40
Code: Selecteer alles
//-- mod : Advanced Group Color Management -------------------------------------
//-- delete
// $mode = _read('mode', TYPE_NO_HTML, '', array_flip(array('results', 'searchuser')));
// if ( $mode == 'searchuser' )
//-- add
$mode = _read('mode', TYPE_NO_HTML, '', array_flip(array('results', 'searchuser', 'searchcolor')));
if ($mode == 'searchcolor')
{
include($config->url('includes/functions_search'));
$userdata = session_pagestart($user_ip, PAGE_SEARCH);
init_userprefs($userdata);
//
// This handles the simple windowed user color
//
color_search();
exit;
}
else if ($mode == 'searchuser')
//-- fin mod : Advanced Group Color Management ---------------------------------
zou dat kunnen dat de sql niet goed is doorlopen?
Geplaatst: 28 aug 2006, 10:26
door TWEagle
weet iemand voorgaande error
dubbelposten is verboden maar had mijn post bewerkt en daarom heb ik deze post nu gezet omdat je het niet ziet als een post is verandert
Geplaatst: 29 aug 2006, 15:53
door TWEagle
weet iemand een antwoord voor de vorige error?
want ik heb nog een kleine error
als ik een topic post
zie ik dat topic neit
dan krijg ik in dat betreffende forum deze error:
Code: Selecteer alles
Parse error: syntax error, unexpected '}' in /usr/local/www/htdocs/huisdier/forum/includes/class_template.php(233) : eval()'d code on line 64
hieronder post ik class_template.php vanaf regel 60 tot 240
Code: Selecteer alles
// set the cache path
$this->cache_path = $config->data['cache_path'];
$this->template_path = empty($template_path) ? 'templates/' : $template_path;
$this->set($root, $alt_template_name);
$this->no_debug = false;
$this->_id = 0;
}
function set($root, $alt_template_name='')
{
global $config;
$this->root_template = $config->root . $this->template_path;
// get main template settings
$this->template_name = str_replace('//', '/', str_replace('./', '', substr($root, strlen($this->root_template))) . '/');
$this->root = $this->root_template . $this->template_name;
$this->cacheprefix = $config->root . $this->cache_path . 'tpl_' . str_replace('/', '_', $this->template_name);
// get custom tpls settings
$this->alt_template_name = $this->alt_root = $this->alt_prefix = '';
if ( $alt_template_name && ($this->alt_template_name = $this->tpl_realpath($alt_template_name)) )
{
$this->alt_root = $this->root_template . $this->alt_template_name;
$this->alt_cacheprefix = $config->root . $this->cache_path . 'tpl_' . str_replace('/', '_', $this->alt_template_name);
}
// raz
$this->_tpldata = $this->local_images = array();
}
function tpl_realpath($tpl_name)
{
global $config;
if ( !empty($tpl_name) )
{
$real_path = phpbb_realpath($this->root);
if ( $real_path != $this->root)
{
$tpl_real_path = phpbb_realpath($this->root . $tpl_name);
if ( empty($tpl_real_path) )
{
$tpl_name = '';
}
else
{
$root_real_path = phpbb_realpath($this->root_template);
$tpl_name = str_replace('//', '/', str_replace('\\', '/', substr($tpl_real_path, strlen($root_real_path)+1)) . '/');
}
}
// realpath fails to get the real path sometime (when not available), so find another way
else
{
$res = $this->template_name;
if ( substr($tpl_name, 0, 2) == './' )
{
$tpl_name = substr($tpl_name, 2);
}
if ( substr($tpl_name, 0, 3) == '../' )
{
$res = '';
$tpl_name = substr($tpl_name, 3);
}
if ( preg_match('/\.\.\//', $tpl_name) )
{
$tpl_name = '';
}
else
{
$tpl_name = str_replace('//', '/', str_replace('./', '', $res . $tpl_name) . '/');
}
}
}
return $tpl_name;
}
function set_switch($switch_name, $on=true, $onset=true)
{
if ( $onset )
{
$this->assign_block_vars($switch_name . ($on ? '' : '_ELSE'), array());
}
}
function save(&$save)
{
$save = $this->_tpldata;
}
function destroy()
{
$this->_tpldata = array();
}
function restore(&$save)
{
$this->_tpldata = $save;
}
function get_pparse($handle)
{
ob_start();
$this->pparse($handle);
$res = ob_get_contents();
ob_end_clean();
return $res;
}
// Sets the template filenames for handles. $filename_array
// should be a hash of handle => filename pairs.
function set_filenames($filename_array)
{
if ( !is_array($filename_array) )
{
return false;
}
$template_names = '';
foreach ($filename_array as $handle => $filename)
{
if ( empty($filename) )
{
message_die(GENERAL_ERROR, 'template error - Empty filename specified for ' . $handle, '', __LINE__, __FILE__);
}
$this->filename[$handle] = $filename;
if ( !empty($this->alt_root) )
{
$this->files[$handle] = $this->alt_root . $filename;
}
// doesn't exists : try the main
if ( !$this->mains[$handle] = (!empty($this->alt_root) && file_exists($this->files[$handle])) )
{
$this->files[$handle] = $this->root . $filename;
$this->mains[$handle] = false;
}
}
return true;
}
function make_filename($filename)
{
return !empty($this->alt_root) && file_exists($this->alt_root . $filename) ? $this->alt_root . $filename : (file_exists($this->root . $filename) ? $this->root . $filename : '');
}
// Methods for loading and evaluating the templates
function pparse($handle)
{
global $user, $images;
$d = &$this->_tpldata;
if ( is_object($user) && !$user->style_set )
{
$user->set_style();
}
$this->no_debug = $this->no_debug || !is_object($user) || ($user->data['user_level'] != ADMIN);
if ( defined('DEBUG_TEMPLATE') && !$this->no_debug )
{
echo '<!-- Start of : ' . $this->files[$handle] . ' :: ' . $handle . ' -->' . "\n";
}
if ($filename = $this->_tpl_load($handle))
{
include($filename);
}
else
{
eval(' ?>' . $this->compiled_code[$handle] . '<?php ');
}
if ( defined('DEBUG_TEMPLATE') && !$this->no_debug )
{
echo '<!-- End of : ' . $this->files[$handle] . ' :: ' . $handle . ' -->' . "\n";
}
return true;
grtz
TWE
Geplaatst: 31 aug 2006, 18:58
door TWEagle
sorry voort bumpen maar deze fout krijg ik neit opgelost
weet iemand een oplossing
Code: Selecteer alles
Fatal error: Call to undefined function: color_search() in /usr/local/www/htdocs/huisdier/forum/search.php on line 35
gedane dingen
3X alle dingen opnieuw bekeken of er fouten zijn
sql herbekeken
Geplaatst: 31 aug 2006, 20:03
door Luuk
Staat er niet toevallig dat je vor die mod een andere mod nodig hebt (bijvoorbeeld de user color MOD)?
Geplaatst: 31 aug 2006, 20:05
door TWEagle
dit is een mod speciaal hermaakt voor Category Hierarchie
daar is ook een versie voor phpbb
maar voor de rest is het een stand alone mod
Geplaatst: 31 aug 2006, 20:07
door Luuk
Zo te zien is mis je een functie in function_search.php of een .php bestand wat bij de mod zit (dat laatste lijkt me sterk).
Geplaatst: 31 aug 2006, 20:48
door TWEagle
een filek te weinig denk je dan
Geplaatst: 31 aug 2006, 22:05
door Luuk
Dat kan ook, wat is de link van de mod waar jij hem gedownload hebt?
Geplaatst: 01 sep 2006, 07:15
door brandsrus
Dat kan ook, wat is de link van de mod waar jij hem gedownload hebt?
Ik had toch verwacht dat je dat nog wel kon vinden via Google.nl?
Zoeken via google levert
dit op. De derde link op deze pagina is
deze. Warempel er staat ook een downloadlink

Geplaatst: 01 sep 2006, 15:30
door Luuk
Je hoeft niet altijd dezelfde versie van een mod te vinden, misschien had hij een (oudere) versie ergens anders gedownload...
Heb je dit ook gedaan?
Code: Selecteer alles
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_search.php
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : Advanced Group Color Management -------------------------------------
//-- add
function color_search()
{
global $template, $user, $theme;
$page_title = $user->lang('AGCM_color_search');
$template->set_filenames(array(
'search_color' => 'search_color.tpl')
);
$template->assign_vars(array(
'L_WEB_SAFE' => $user->lang('AGCM_web_safe'),
'L_WINDOWS_SYSTEM' => $user->lang('AGCM_windows_system'),
'L_GREY_SCALE' => $user->lang('AGCM_grey_scale'),
'L_MAC_OS' => $user->lang('AGCM_mac_os'),
'PAGE_TITLE' => $page_title,
'S_CONTENT_DIRECTION' => $user->lang('DIRECTION'),
'S_CONTENT_ENCODING' => $user->lang('ENCODING'),
'T_BODY_BGCOLOR' => '#'.$theme['body_bgcolor'])
);
$template->pparse('search_color');
return;
}
//-- fin mod : Advanced Group Color Management ---------------------------------
Geplaatst: 01 sep 2006, 16:17
door TWEagle
jep
is ook gebeurt
Geplaatst: 01 sep 2006, 20:33
door Luuk
Geef dan eens regel 25-45 van jouw search.php, dan moet het probleem daar in zitten.
Geplaatst: 01 sep 2006, 20:35
door TWEagle
van 19 tot 55
Code: Selecteer alles
//-- mod : Advanced Group Color Management -------------------------------------
//-- delete
// $mode = _read('mode', TYPE_NO_HTML, '', array_flip(array('results', 'searchuser')));
// if ( $mode == 'searchuser' )
//-- add
$mode = _read('mode', TYPE_NO_HTML, '', array_flip(array('results', 'searchuser', 'searchcolor')));
if ($mode == 'searchcolor')
{
include($config->url('includes/functions_search'));
$userdata = session_pagestart($user_ip, PAGE_SEARCH);
init_userprefs($userdata);
//
// This handles the simple windowed user color
//
color_search();
exit;
}
else if ($mode == 'searchuser')
//-- fin mod : Advanced Group Color Management ---------------------------------
{
$requester = 'search_username';
include($config->url('includes/functions_search'));
$userdata = session_pagestart($user_ip, PAGE_SEARCH);
$user->set($requester, array('search_username'));
if ( $user->data['session_is_bot'] )
{
message_die(GENERAL_MESSAGE, 'Not_Authorised');
}
username_search(isset($HTTP_POST_VARS['search_username']) ? $HTTP_POST_VARS['search_username'] : '');
exit;
}
//
// let's go with the real work now :)
Geplaatst: 01 sep 2006, 20:44
door Luuk
Includes/functions_search.php is wel geïnclude (ga ik maar vanuit..). Kijk voor de zekerheid of die functie echt in dat bestand staat, anders vervang de eerste
eens in
Geplaatst: 01 sep 2006, 21:13
door TWEagle
het werkt
er zat een fout tijdens het installeren
geuninstalled en toen terug geinstalled