xoops forums

JDLamb

Just popping in
Posted on: 2008/12/29 12:16
JDLamb
JDLamb (Show more)
Just popping in
Posts: 40
Since: 2008/11/10
#1

Life type

I have attempted to install lifetype. All I get is a blank page, and the error message is as follows:

Fatal error: require_once() [function.require]: Failed opening required 'SMARTY_DIR/Smarty.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/abarrelf/public_html/main/modules/lifetype/class/template/template.class.php on line 20
All errors (2) queries (5) blocks (0) extra (0) timers (3)

Where do I find the smarty directory?

dslchart

Not too shy to talk
Posted on: 2008/12/29 12:36
dslchart
dslchart (Show more)
Not too shy to talk
Posts: 112
Since: 2008/9/7 1
#2

Re: Life type

Quote:
'SMARTY_DIR/Smarty.class.php'


i think SMARTY_DIR is your problem. the constance SMARTY_DIR is not defined.

JDLamb

Just popping in
Posted on: 2008/12/30 9:20
JDLamb
JDLamb (Show more)
Just popping in
Posts: 40
Since: 2008/11/10
#3

Re: Life type

Forgive the ignorance, but where should it be defined.

ghia

Community Support Member
Posted on: 2008/12/30 10:03
ghia
ghia (Show more)
Community Support Member
Posts: 4953
Since: 2008/7/3 1
#4

Re: Life type

It is defined in /class/template.php and derives from XOOPS_ROOT_PATH. Check if the definition for XOOPS_ROOT_PATH in your mainfile.php is correct.

awf2000

Just popping in
Posted on: 2009/1/1 11:53
awf2000
awf2000 (Show more)
Just popping in
Posts: 44
Since: 2007/5/7 5
#5

Re: Life type

I got the same error, but I try:


in file /modules/lifetype/class/template/template.class.php line 20
require_once XOOPS_ROOT_PATH.'/class/smarty/Smarty.class.php';


And this work for me

JDLamb

Just popping in
Posted on: 2009/1/2 9:16
JDLamb
JDLamb (Show more)
Just popping in
Posts: 40
Since: 2008/11/10
#6

Re: Life type

awf2000

Thanks that works for me too, except that the blog doesn't appear within Xoops, but rather looks like a stand alone application.

I don't think I will use this module.

sailjapan

Moderator
Posted on: 2009/1/2 18:27
sailjapan
sailjapan (Show more)
Moderator
Posts: 1672
Since: 2005/11/16
#7

Re: Life type

similar problems here, but with the following errors
Quote:
Warning: Smarty error: problem writing temporary file './tmp/1/wrt495e5b6f51322' in file /class/smarty/Smarty.class.php line 1092
Warning: Smarty::include() [function.Smarty-include]: Unable to access ./tmp/1/%%40^406^406BB847%%main.template.php in file /class/smarty/Smarty.class.php line 1262
Warning: Smarty::include(./tmp/1/%%40^406^406BB847%%main.template.php) [function.Smarty-include]: failed to open stream: No such file or directory in file /class/smarty/Smarty.class.php line 1262
Warning: Smarty::include() [function.include]: Failed opening './tmp/1/%%40^406^406BB847%%main.template.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in file /class/smarty/Smarty.class.php line 1262
Warning: Smarty error: problem writing temporary file './tmp/1/wrt495e5b6f522c3' in file /class/smarty/Smarty.class.php line 1092

Any ideas?
Never let a man who does not believe something can be done, talk to a man that is doing it.