1
luke_chen
Can't install
  • 2010/1/11 7:53

  • luke_chen

  • Just popping in

  • Posts: 19

  • Since: 2009/12/28


my installation:
xoops-2.3.3 or xoops-2.4.2
Framwork 1.3
smarty 2.6.22-1ubuntu2

I can't install 'lifetype 1.02' and with errors:


Fatal error: Class 'XoopsCache' not found in /var/www/xoops-x/htdocs/modules/system/class/gui/default/default.php on line 57

Notice: Undefined index: tag in file /modules/xlanguage/include/functions.php line 258





2
Mamba
Re: Can't install
  • 2010/1/11 9:18

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Will this message help?

3
luke_chen
Re: Can't install
  • 2010/1/12 1:42

  • luke_chen

  • Just popping in

  • Posts: 19

  • Since: 2009/12/28


I have added
'include_once "../../mainfile.php";
if(!defined('SMARTY_DIR')) define ('SMARTY_DIR', XOOPS_ROOT_PATH . '/class/smarty/');//added this line'

to lifetype/class/bootstrap.php file, but it still the same error occured.


4
luke_chen
Re: Can't install
  • 2010/1/12 3:12

  • luke_chen

  • Just popping in

  • Posts: 19

  • Since: 2009/12/28


in file
/var/www/xoops-x/htdocs/modules/system/class/gui/default/default.php


function flush()
{
xoops_load("cache");
XoopsCache::delete("adminmenu_" . __CLASS__);
}


maybe lifetype have not defined the class 'XoopsCache', how to solve it?

5
luke_chen
Re: Can't install
  • 2010/1/12 3:19

  • luke_chen

  • Just popping in

  • Posts: 19

  • Since: 2009/12/28


even though still the same problem occurring while installing or uninstalling, but, actually it works!

I did two things:

1. add two lines into class/bootstrap.php
include_once "../../mainfile.php";
if(!defined('SMARTY_DIR')) define ('SMARTY_DIR', XOOPS_ROOT_PATH.'/class/smarty/');


2. add a line into class/template/templateutils.class.php
line20: require_once XOOPS_ROOT_PATH.'/class/smarty/Smarty.class.php';

I am not sure which one take effect actually.

Login

Who's Online

279 user(s) are online (208 user(s) are browsing Support Forums)


Members: 0


Guests: 279


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits