Test Responsive FolderGallery (RFG) 0.75

henri

Hello dbs

Now this code is added to line 2 of view.php
if (!class_exists('Template')) {require(WB_PATH.'/include/phplib/template.inc');}

I get the same error message again:
Template Error: set_root: is not a directory.
Halted.

In admin WebsiteBaker Error log shows no errors

dbs

Next try. Remove the second line, use only the first.
if (!class_exists('Template')) {require(WB_PATH.'/include/phplib/template.inc');}

Maybe now a notice about fredit is in errorlog.
Solution: permissioncheck.php line 8 should looks like this
$fredit = isset($fredit) ? (int)@$aRequestVars['fredit'] : '';  // >0 = frontend edit
[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

henri

Hello dbs

Responsive FolderGallery (RFG) 0.75 works fine in the following version

WebsiteBaker Version: 2.11.0 -r79
PHP-Version: 7.2.11
Website Baker Default Theme version 1.3.2

henri

Hello dbs

WebsiteBaker Version: 2.12.1 -r188
PHP-Version: 7.2.11
Website Baker Default Theme version 1.3.14

dbs

After <?php is right because it is php code.
Seems something with your backend theme is wrong.
Can you tell some more details about your system? (wb version, php version, backend theme)
[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

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):

dbs

Oh, sorry, "before" was not exatly before.
You can add the two lines somewhere at the beginning of view.php.
Hope it work.

[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

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

Hi, maybe this helps: https://forum.websitebaker.org/index.php/topic,31088.msg216743.html#msg216743

Before your line 520 in /modules/responsiveFG/view.php
if (!class_exists('Template')) {require(WB_PATH.'/include/phplib/template.inc');}
$template = new Template( $template_dir );
[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

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):