Fatal error: Cannot redeclare class smarty in ***/modules/pagesetter/smarty-2.6.0/libs/Smarty.class.php on line 74
I get this error whenever I try to view a publication in pagesetter. It is checked as 'online' and is approved. Both the cache and templates_c directories are 777 CHMODed.
The URL that is used is as follows: /index.php?module=pagesetter&func=viewpub&tid=1&pid=1
Hope you can help me.
Posted: 19.11.2003, 20:26
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
Simon,
I guess you have pnRender installed...
J?rn unconditionally includes Smarty; a better way would be something like
if (!class_exists('Smarty')) {
define('SMARTY_DIR', ...);
require_once (SMARTY_DIR . 'Smarty.class.php');
}
Anyway, as J?rn already received at least two pnRender versions, I guess that the pagesetter Smarty installation will be dropped in the near future :D
J?rg
[Edited on 19/11/2003 by jn]
Posted: 19.11.2003, 22:22
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
The Pagesetter Smarty is history - right ;) And thanks again for the help.
Posted: 10.12.2003, 06:35
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
Got the same problem when adding a block.
I have not pnRender installed.
Any Ideas and hopefully solutions?
Where to add the code mentioned by jn
Thx
Posted: 10.12.2003, 07:41
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
There is a conflict with PostCalendar blocks. Are you using such?
Posted: 10.12.2003, 15:02
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
yes
Posted: 11.12.2003, 23:01
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
Made a work-around. See http://www.elfisk.dk/modules.php?op=modload&name=News&file=article&sid=20&mode=flat&order=0&thold=0