WebsiteBaker Support (2.12.x) > Modules
Test Responsive FolderGallery (RFG) 0.75
henri:
Installation went without problems.
When testing module Responsive FolderGallery (RFG) 0.75 I get the following error message in WebsiteBaker 2.12.1 r188 when I go to the website itself from admin section.
There was an uncatched exception
Class 'Template' not found
in line (520) or (/ modules / responsiveFG / view.php):
dbs:
Hi, maybe this helps: https://forum.WebsiteBaker.org/index.php/topic,31088.msg216743.html#msg216743
Before your line 520 in /modules/responsiveFG/view.php
--- Code: ---if (!class_exists('Template')) {require(WB_PATH.'/include/phplib/template.inc');}
$template = new Template( $template_dir );
--- End code ---
henri:
Hello dbs
This code was on line 520:
if (file_exists(dirname(__FILE__) . '/templates/thumbstyle' . $thumb_style . '.htt')) {
$viewTemplate = 'thumbstyle' . $thumb_style . '.htt';
$t = new Template(dirname(__FILE__) . '/templates', 'remove');
} else {
die();
}
I have inserted your proposed code for line 520:
if (file_exists(dirname(__FILE__) . '/templates/thumbstyle' . $thumb_style . '.htt')) {
$viewTemplate = 'thumbstyle' . $thumb_style . '.htt';
if (!class_exists('Template')) {require(WB_PATH.'/include/phplib/template.inc');}
$template = new Template( $template_dir );
$t = new Template(dirname(__FILE__) . '/templates', 'remove');
} else {
die();
}
Now I get error message:
Template Error: set_root: is not a directory.
Halted.
I do not know if I did well
dbs:
Oh, sorry, "before" was not exatly before.
You can add the two lines somewhere at the beginning of view.php.
Hope it work.
henri:
Hello dbs
I place your code on line 2 after <? Php
then I get the same error message:
Template Error: set_root: is not a directory.
Halted.
I place your code for <? Php
then I get the following error message:
if (!class_exists('Template')) {require(WB_PATH.'/include/phplib/template.inc');} $template = new Template( $template_dir ); There was an uncatched exception
Class 'Template' not found
in line (522) of (/modules/responsiveFG/view.php):
Navigation
[0] Message Index
[#] Next page
Go to full version