Seite 1 von 1
Cache Mod verursacht Fehler, was nun?
Verfasst: 16.07.2004 23:51
von daruler
Um den Categories Hierarchy Mod einzubauen muss man ja bekanntlich zuerst den Cache Mod installieren, nur happert es bereits dort bei mir.
Nach dem ich alle Dateien nach Anleitung gemodded habe kann ich leider keine Postings mehr lesen, denn es wird nur eine Leere(weiße) Seite geladen oder folgende Fehlermeldung:
Code: Alles auswählen
Parse error: parse error, unexpected T_DOUBLE_ARROW, expecting ')' in /home/www/web14/html/forum/includes/def_smilies.php on line 38
Wäre nett, wenn mir jemand helfen koennte
Verfasst: 19.07.2004 21:29
von d23
Code: Alles auswählen
<?php
/***************************************************************************
* def_smilies.php
* ---------------
* begin : 15/12/2003
* copyright : Ptirhiik
* email : admin@rpgnet-fr.com
*
* version : 1.0.0 - 15/12/2003
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
***************************************************************************/
if ( !defined('IN_PHPBB') )
{
die('Hacking attempt');
exit;
}
//--------------------------------------------------------------------------------------------------
//
// $smilies : templates
// ---------
//--------------------------------------------------------------------------------------------------
$smilies = array();
?>
Verfasst: 19.07.2004 22:31
von daruler
Wenn du mir ncoh sagen könntest, was ich mit deinem Beitrag machen soll, wäre ich dir überaus dankbar!
Verfasst: 20.07.2004 05:08
von Dave
Fix für den Cache:
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_cache.php
#
#-----[ FIND ]------------------------------------------------
#
* version : 1.0.0 - 15/12/2003
#
#-----[ REPLACE WITH ]----------------------------------------
#
* version : 1.0.1 - 16/01/2004
#
#-----[ FIND ]------------------------------------------------
#
if ( defined('USERS_STATS_DONE') )
{
return;
}
define('USERS_STATS_DONE', true);
// read registered users info (number and last)
#
#-----[ REPLACE WITH ]----------------------------------------
#
// read registered users info (number and last)
#
#-----[ FIND ]------------------------------------------------
#
if ( defined('BOARD_STATS_DONE') )
{
return;
}
define('BOARD_STATS_DONE', true);
// read topics and posts info
#
#-----[ REPLACE WITH ]----------------------------------------
#
// read topics and posts info
#
#-----[ FIND ]------------------------------------------------
#
$fname = $phpbb_root_path . './includes/def_tree.' . $phpEx;
@chmod($fname, 0666);
$handle = @fopen($fname, 'w');
@fwrite($handle, $res);
@fclose($handle);
#
#-----[ REPLACE WITH ]----------------------------------------
#
$cache_path = 'includes/';
$cache_file = 'def_tree';
$handle = @fopen($phpbb_root_path . $cache_path . $cache_file . '.' . $phpEx, 'w');
@flock($fp, LOCK_EX);
@fwrite($handle, $res);
@flock($fp, LOCK_UN);
@fclose($handle);
@umask(0000);
@chmod($phpbb_root_path . $cache_path . $cache_file . '.' . $phpEx, 0666);
#
#-----[ FIND ]------------------------------------------------
#
if ( !defined('CACHE_WORDS') || defined('CACHE_WORDS_DONE') )
{
return;
}
define('CACHE_WORDS_DONE', true);
#
#-----[ REPLACE WITH ]----------------------------------------
#
if ( !defined('CACHE_WORDS') )
{
return;
}
#
#-----[ FIND ]------------------------------------------------
#
if ( !defined('CACHE_THEMES') || defined('CACHE_THEMES_DONE') )
{
return;
}
define('CACHE_THEMES_DONE', true);
#
#-----[ REPLACE WITH ]----------------------------------------
#
if ( !defined('CACHE_THEMES') )
{
return;
}
#
#-----[ FIND ]------------------------------------------------
#
if ( !defined('CACHE_SMILIES') || defined('CACHE_SMILIES_DONE') )
{
return;
}
define('CACHE_SMILIES_DONE', true);
#
#-----[ REPLACE WITH ]----------------------------------------
#
if ( !defined('CACHE_SMILIES') )
{
return;
}
#
#-----[ FIND ]------------------------------------------------
#
if ( !defined('CACHE_RANKS') || defined('CACHE_RANKS_DONE') )
{
return;
}
define('CACHE_RANKS_DONE', true);
#
#-----[ REPLACE WITH ]----------------------------------------
#
if ( !defined('CACHE_RANKS') )
{
return;
}
#
#-----[ FIND ]------------------------------------------------
#
if ( !defined('CACHE_BIRTHDAY') || !defined('PCP_INSTALLED') || defined('CACHE_BIRTHDAY_DONE') )
{
return;
}
define('CACHE_BIRTHDAY_DONE', true);
#
#-----[ REPLACE WITH ]----------------------------------------
#
if ( !defined('CACHE_BIRTHDAY') || !defined('PCP_INSTALLED') )
{
return;
}
#
#-----[ FIND ]------------------------------------------------
#
$fname = $phpbb_root_path . './includes/' . $cache_file . '.' . $phpEx;
@chmod($fname, 0666);
$handle = @fopen($fname, 'w');
@fwrite($handle, $res);
@fclose($handle);
#
#-----[ REPLACE WITH ]----------------------------------------
#
$cache_path = 'includes/';
$handle = @fopen($phpbb_root_path . $cache_path . $cache_file . '.' . $phpEx, 'w');
@flock($fp, LOCK_EX);
@fwrite($handle, $res);
@flock($fp, LOCK_UN);
@fclose($handle);
@umask(0000);
@chmod($phpbb_root_path . $cache_path . $cache_file . '.' . $phpEx, 0666);
#
#-----[ OPEN ]------------------------------------------------
#
includes/cache_tpls/def_smilies_def.php
#
#-----[ FIND ]------------------------------------------------
#
<!-- END smilies -->
#
#-----[ REPLACE WITH ]----------------------------------------
#
<!-- END cache_row -->
#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_users.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
$message = $lang['User_deleted'] . '<br /><br />' . sprintf($lang['Click_return_useradmin'], '<a href="' . append_sid("admin_users.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>');
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
users_stats();
cache_birthday();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
$message .= '<br /><br />' . sprintf($lang['Click_return_useradmin'], '<a href="' . append_sid("admin_users.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>');
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
// the username may have changed
users_stats();
cache_birthday();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------------
#
$message = $lang['Profile_updated'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
// the username may have changed
users_stats();
cache_birthday();
//-- fin mod : cache -------------------------------------------------------------------------------
Gehts danach?
MfG
Dave